From 31110da599957d45a07355addf9f4df49fc58022 Mon Sep 17 00:00:00 2001 From: David Gnabasik Date: Thu, 25 Jan 2024 13:00:01 +0000 Subject: [PATCH 1/2] issue-9 changes. --- ontology/saref4auto.ttl | 54 +++++------------------------------------ 1 file changed, 6 insertions(+), 48 deletions(-) diff --git a/ontology/saref4auto.ttl b/ontology/saref4auto.ttl index e1397c4..402d0a6 100644 --- a/ontology/saref4auto.ttl +++ b/ontology/saref4auto.ttl @@ -282,7 +282,7 @@ saref:relatesToProperty rdf:type owl:ObjectProperty ; :hasConfidence rdf:type owl:ObjectProperty ; owl:inverseOf :isConfidenceOf ; rdfs:range :Confidence ; - rdfs:comment "A relation between an estimated measurement (saref:Measurement class) and its confidence (s4auto:Confidence)"@en ; + rdfs:comment "A relation between an estimated measurement (saref:Observation class) and its confidence (s4auto:Confidence)"@en ; rdfs:label "hasConfidence"@en . @@ -505,7 +505,7 @@ saref:relatesToProperty rdf:type owl:ObjectProperty ; ### https://saref.etsi.org/saref4auto/isConfidenceOf :isConfidenceOf rdf:type owl:ObjectProperty ; - rdfs:comment "A relation between the confidence (s4auto:Confidence class) of an estimated measurement and this measurement (saref:Measurement class)"@en ; + rdfs:comment "A relation between the confidence (s4auto:Confidence class) of an estimated measurement and this measurement (saref:Observation class)"@en ; rdfs:label "isConfidenceOf"@en . @@ -754,7 +754,7 @@ saref:Device rdf:type owl:Class ; ] , [ rdf:type owl:Restriction ; owl:onProperty saref:makesMeasurement ; - owl:allValuesFrom saref:Measurement + owl:allValuesFrom saref:Observation ] , [ rdf:type owl:Restriction ; owl:onProperty saref:measuresProperty ; @@ -780,48 +780,6 @@ saref:FeatureOfInterest rdf:type owl:Class ; rdfs:label "FeatureOfInterest"@en . -### https://saref.etsi.org/core/Measurement -saref:Measurement rdf:type owl:Class ; - rdfs:subClassOf [ rdf:type owl:Restriction ; - owl:onProperty saref:measurementMadeBy ; - owl:someValuesFrom saref:Device - ] , - [ rdf:type owl:Restriction ; - owl:onProperty :hasConfidence ; - owl:someValuesFrom :Confidence - ] , - [ rdf:type owl:Restriction ; - owl:onProperty saref:isMeasuredIn ; - owl:allValuesFrom saref:UnitOfMeasure - ] , - [ rdf:type owl:Restriction ; - owl:onProperty saref:relatesToProperty ; - owl:allValuesFrom saref:Property - ] , - [ rdf:type owl:Restriction ; - owl:onProperty saref:isMeasuredIn ; - owl:qualifiedCardinality "1"^^xsd:nonNegativeInteger ; - owl:onClass saref:UnitOfMeasure - ] , - [ rdf:type owl:Restriction ; - owl:onProperty saref:relatesToProperty ; - owl:qualifiedCardinality "1"^^xsd:nonNegativeInteger ; - owl:onClass saref:Property - ] , - [ rdf:type owl:Restriction ; - owl:onProperty saref:hasTimestamp ; - owl:allValuesFrom xsd:dateTime - ] , - [ rdf:type owl:Restriction ; - owl:onProperty saref:hasValue ; - owl:qualifiedCardinality "1"^^xsd:nonNegativeInteger ; - owl:onDataRange xsd:float - ] ; - rdfs:comment "Represents the measured value made over a property. It is also linked to the unit of measure in which the value is expressed and the timestamp of the measurement."@en ; - rdfs:isDefinedBy saref: ; - rdfs:label "Measurement"@en . - - ### https://saref.etsi.org/core/Property saref:Property rdf:type owl:Class ; rdfs:subClassOf [ rdf:type owl:Restriction ; @@ -834,7 +792,7 @@ saref:Property rdf:type owl:Class ; ] , [ rdf:type owl:Restriction ; owl:onProperty saref:relatesToMeasurement ; - owl:allValuesFrom saref:Measurement + owl:allValuesFrom saref:Observation ] ; rdfs:comment "Anything that can be sensed, measured or controlled by a device (measured by a sensor, controlled by an actuator) ."@en ; rdfs:isDefinedBy ; @@ -1089,7 +1047,7 @@ saref:UnitOfMeasure rdf:type owl:Class ; ] , [ rdf:type owl:Restriction ; owl:onProperty :usesMeasurement ; - owl:someValuesFrom saref:Measurement + owl:someValuesFrom saref:Observation ] , [ rdf:type owl:Restriction ; owl:onProperty s4syst:subSystemOf ; @@ -1588,7 +1546,7 @@ saref:UnitOfMeasure rdf:type owl:Class ; rdfs:subClassOf saref:Actuator , [ rdf:type owl:Restriction ; owl:onProperty :usesMeasurement ; - owl:someValuesFrom saref:Measurement + owl:someValuesFrom saref:Observation ] ; rdfs:comment "Devices deployed along the road that produce signals based on road side sensor data measurements. Types of road side actuators that are relevant are devices such as traffic light controllers changing from red to green based on detected vehicles."@en ; rdfs:label """RoadSideActuator -- GitLab From 30abb10c64e0ad29324a543889f1a1ba236f41ce Mon Sep 17 00:00:00 2001 From: Maxime Date: Mon, 27 May 2024 11:59:09 +0200 Subject: [PATCH 2/2] uses observations instead of measurements, closes #9 --- ontology/saref4auto.ttl | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/ontology/saref4auto.ttl b/ontology/saref4auto.ttl index 309251a..965a686 100644 --- a/ontology/saref4auto.ttl +++ b/ontology/saref4auto.ttl @@ -201,7 +201,7 @@ time:hasEnd rdf:type owl:ObjectProperty ; :hasConfidence rdf:type owl:ObjectProperty ; owl:inverseOf :isConfidenceOf ; rdfs:range :Confidence ; - rdfs:comment "A relation between an estimated measurement (saref:Observation class) and its confidence (s4auto:Confidence)"@en ; + rdfs:comment "A relation between some entity (ex. an observation) and its confidence (s4auto:Confidence)"@en ; rdfs:label "hasConfidence"@en . @@ -424,7 +424,7 @@ time:hasEnd rdf:type owl:ObjectProperty ; ### https://saref.etsi.org/saref4auto/isConfidenceOf :isConfidenceOf rdf:type owl:ObjectProperty ; - rdfs:comment "A relation between the confidence (s4auto:Confidence class) of an estimated measurement and this measurement (saref:Observation class)"@en ; + rdfs:comment "A relation between the confidence (s4auto:Confidence class) of some entity (ex. an observation) and that entity"@en ; rdfs:label "isConfidenceOf"@en . @@ -448,10 +448,10 @@ time:hasEnd rdf:type owl:ObjectProperty ; rdfs:label "isMemberOfVehicleEnvironment"@en . -### https://saref.etsi.org/saref4auto/usesMeasurement -:usesMeasurement rdf:type owl:ObjectProperty ; - rdfs:comment "A relation to express that a device can use different types of measurements, such as speed, position of detected road objects (e.g., bicycles, vehicles). This applies in particular to the ElectronicControlUnit and TrafficLightController classes."@en ; - rdfs:label "usesMeasurement"@en . +### https://saref.etsi.org/saref4auto/usesProperty +:usesProperty rdf:type owl:ObjectProperty ; + rdfs:comment "A relation to express that a device can use different types of properties, such as speed, position of detected road objects (e.g., bicycles, vehicles). This applies in particular to the ElectronicControlUnit and TrafficLightController classes."@en ; + rdfs:label "usesProperty"@en . ### https://saref.etsi.org/saref4syst/hasSubSystem @@ -554,7 +554,7 @@ time:inXSDDateTimeStamp rdf:type owl:DatatypeProperty ; ### https://saref.etsi.org/saref4auto/hasMaxSize :hasMaxSize rdf:type owl:DatatypeProperty ; - rdfs:comment "A relation to express the max size of a platoon. Note that it is defined as a datatype property as this is a fixed/static value of the platoon that does not change over time. In contrast, the current size of the platoon is actually a measurement that may change over time and it is therefore defined as an object property (see s4auto:hasSize)."@en ; + rdfs:comment "A relation to express the max size of a platoon. Note that it is defined as a datatype property as this is a fixed/static value of the platoon that does not change over time. In contrast, the current size of the platoon is actually an observation that may change over time and it is therefore defined as an object property (see s4auto:hasSize)."@en ; rdfs:label "hasMaxSize"@en . @@ -684,7 +684,7 @@ time:TemporalEntity rdf:type owl:Class ; owl:onProperty :hasConfidenceValue ; owl:someValuesFrom xsd:float ] ; - rdfs:comment "A type of confidence for acceleration measurements that represents the absolute accuracy of a reported vehicle acceleration value with a predefined confidence level (e.g. 95 %)"@en ; + rdfs:comment "A type of confidence for acceleration observations that represents the absolute accuracy of a reported vehicle acceleration value with a predefined confidence level (e.g. 95 %)"@en ; rdfs:label "AccelerationConfidence"@en . @@ -787,7 +787,7 @@ time:TemporalEntity rdf:type owl:Class ; owl:onProperty :hasConfidenceValue ; owl:someValuesFrom xsd:float ] ; - rdfs:comment "Every measurement in the automotive domain is an estimated measurement coming from the aggregation of several measurements from different sensor or devices taken at the same time or at consecutive times very close to each other. Therefore, a confidence is always associated to each mesurement to indicate that it has not 100% accuracy."@en ; + rdfs:comment "Every observation in the automotive domain is an estimated observation coming from the aggregation of several observations from different sensor or devices taken at the same time or at consecutive times very close to each other. Therefore, a confidence is always associated to each mesurement to indicate that it has not 100% accuracy."@en ; rdfs:label "Confidence"@en . @@ -868,14 +868,14 @@ time:TemporalEntity rdf:type owl:Class ; owl:someValuesFrom :Position ] , [ rdf:type owl:Restriction ; - owl:onProperty :usesMeasurement ; - owl:someValuesFrom saref:Observation + owl:onProperty :usesProperty ; + owl:someValuesFrom saref:Property ] , [ rdf:type owl:Restriction ; owl:onProperty s4syst:subSystemOf ; owl:someValuesFrom :Vehicle ] ; - rdfs:comment "An electronic control unit (ECU) is any embedded system in automotive electronics that monitors and controls one or more of the electrical systems or subsystems in a vehicle. The ECU provides measurements about relevant properties of the vehicle, such as speed, acceleration, position, etc."@en ; + rdfs:comment "An electronic control unit (ECU) is any embedded system in automotive electronics that monitors and controls one or more of the electrical systems or subsystems in a vehicle. The ECU provides observations about relevant properties of the vehicle, such as speed, acceleration, position, etc."@en ; rdfs:label "ElectronicControlUnit"@en . -- GitLab