From 9a64b7f0b6b40d83f08c449be2018284038c805c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20Lefran=C3=A7ois?= Date: Wed, 4 Dec 2019 16:15:22 +0100 Subject: [PATCH 1/4] removed examples to close issue #23 Move the examples to additional resources/documentation and not in the ontology. Only keep Actuator Appliance Sensor Meter, keep HVAC (maybe remove it in the future, add in the comment that there is a link with saref4bldg). Remove LightingDevice, remove MicroRenewable, remove Multimedia but create an example about Multimedia. remove Network. --- examples/energymeter.ttl | 4 ++++ examples/lightswitch.ttl | 4 ++++ examples/multimedia.ttl | 19 +++++++++++++++ examples/washingmachine.ttl | 22 ++++++++++++++++- ontology/saref.ttl | 48 ------------------------------------- 5 files changed, 48 insertions(+), 49 deletions(-) create mode 100644 examples/multimedia.ttl diff --git a/examples/energymeter.ttl b/examples/energymeter.ttl index 51512aa..a03e3f5 100644 --- a/examples/energymeter.ttl +++ b/examples/energymeter.ttl @@ -13,6 +13,10 @@ rdf:type owl:Ontology ; owl:imports ; . +saref-em:MicroRenewable rdf:type owl:Class ; + rdfs:subClassOf saref:FunctionRelated ; + rdfs:comment "A device that generates renewable energy from natural resources such as the sun, wind and water. A saref:MicroRenewable is typically used to accomplish saref:EnergyEfficiency."@en ; + rdfs:label "Micro renewable"@en . saref-em:Efficiency rdf:type saref:Task ; rdfs:label "Efficiency"^^xsd:string ; diff --git a/examples/lightswitch.ttl b/examples/lightswitch.ttl index 1091c05..1e9cb6e 100644 --- a/examples/lightswitch.ttl +++ b/examples/lightswitch.ttl @@ -14,6 +14,10 @@ rdf:type owl:Ontology ; owl:imports ; . +saref-ls:LightingDevice rdf:type owl:Class ; + rdfs:subClassOf saref:FunctionRelated ; + rdfs:comment "A device used for illumination, irradiation, signaling, or projection. A saref:LightingDevice is typically used to accomplish saref:Comfort."@en ; + rdfs:label "Lighting device"@en . saref-ls:BuildingSpace_OfficeHall rdf:type saref:BuildingSpace ; rdfs:label "Office Hall"^^xsd:string ; diff --git a/examples/multimedia.ttl b/examples/multimedia.ttl new file mode 100644 index 0000000..df90546 --- /dev/null +++ b/examples/multimedia.ttl @@ -0,0 +1,19 @@ +@prefix geo: . +@prefix owl: . +@prefix rdf: . +@prefix rdfs: . +@prefix saref: . +@prefix saref-mm: . +@prefix time: . +@prefix xsd: . + + + rdf:type owl:Ontology ; + owl:imports ; +. + +saref-mm:Multimedia rdf:type owl:Class ; + rdfs:subClassOf saref:FunctionRelated ; + rdfs:comment "A device designed to display, store, record or play multimedia content such as audio, images, animation, video. A saref:Multimedia is typically used to accomplish saref:Entertainment."@en ; + rdfs:label "Multimedia"@en . + diff --git a/examples/washingmachine.ttl b/examples/washingmachine.ttl index a6cb511..2a215cf 100644 --- a/examples/washingmachine.ttl +++ b/examples/washingmachine.ttl @@ -13,6 +13,26 @@ rdf:type owl:Ontology ; owl:imports ; . + +saref-wm:WashingMachine rdf:type owl:Class ; + rdfs:subClassOf saref:Appliance , + saref:Load , + [ rdf:type owl:Restriction ; + owl:onProperty saref:hasFunction ; + owl:someValuesFrom saref:StartStopFunction + ] , + [ rdf:type owl:Restriction ; + owl:onProperty saref:hasProfile ; + owl:someValuesFrom saref:Profile + ] , + [ rdf:type owl:Restriction ; + owl:onProperty saref:hasState ; + owl:someValuesFrom saref:StartStopState + ] ; + rdfs:comment "A device of category saref:Appliance and saref:Load that performs an actuating function of type saref:StartStopFunction, can be found in the state saref:StartStopState, and can have a saref:Profile that characterizes its energy consumption. A saref:WashingMachine is typically used to saref:accomplish saref:Washing. "@en ; + rdfs:label "Washing machine"@en . + + saref-wm:BuildingSpace_LaundryRoom rdf:type saref:BuildingSpace ; rdfs:label "Laundry room"^^xsd:string ; @@ -100,7 +120,7 @@ saref-wm:StopState rdfs:label "Stop state"^^xsd:string ; . saref-wm:WashingMachine_WM802 - rdf:type saref:WashingMachine ; + rdf:type saref-wm:WashingMachine ; rdfs:label "Washing machine WM802"^^xsd:string ; saref:accomplishes saref:Washing ; saref:hasCategory saref:Appliance ; diff --git a/ontology/saref.ttl b/ontology/saref.ttl index 3ae784e..ea5bd64 100644 --- a/ontology/saref.ttl +++ b/ontology/saref.ttl @@ -660,13 +660,6 @@ saref:LightSwitch rdf:type owl:Class ; rdfs:label "Light switch"@en . -### https://saref.etsi.org/saref#LightingDevice -saref:LightingDevice rdf:type owl:Class ; - rdfs:subClassOf saref:FunctionRelated ; - rdfs:comment "A device used for illumination, irradiation, signaling, or projection. A saref:LightingDevice is typically used to accomplish saref:Comfort."@en ; - rdfs:label "Lighting device"@en . - - ### https://saref.etsi.org/saref#Load saref:Load rdf:type owl:Class ; rdfs:subClassOf saref:EnergyRelated ; @@ -740,13 +733,6 @@ saref:MeteringFunction rdf:type owl:Class ; rdfs:label "Metering function"@en . -### https://saref.etsi.org/saref#MicroRenewable -saref:MicroRenewable rdf:type owl:Class ; - rdfs:subClassOf saref:FunctionRelated ; - rdfs:comment "A device that generates renewable energy from natural resources such as the sun, wind and water. A saref:MicroRenewable is typically used to accomplish saref:EnergyEfficiency."@en ; - rdfs:label "Micro renewable"@en . - - ### https://saref.etsi.org/saref#Motion saref:Motion rdf:type owl:Class ; rdfs:subClassOf saref:Property ; @@ -761,20 +747,6 @@ saref:MultiLevelState rdf:type owl:Class ; rdfs:label "Multi level state"@en . -### https://saref.etsi.org/saref#Multimedia -saref:Multimedia rdf:type owl:Class ; - rdfs:subClassOf saref:FunctionRelated ; - rdfs:comment "A device designed to display, store, record or play multimedia content such as audio, images, animation, video. A saref:Multimedia is typically used to accomplish saref:Entertainment."@en ; - rdfs:label "Multimedia"@en . - - -### https://saref.etsi.org/saref#Network -saref:Network rdf:type owl:Class ; - rdfs:subClassOf saref:FunctionRelated ; - rdfs:comment "A device used to connect other devices in a network, such as hub, switch or router in a Local Area Network (LAN). "@en ; - rdfs:label "Network"@en . - - ### https://saref.etsi.org/saref#NotifyCommand saref:NotifyCommand rdf:type owl:Class ; rdfs:subClassOf saref:Command , @@ -1257,26 +1229,6 @@ saref:UnitOfMeasure rdf:type owl:Class ; rdfs:label "Unit of measure"@en . -### https://saref.etsi.org/saref#WashingMachine -saref:WashingMachine rdf:type owl:Class ; - rdfs:subClassOf saref:Appliance , - saref:Load , - [ rdf:type owl:Restriction ; - owl:onProperty saref:hasFunction ; - owl:someValuesFrom saref:StartStopFunction - ] , - [ rdf:type owl:Restriction ; - owl:onProperty saref:hasProfile ; - owl:someValuesFrom saref:Profile - ] , - [ rdf:type owl:Restriction ; - owl:onProperty saref:hasState ; - owl:someValuesFrom saref:StartStopState - ] ; - rdfs:comment "A device of category saref:Appliance and saref:Load that performs an actuating function of type saref:StartStopFunction, can be found in the state saref:StartStopState, and can have a saref:Profile that characterizes its energy consumption. A saref:WashingMachine is typically used to saref:accomplish saref:Washing. "@en ; - rdfs:label "Washing machine"@en . - - ### https://saref.etsi.org/saref#Water saref:Water rdf:type owl:Class ; rdfs:subClassOf saref:Commodity ; -- GitLab From dbc9c80c3507e0ab06427d6d36981196537b4e0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20Lefran=C3=A7ois?= Date: Wed, 4 Dec 2019 16:37:27 +0100 Subject: [PATCH 2/4] implemented closes #15 - saref:accomplishes: A relationship between a certain entity (e.g., a device) and the task it accomplishes From this definition, it is unambiguous that the object of a saref:accomplishes relationship is always a task. - saref:accomplishes - A relationship between a certain entity (e.g., a device) and the task it accomplishes - domain is saref:Command and range is saref:State - saref:actsUpon - A relationship between a command and a state - domain saref:Command, range saref:State - saref:controlsProperty - A relationship specifying the Property that can be controlled by a certain Device - domain saref:Device, range saref:Property - saref:hasCommand - A relationship between an entity (such as a function) and a command - domain saref:Function and range saref:Command - saref:hasFunction - A relationship identifying the type of function of a device - domain saref:Device and range saref:Function - saref:hasMeterReading - A relationship between a metering function and the measurement of the reading - domain saref:MeteringFunction and range saref:Measurement. - saref:hasMeterReadingType - A relationship identifying the reading type of a measurement (e.g., Water, Gas, Pressure , Energy , Power, etc.) - domain saref:Measurement and range saref:Property - saref:hasPrice - A relationships indentifying the price associated to an entity - range saref:Price - saref:hasProfile - A relationship associating a profile to a certain entity (e.g., a device) - domain saref:Device and range saref:Profile - saref:hasSensingRange - A relationship between a sensing function and a measurement identifying the range of a sensor detection - domain saref:SensingFunction and range saref:Measurement - saref:hasSensorType - A relationship identifying the sensing type of a sensor detection (i.e., Temperature, Occupancy, Humidity, Motion , Smoke, Pressure, etc.) - domain saref:SensingFunction and range Property - saref:hasState - A relationship identifying the type of state of a device - domain saref:Device and range saref:State - saref:hasThresholdMeasurement - A relationship associated with an event function to notify that a certain threshold measurement has been exceeded - domain saref:EventFunction and range saref:Measurement - saref:hasTime - A relationship to associate time information to an entity - range saref:Time - saref:isAccomplishedBy - A relationship identifying the task accomplished by a certain entity (e.g., a device) - domain saref:Task - saref:isCommandOf - A relationship between a command and a function. - domain saref:Command and range saref:Function - saref:isControlledByDevice - A relationship specifying the devices that can control a certain property - domain saref:Property and range saref:Device - saref:isMeasuredByDevice - A relationship specifying the devices that can measure a certain property - domain saref:Property and range saref:Device - saref:isMeasuredIn - A relationship identifying the unit of measure used for a certain entity. - domain saref:Measurement and range saref:UnitOfMeasure - saref:isOfferedBy - A relationship between a service and a device that offers the service - domain saref:Service and range saref:Device - saref:makesMeasurement - A relation between a device and the measurements it makes. Such measurement will link together the value of the measurement, its unit of measure and the property to which it relates. - domain saref:Device and range saref:Measurement - saref:measuresProperty - A relationship specifying the Property that can be measured by a certain Device - domain saref:Device and range saref:Property - saref:offers - A relationship between a device and a service - domain saref Device and range saref:Service - saref:relatesToMeasurement - A relationship between a property and the measurements it relates to - domain saref:Property and range saref:Measurement - saref:relatesToProperty - A relationship between a measurement and the property it relates to - domain saref:Measurement and range saref:Property - saref:represents - A relationship between a service and a function. - domain saref:Service and range saref:Function **Proposal:** To add ObjectPropertyDomain and ObjectPropertyRange axioms wherever the definition of a property unambiguously identifies the domain or the range of a property. --- ontology/saref.ttl | 50 +++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 49 insertions(+), 1 deletion(-) diff --git a/ontology/saref.ttl b/ontology/saref.ttl index ea5bd64..a6d0d02 100644 --- a/ontology/saref.ttl +++ b/ontology/saref.ttl @@ -35,12 +35,15 @@ saref:accomplishes rdf:type owl:ObjectProperty ; owl:inverseOf saref:isAccomplishedBy ; rdfs:comment "A relationship between a certain entity (e.g., a device) and the task it accomplishes"@en ; + rdfs:range saref:Task ; rdfs:label "accomplishes"@en . ### https://saref.etsi.org/saref#actsUpon saref:actsUpon rdf:type owl:ObjectProperty ; rdfs:comment "A relationship between a command and a state"@en ; + rdfs:domain saref:Command ; + rdfs:range saref:State ; rdfs:label "acts upon"@en . @@ -53,6 +56,8 @@ saref:consistsOf rdf:type owl:ObjectProperty ; ### https://saref.etsi.org/saref#controlsProperty saref:controlsProperty rdf:type owl:ObjectProperty ; rdfs:comment "A relationship specifying the property that can be controlled by a certain device"@en ; + rdfs:domain saref:Device ; + rdfs:range saref:Property ; rdfs:label "controls property"@en . @@ -60,6 +65,8 @@ saref:controlsProperty rdf:type owl:ObjectProperty ; saref:hasCommand rdf:type owl:ObjectProperty ; owl:inverseOf saref:isCommandOf ; rdfs:comment "A relationship between a function and a command"@en ; + rdfs:domain saref:Function ; + rdfs:range saref:Command ; rdfs:label "has command"@en . @@ -73,30 +80,39 @@ saref:isMeasurementOf rdf:type owl:ObjectProperty ; ### https://saref.etsi.org/saref#hasFunction saref:hasFunction rdf:type owl:ObjectProperty ; rdfs:comment "A relationship identifying the function of a device"@en ; + rdfs:domain saref:Device ; + rdfs:range saref:Function ; rdfs:label "has function"@en . ### https://saref.etsi.org/saref#hasMeterReading saref:hasMeterReading rdf:type owl:ObjectProperty ; rdfs:comment "A relationship between a metering function and the measurement of the reading"@en ; + rdfs:domain saref:MeteringFunction ; + rdfs:range saref:Measurement ; rdfs:label "has meter reading"@en . ### https://saref.etsi.org/saref#hasMeterReadingType saref:hasMeterReadingType rdf:type owl:ObjectProperty ; rdfs:comment "A relationship identifying the reading type of a measurement (e.g., Water, Gas, Pressure , Energy , Power, etc.)"@en ; + rdfs:domain saref:Measurement ; + rdfs:range saref:Property ; rdfs:label "has meter reading type"@en . ### https://saref.etsi.org/saref#hasPrice saref:hasPrice rdf:type owl:ObjectProperty ; rdfs:comment "A relationship indentifying the price associated to an entity"@en ; + rdfs:range saref:Price ; rdfs:label "has price"@en . ### https://saref.etsi.org/saref#hasProfile saref:hasProfile rdf:type owl:ObjectProperty ; rdfs:comment "A relationship associating a profile to a certain device"@en ; + rdfs:domain saref:Device ; + rdfs:range saref:Profile ; rdfs:label "has profile"@en . @@ -110,30 +126,39 @@ saref:hasProperty rdf:type owl:ObjectProperty ; ### https://saref.etsi.org/saref#hasSensingRange saref:hasSensingRange rdf:type owl:ObjectProperty ; rdfs:comment "A relationship between a sensing function and a measurement identifying the range of a sensor detection"@en ; + rdfs:domain saref:SensingFunction ; + rdfs:range saref:Measurement ; rdfs:label "has sensing range"@en . ### https://saref.etsi.org/saref#hasSensorType saref:hasSensorType rdf:type owl:ObjectProperty ; rdfs:comment "A relationship identifying the sensing type of a sensor detection (i.e., Temperature, Occupancy, Humidity, Motion , Smoke, Pressure, etc.) "@en ; + rdfs:domain saref:SensingFunction ; + rdfs:range saref:Property ; rdfs:label "has sensor type"@en . ### https://saref.etsi.org/saref#hasState saref:hasState rdf:type owl:ObjectProperty ; rdfs:comment "A relationship identifying the type of state of a device"@en ; + rdfs:domain saref:Device ; + rdfs:range saref:State ; rdfs:label "has state"@en . ### https://saref.etsi.org/saref#hasThresholdMeasurement saref:hasThresholdMeasurement rdf:type owl:ObjectProperty ; rdfs:comment "A relationship associated with an event function to notify that a certain threshold measurement has been exceeded"@en ; + rdfs:domain saref:EventFunction ; + rdfs:range saref:Measurement ; rdfs:label "has threshold measurement"@en . ### https://saref.etsi.org/saref#hasTime saref:hasTime rdf:type owl:ObjectProperty ; rdfs:comment "A relationship to associate time information to an entity"@en ; + rdfs:range saref:Time ; rdfs:label "has time"@en . @@ -151,7 +176,8 @@ saref:isAbout rdf:type owl:ObjectProperty ; ### https://saref.etsi.org/saref#isAccomplishedBy saref:isAccomplishedBy rdf:type owl:ObjectProperty ; - rdfs:comment "A relationship indentifying the task accomplished by a certain entity (e.g., a device)"@en ; + rdfs:comment "A relationship identifying an entity (e.g., a device) that can accomplish a task."@en ; + rdfs:domain saref:Task ; rdfs:label "is accomplished by"@en . @@ -164,6 +190,8 @@ saref:isCommandOf rdf:type owl:ObjectProperty ; ### https://saref.etsi.org/saref#isControlledByDevice saref:isControlledByDevice rdf:type owl:ObjectProperty ; rdfs:comment "A relationship specifying the devices that can control a certain property"@en ; + rdfs:domain saref:Property ; + rdfs:range saref:Device ; rdfs:label "is controlled by device"@en . @@ -175,12 +203,16 @@ saref:hasMeasurement rdf:type owl:ObjectProperty ; ### https://saref.etsi.org/saref#isMeasuredByDevice saref:isMeasuredByDevice rdf:type owl:ObjectProperty ; rdfs:comment "A relationship specifying the devices that can measure a certain property"@en ; + rdfs:domain saref:Property ; + rdfs:range saref:Device ; rdfs:label "is measured by device"@en . ### https://saref.etsi.org/saref#isMeasuredIn saref:isMeasuredIn rdf:type owl:ObjectProperty ; rdfs:comment "A relationship identifying the unit of measure used for a certain entity."@en ; + rdfs:domain saref:Measurement ; + rdfs:range saref:UnitOfMeasure ; rdfs:label "is measured in"@en . @@ -188,6 +220,8 @@ saref:isMeasuredIn rdf:type owl:ObjectProperty ; saref:isOfferedBy rdf:type owl:ObjectProperty ; owl:inverseOf saref:offers ; rdfs:comment "A relationship between a service and a device that offers the service"@en ; + rdfs:domain saref:Service ; + rdfs:range saref:Device ; rdfs:label "is offered by"@en . @@ -207,29 +241,39 @@ saref:isUsedFor rdf:type owl:ObjectProperty ; saref:makesMeasurement rdf:type owl:ObjectProperty ; owl:inverseOf saref:measurementMadeBy ; rdfs:comment "A relation between a device and the measurements it makes. Such measurement will link together the value of the measurement, its unit of measure and the property to which it relates."@en ; + rdfs:domain saref:Device ; + rdfs:range saref:Measurement ; rdfs:label "makes measurement"@en . ### https://saref.etsi.org/saref#measurementMadeBy saref:measurementMadeBy rdf:type owl:ObjectProperty ; rdfs:comment "A relation between a measurement and the device that made it."@en ; + rdfs:domain saref:Measurement ; + rdfs:range saref:Device ; rdfs:label "measurement made by"@en . ### https://saref.etsi.org/saref#measuresProperty saref:measuresProperty rdf:type owl:ObjectProperty ; rdfs:comment "A relationship specifying the property that can be measured by a certain device"@en ; + rdfs:domain saref:Device ; + rdfs:range saref:Property ; rdfs:label "measures property"@en . ### https://saref.etsi.org/saref#offers saref:offers rdf:type owl:ObjectProperty ; rdfs:comment "A relationship between a device and a service"@en ; + rdfs:domain saref:Device ; + rdfs:range saref:Service ; rdfs:label "offers"@en . ### https://saref.etsi.org/saref#relatesToMeasurement saref:relatesToMeasurement rdf:type owl:ObjectProperty ; rdfs:comment "A relationship between a property and the measurements it relates to"@en ; + rdfs:domain saref:Property ; + rdfs:range saref:Measurement ; rdfs:label "relates to measurement"@en . @@ -237,12 +281,16 @@ saref:relatesToMeasurement rdf:type owl:ObjectProperty ; saref:relatesToProperty rdf:type owl:ObjectProperty ; owl:inverseOf saref:relatesToMeasurement ; rdfs:comment "A relationship between a measurement and the property it relates to"@en ; + rdfs:domain saref:Measurement ; + rdfs:range saerf:Property ; rdfs:label "relates to property"@en . ### https://saref.etsi.org/saref#represents saref:represents rdf:type owl:ObjectProperty ; rdfs:comment "A relationship between a service and a function."@en ; + rdfs:domain saref:Service ; + rdfs:range saref:Function ; rdfs:label "represents"@en . -- GitLab From 9b8f8aa8dacc51d5279590e44ea43f884c60e603 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rau=CC=81l=20Garci=CC=81a=20Castro?= Date: Thu, 5 Dec 2019 09:16:57 +0100 Subject: [PATCH 3/4] Included the domain and range of isCommandOf. Domains and ranges included for the new properties: hasProperty/isPropertyOf and hasMeasurement/isMeasurementOf. --- ontology/saref.ttl | 47 ++++++++++++++++++++++++++++++++-------------- 1 file changed, 33 insertions(+), 14 deletions(-) diff --git a/ontology/saref.ttl b/ontology/saref.ttl index a6d0d02..8694171 100644 --- a/ontology/saref.ttl +++ b/ontology/saref.ttl @@ -70,13 +70,6 @@ saref:hasCommand rdf:type owl:ObjectProperty ; rdfs:label "has command"@en . -### https://saref.etsi.org/saref#isMeasurementOf -saref:isMeasurementOf rdf:type owl:ObjectProperty ; - owl:inverseOf saref:hasMeasurement ; - rdfs:comment "A relationship between a measurement and the feature of interest whose quality was measured"@en ; - rdfs:label "isMeasurementOf"@en . - - ### https://saref.etsi.org/saref#hasFunction saref:hasFunction rdf:type owl:ObjectProperty ; rdfs:comment "A relationship identifying the function of a device"@en ; @@ -85,6 +78,14 @@ saref:hasFunction rdf:type owl:ObjectProperty ; rdfs:label "has function"@en . +### https://saref.etsi.org/saref#hasMeasurement +saref:hasMeasurement rdf:type owl:ObjectProperty ; + rdfs:comment "A relationship between a feature of interest and a measurement about it"@en ; + rdfs:domain saref:FeatureOfInterest ; + rdfs:range saref:Measurement ; + rdfs:label "has measurement"@en . + + ### https://saref.etsi.org/saref#hasMeterReading saref:hasMeterReading rdf:type owl:ObjectProperty ; rdfs:comment "A relationship between a metering function and the measurement of the reading"@en ; @@ -95,8 +96,8 @@ saref:hasMeterReading rdf:type owl:ObjectProperty ; ### https://saref.etsi.org/saref#hasMeterReadingType saref:hasMeterReadingType rdf:type owl:ObjectProperty ; - rdfs:comment "A relationship identifying the reading type of a measurement (e.g., Water, Gas, Pressure , Energy , Power, etc.)"@en ; - rdfs:domain saref:Measurement ; + rdfs:comment "A relationship identifying the reading type of a metering function (e.g., Water, Gas, Pressure , Energy , Power, etc.)"@en ; + rdfs:domain saref:MeteringFunction ; rdfs:range saref:Property ; rdfs:label "has meter reading type"@en . @@ -116,10 +117,20 @@ saref:hasProfile rdf:type owl:ObjectProperty ; rdfs:label "has profile"@en . +### https://saref.etsi.org/saref#hasMeasurement +saref:hasMeasurement rdf:type owl:ObjectProperty ; + rdfs:comment "A relationship between a feature of interest and a measurement about it"@en ; + rdfs:domain saref:FeatureOfInterest ; + rdfs:range saref:Measurement ; + rdfs:label "has measurement"@en . + + ### https://saref.etsi.org/saref#hasProperty saref:hasProperty rdf:type owl:ObjectProperty ; owl:inverseOf saref:isPropertyOf ; rdfs:comment "A relationship between a feature of interest and a property of that feature"@en ; + rdfs:domain saref:FeatureOfInterest ; + rdfs:range saref:Property ; rdfs:label "has property"@en . @@ -184,6 +195,8 @@ saref:isAccomplishedBy rdf:type owl:ObjectProperty ; ### https://saref.etsi.org/saref#isCommandOf saref:isCommandOf rdf:type owl:ObjectProperty ; rdfs:comment "A relationship between a command and a function."@en ; + rdfs:domain saref:Command ; + rdfs:range saref:Function ; rdfs:label "is command of"@en . @@ -195,11 +208,6 @@ saref:isControlledByDevice rdf:type owl:ObjectProperty ; rdfs:label "is controlled by device"@en . -### https://saref.etsi.org/saref#hasMeasurement -saref:hasMeasurement rdf:type owl:ObjectProperty ; - rdfs:comment "A relationship between a feature of interest and a measurement about it"@en ; - rdfs:label "has measurement"@en . - ### https://saref.etsi.org/saref#isMeasuredByDevice saref:isMeasuredByDevice rdf:type owl:ObjectProperty ; rdfs:comment "A relationship specifying the devices that can measure a certain property"@en ; @@ -216,6 +224,15 @@ saref:isMeasuredIn rdf:type owl:ObjectProperty ; rdfs:label "is measured in"@en . +### https://saref.etsi.org/saref#isMeasurementOf +saref:isMeasurementOf rdf:type owl:ObjectProperty ; + owl:inverseOf saref:hasMeasurement ; + rdfs:comment "A relationship between a measurement and the feature of interest whose quality was measured"@en ; + rdfs:domain saref:Measurement ; + rdfs:range saref:FeatureOfInterest ; + rdfs:label "isMeasurementOf"@en . + + ### https://saref.etsi.org/saref#isOfferedBy saref:isOfferedBy rdf:type owl:ObjectProperty ; owl:inverseOf saref:offers ; @@ -228,6 +245,8 @@ saref:isOfferedBy rdf:type owl:ObjectProperty ; ### https://saref.etsi.org/saref#isPropertyOf saref:isPropertyOf rdf:type owl:ObjectProperty ; rdfs:comment "A relationship between a property and the feature of interest it belongs to"@en ; + rdfs:domain saref:Property ; + rdfs:range saref:FeatureOfInterest ; rdfs:label "is property of"@en . -- GitLab From 56ddba1a5f2837c92f9265876e7a32273cc4af57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rau=CC=81l=20Garci=CC=81a=20Castro?= Date: Thu, 5 Dec 2019 09:18:56 +0100 Subject: [PATCH 4/4] Minor fix. --- ontology/saref.ttl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ontology/saref.ttl b/ontology/saref.ttl index 8694171..30be685 100644 --- a/ontology/saref.ttl +++ b/ontology/saref.ttl @@ -301,7 +301,7 @@ saref:relatesToProperty rdf:type owl:ObjectProperty ; owl:inverseOf saref:relatesToMeasurement ; rdfs:comment "A relationship between a measurement and the property it relates to"@en ; rdfs:domain saref:Measurement ; - rdfs:range saerf:Property ; + rdfs:range saref:Property ; rdfs:label "relates to property"@en . -- GitLab