From 219b3be36e37da1789fd3ab622fa05d5ac3de671 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mar=C3=ADa?= Date: Mon, 4 Nov 2019 11:43:25 +0100 Subject: [PATCH 1/6] added saref:FeatureOfInterest and saref:measurementMadeBy --- ontology/saref.ttl | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/ontology/saref.ttl b/ontology/saref.ttl index ddc6f9c..7576416 100644 --- a/ontology/saref.ttl +++ b/ontology/saref.ttl @@ -18,7 +18,7 @@ dcterms:title "SAREF: the Smart Applications REFerence ontology"@en ; dcterms:license ; dcterms:contributor ; - dcterms:contributor ; + dcterms:contributor ; dcterms:contributor ; dcterms:contributor ; vann:preferredNamespacePrefix "saref" ; @@ -181,9 +181,15 @@ saref:isUsedFor rdf:type owl:ObjectProperty ; ### https://saref.etsi.org/makesMeasurement 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:label "makes measurement"@en . +### https://saref.etsi.org/measurementMadeBy +saref:measurementMadeBy a owl:ObjectProperty ; + rdfs:comment "A relation between a measurement and the device that made it."@en ; + rdfs:label "measurement made by"@en . + ### https://saref.etsi.org/measuresProperty saref:measuresProperty rdf:type owl:ObjectProperty ; @@ -475,6 +481,18 @@ saref:EventFunction rdf:type owl:Class ; rdfs:label "Event function"@en . +### https://w3id.org/saref#FeatureOfInterest +saref:FeatureOfInterest a owl:Class ; + rdfs:subClassOf [ a owl:Restriction ; + owl:onProperty saref:hasProperty ; + owl:allValuesFrom saref:Property ] , + + [ a owl:Restriction ; + owl:onProperty saref:isFeatureOfInterestOf ; + owl:allValuesFrom saref:Measurement ] ; + rdfs:comment "A feature of interest represent any real world from which a property is observed or measured."@en ; + rdfs:label "Feature of interest"@en . + ### https://saref.etsi.org/Function saref:Function rdf:type owl:Class ; rdfs:subClassOf [ rdf:type owl:Restriction ; -- GitLab From 77c41bb2b715fecf9c2d0d53b3635db079ab4df9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rau=CC=81l=20Garci=CC=81a=20Castro?= Date: Thu, 7 Nov 2019 10:57:38 +0100 Subject: [PATCH 2/6] Fixed the description of FeatureOfInterest. --- ontology/saref.ttl | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/ontology/saref.ttl b/ontology/saref.ttl index 7576416..bffa165 100644 --- a/ontology/saref.ttl +++ b/ontology/saref.ttl @@ -481,17 +481,19 @@ saref:EventFunction rdf:type owl:Class ; rdfs:label "Event function"@en . -### https://w3id.org/saref#FeatureOfInterest -saref:FeatureOfInterest a owl:Class ; - rdfs:subClassOf [ a owl:Restriction ; - owl:onProperty saref:hasProperty ; - owl:allValuesFrom saref:Property ] , - - [ a owl:Restriction ; - owl:onProperty saref:isFeatureOfInterestOf ; - owl:allValuesFrom saref:Measurement ] ; - rdfs:comment "A feature of interest represent any real world from which a property is observed or measured."@en ; - rdfs:label "Feature of interest"@en . +### https://saref.etsi.org/FeatureOfInterest +saref:FeatureOfInterest rdf:type owl:Class ; + rdfs:subClassOf [ a owl:Restriction ; + owl:onProperty saref:hasProperty ; + owl:allValuesFrom saref:Property + ] , + [ a owl:Restriction ; + owl:onProperty saref:isFeatureOfInterestOf ; + owl:allValuesFrom saref:Measurement + ] ; + rdfs:comment "A feature of interest represents any real world entity from which a property is measured."@en ; + rdfs:label "Feature of interest"@en . + ### https://saref.etsi.org/Function saref:Function rdf:type owl:Class ; -- GitLab From 85aa5b50364c0b628619b07fce2b31a107c23c8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rau=CC=81l=20Garci=CC=81a=20Castro?= Date: Thu, 7 Nov 2019 11:07:33 +0100 Subject: [PATCH 3/6] Added two properties, plus a couple of minor fixes. --- ontology/saref.ttl | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/ontology/saref.ttl b/ontology/saref.ttl index bffa165..d00d3f5 100644 --- a/ontology/saref.ttl +++ b/ontology/saref.ttl @@ -94,10 +94,16 @@ saref:hasProfile rdf:type owl:ObjectProperty ; rdfs:label "has profile"@en . +### https://saref.etsi.org/hasProperty +saref:hasProperty rdf:type owl:ObjectProperty ; + rdfs:comment "A relationship between an entity and a property of that entity"@en ; + rdfs:label "has property"@en . + + ### https://saref.etsi.org/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:label "has sensing range "@en . + rdfs:label "has sensing range"@en . ### https://saref.etsi.org/hasSensorType @@ -154,6 +160,11 @@ saref:isControlledByDevice rdf:type owl:ObjectProperty ; rdfs:label "is controlled by device"@en . +### https://saref.etsi.org/isFeatureOfInterestOf +saref:isFeatureOfInterestOf rdf:type owl:ObjectProperty ; + rdfs:comment "A relationship between a feature of interest and a measurement about it"@en ; + rdfs:label "is feature of interest of"@en . + ### https://saref.etsi.org/isMeasuredByDevice saref:isMeasuredByDevice rdf:type owl:ObjectProperty ; rdfs:comment "A relationship specifying the devices that can measure a certain property"@en ; @@ -186,9 +197,9 @@ saref:makesMeasurement rdf:type owl:ObjectProperty ; rdfs:label "makes measurement"@en . ### https://saref.etsi.org/measurementMadeBy -saref:measurementMadeBy a owl:ObjectProperty ; - rdfs:comment "A relation between a measurement and the device that made it."@en ; - rdfs:label "measurement made by"@en . +saref:measurementMadeBy rdf:type owl:ObjectProperty ; + rdfs:comment "A relation between a measurement and the device that made it."@en ; + rdfs:label "measurement made by"@en . ### https://saref.etsi.org/measuresProperty -- GitLab From d8b256df3a7a8df471862cfe3c00e873a23bf692 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rau=CC=81l=20Garci=CC=81a=20Castro?= Date: Thu, 7 Nov 2019 11:17:56 +0100 Subject: [PATCH 4/6] Added the rest of properties and restrictions, and fixed the definition of property. --- ontology/saref.ttl | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/ontology/saref.ttl b/ontology/saref.ttl index d00d3f5..4dd21a3 100644 --- a/ontology/saref.ttl +++ b/ontology/saref.ttl @@ -64,6 +64,13 @@ saref:hasCommand rdf:type owl:ObjectProperty ; rdfs:label "has command"@en . +### https://saref.etsi.org/hasFeatureOfInterest +saref:hasFeatureOfInterest rdf:type owl:ObjectProperty ; + owl:inverseOf saref:isFeatureOfInterestOf ; + rdfs:comment "A relationship between a measurement and the entity whose quality was measured"@en ; + rdfs:label "has feature of interest"@en . + + ### https://saref.etsi.org/hasFunction saref:hasFunction rdf:type owl:ObjectProperty ; rdfs:comment "A relationship identifying the function of a device"@en ; @@ -96,6 +103,7 @@ saref:hasProfile rdf:type owl:ObjectProperty ; ### https://saref.etsi.org/hasProperty saref:hasProperty rdf:type owl:ObjectProperty ; + owl:inverseOf saref:isPropertyOf ; rdfs:comment "A relationship between an entity and a property of that entity"@en ; rdfs:label "has property"@en . @@ -184,6 +192,12 @@ saref:isOfferedBy rdf:type owl:ObjectProperty ; rdfs:label "is offered by"@en . +### https://saref.etsi.org/isPropertyOf +saref:isPropertyOf rdf:type owl:ObjectProperty ; + rdfs:comment "A relationship between a property and the entity it belongs to"@en ; + rdfs:label "is property of"@en . + + ### https://saref.etsi.org/isUsedFor saref:isUsedFor rdf:type owl:ObjectProperty ; rdfs:comment "A relationship specifying the commodity for which a device is used for"@en ; @@ -664,6 +678,10 @@ saref:Load rdf:type owl:Class ; ### https://saref.etsi.org/Measurement saref:Measurement rdf:type owl:Class ; rdfs:subClassOf [ rdf:type owl:Restriction ; + owl:onProperty saref:hasFeatureOfInterest ; + owl:allValuesFrom saref:FeatureOfInterest + ] , + [ rdf:type owl:Restriction ; owl:onProperty saref:isMeasuredIn ; owl:allValuesFrom saref:UnitOfMeasure ] , @@ -949,11 +967,15 @@ saref:Property rdf:type owl:Class ; owl:onProperty saref:isMeasuredByDevice ; owl:allValuesFrom saref:Device ] , + [ rdf:type owl:Restriction ; + owl:onProperty saref:isPropertyOf ; + owl:allValuesFrom saref:FeatureOfInterest + ] , [ rdf:type owl:Restriction ; owl:onProperty saref:relatesToMeasurement ; owl:allValuesFrom saref:Measurement ] ; - rdfs:comment "Anything that can be sensed, measured or controlled in households, common public buildings or offices. We propose here a list of properties that are relevant for the purpose of SAREF, but this list can be extended."@en ; + rdfs:comment "A quality of an entity that can be measured; an aspect of an entity that is intrinsic to and cannot exist without the entity"@en ; rdfs:label "Property"@en . -- GitLab From 6c0e4ade06b6242aedea31b4269539ec3fdf7b94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rau=CC=81l=20Garci=CC=81a=20Castro?= Date: Thu, 7 Nov 2019 15:44:48 +0100 Subject: [PATCH 5/6] Fixed a typo. --- ontology/saref.ttl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ontology/saref.ttl b/ontology/saref.ttl index 4dd21a3..dc27e9c 100644 --- a/ontology/saref.ttl +++ b/ontology/saref.ttl @@ -953,7 +953,7 @@ saref:Profile rdf:type owl:Class ; ) ] ] ; - rdfs:comment "A specification associated to a device to collect information about a certain Property (e.g., Energy) for optimizing its usage in the home, office or building in which the device is located. This specification is about a certain Property (saref:isAbout), can be calculated over a time span (saref:hasTime ) and can be associated to some costs (saref:hasPrice). An example is the Power Profile defined in the SAREF4ENER extension that can be associated to a device for optimizing the Energy efficiency in the home, office or building in which the device is located."@en ; + rdfs:comment "A specification associated to a device to collect information about a certain Property (e.g., Energy) for optimizing its usage in the home, office or building in which the device is located. This specification is about a certain Property (saref:isAbout), can be calculated over a time span (saref:hasTime) and can be associated to some costs (saref:hasPrice). An example is the Power Profile defined in the SAREF4ENER extension that can be associated to a device for optimizing the Energy efficiency in the home, office or building in which the device is located."@en ; rdfs:label "Profile"@en . -- GitLab From 69725981a03690e8f175286f42f9c14ba8ac2755 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rau=CC=81l=20Garci=CC=81a=20Castro?= Date: Fri, 8 Nov 2019 12:52:54 +0100 Subject: [PATCH 6/6] Renamed hasFeatureOfInterest as isMeasurementOf and isFeatureOfInterestOf as hasMeasurement. Fixed some descriptions using "feature of interest" instead of "entity". Removed capitalization of a couple of words in descriptions. --- ontology/saref.ttl | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/ontology/saref.ttl b/ontology/saref.ttl index dc27e9c..df6a30e 100644 --- a/ontology/saref.ttl +++ b/ontology/saref.ttl @@ -53,7 +53,7 @@ saref:consistsOf rdf:type owl:ObjectProperty ; ### https://saref.etsi.org/controlsProperty saref:controlsProperty rdf:type owl:ObjectProperty ; - rdfs:comment "A relationship specifying the Property that can be controlled by a certain Device"@en ; + rdfs:comment "A relationship specifying the property that can be controlled by a certain device"@en ; rdfs:label "controls property"@en . @@ -64,11 +64,11 @@ saref:hasCommand rdf:type owl:ObjectProperty ; rdfs:label "has command"@en . -### https://saref.etsi.org/hasFeatureOfInterest -saref:hasFeatureOfInterest rdf:type owl:ObjectProperty ; - owl:inverseOf saref:isFeatureOfInterestOf ; - rdfs:comment "A relationship between a measurement and the entity whose quality was measured"@en ; - rdfs:label "has feature of interest"@en . +### https://saref.etsi.org/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/hasFunction @@ -91,7 +91,7 @@ saref:hasMeterReadingType rdf:type owl:ObjectProperty ; ### https://saref.etsi.org/hasPrice saref:hasPrice rdf:type owl:ObjectProperty ; - rdfs:comment "A relationships indentifying the price associated to an entity"@en ; + rdfs:comment "A relationship indentifying the price associated to an entity"@en ; rdfs:label "has price"@en . @@ -104,7 +104,7 @@ saref:hasProfile rdf:type owl:ObjectProperty ; ### https://saref.etsi.org/hasProperty saref:hasProperty rdf:type owl:ObjectProperty ; owl:inverseOf saref:isPropertyOf ; - rdfs:comment "A relationship between an entity and a property of that entity"@en ; + rdfs:comment "A relationship between a feature of interest and a property of that feature"@en ; rdfs:label "has property"@en . @@ -146,7 +146,7 @@ saref:hasTypicalConsumption rdf:type owl:ObjectProperty ; ### https://saref.etsi.org/isAbout saref:isAbout rdf:type owl:ObjectProperty ; - rdfs:comment "A relationship identifying what an entity, such as a Profile, is about"@en ; + rdfs:comment "A relationship identifying what an entity, such as a profile, is about"@en ; rdfs:label "isAbout"@en . @@ -168,10 +168,10 @@ saref:isControlledByDevice rdf:type owl:ObjectProperty ; rdfs:label "is controlled by device"@en . -### https://saref.etsi.org/isFeatureOfInterestOf -saref:isFeatureOfInterestOf rdf:type owl:ObjectProperty ; - rdfs:comment "A relationship between a feature of interest and a measurement about it"@en ; - rdfs:label "is feature of interest of"@en . +### https://saref.etsi.org/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/isMeasuredByDevice saref:isMeasuredByDevice rdf:type owl:ObjectProperty ; @@ -194,7 +194,7 @@ saref:isOfferedBy rdf:type owl:ObjectProperty ; ### https://saref.etsi.org/isPropertyOf saref:isPropertyOf rdf:type owl:ObjectProperty ; - rdfs:comment "A relationship between a property and the entity it belongs to"@en ; + rdfs:comment "A relationship between a property and the feature of interest it belongs to"@en ; rdfs:label "is property of"@en . @@ -513,7 +513,7 @@ saref:FeatureOfInterest rdf:type owl:Class ; owl:allValuesFrom saref:Property ] , [ a owl:Restriction ; - owl:onProperty saref:isFeatureOfInterestOf ; + owl:onProperty saref:hasMeasurement ; owl:allValuesFrom saref:Measurement ] ; rdfs:comment "A feature of interest represents any real world entity from which a property is measured."@en ; @@ -678,7 +678,7 @@ saref:Load rdf:type owl:Class ; ### https://saref.etsi.org/Measurement saref:Measurement rdf:type owl:Class ; rdfs:subClassOf [ rdf:type owl:Restriction ; - owl:onProperty saref:hasFeatureOfInterest ; + owl:onProperty saref:isMeasurementOf ; owl:allValuesFrom saref:FeatureOfInterest ] , [ rdf:type owl:Restriction ; @@ -975,7 +975,7 @@ saref:Property rdf:type owl:Class ; owl:onProperty saref:relatesToMeasurement ; owl:allValuesFrom saref:Measurement ] ; - rdfs:comment "A quality of an entity that can be measured; an aspect of an entity that is intrinsic to and cannot exist without the entity"@en ; + rdfs:comment "A quality of a feature of interest that can be measured; an aspect of a feature of interest that is intrinsic to and cannot exist without the feature"@en ; rdfs:label "Property"@en . -- GitLab