diff --git a/examples/unitsmeasure.ttl b/examples/unitsmeasure.ttl new file mode 100644 index 0000000000000000000000000000000000000000..a890f24c1e725da3b6905e2c70c3b8a232c28733 --- /dev/null +++ b/examples/unitsmeasure.ttl @@ -0,0 +1,96 @@ +@prefix : . +@prefix om: . +@prefix owl: . +@prefix rdf: . +@prefix xml: . +@prefix xsd: . +@prefix rdfs: . +@prefix saref: . +@base . + + +### http://www.wurvoc.org/vocabularies/om-1.8/United_States_dollar +om:United_States_dollar rdf:type owl:NamedIndividual , + saref:Currency ; + rdfs:label "United States dollar"@en . + + +### http://www.wurvoc.org/vocabularies/om-1.8/bar +om:bar rdf:type owl:NamedIndividual , + saref:PressureUnit ; + rdfs:comment "The bar is a unit of pressure defined as 100 000 pascal."@en ; + rdfs:label "bar"@en . + + +### http://www.wurvoc.org/vocabularies/om-1.8/degree_Celsius +om:degree_Celsius rdf:type owl:NamedIndividual , + saref:TemperatureUnit ; + rdfs:comment "The degree Celsius is a unit of temperature defined as 1 kelvin."@en ; + rdfs:label "degree Celsius"@en . + + +### http://www.wurvoc.org/vocabularies/om-1.8/degree_Fahrenheit +om:degree_Fahrenheit rdf:type owl:NamedIndividual , + saref:TemperatureUnit ; + rdfs:comment "The degree Fahrenheit is a unit of temperature defined as 5.555556e-1 kelvin."@en ; + rdfs:label "degree Fahrenheit"@en . + + +### http://www.wurvoc.org/vocabularies/om-1.8/euro +om:euro rdf:type owl:NamedIndividual , + saref:Currency ; + rdfs:label "euro"@en . + + +### http://www.wurvoc.org/vocabularies/om-1.8/kelvin +om:kelvin rdf:type owl:NamedIndividual , + saref:TemperatureUnit ; + rdfs:comment "The kelvin is a unit of temperature defined as 1/273.16 of the thermodynamic temperature of the triple point of water."@en ; + rdfs:label "kelvin"@en . + + +### http://www.wurvoc.org/vocabularies/om-1.8/kilowatt +om:kilowatt rdf:type owl:NamedIndividual , + saref:PowerUnit ; + rdfs:label "kilowatt"@en . + + +### http://www.wurvoc.org/vocabularies/om-1.8/kilowatt_hour +om:kilowatt_hour rdf:type owl:NamedIndividual , + saref:EnergyUnit ; + rdfs:comment "The kilowatt hour is a unit of energy equal to 1,000 watt-hours, or 3.6 megajoules."@en ; + rdfs:label "kilowatt hour"@en . + + +### http://www.wurvoc.org/vocabularies/om-1.8/lux +om:lux rdf:type owl:NamedIndividual , + saref:IlluminanceUnit ; + rdfs:comment "The lux is a unit of illuminance defined as lumen divided by square metre = candela times steradian divided by square metre."@en ; + rdfs:label "lux"@en . + + +### http://www.wurvoc.org/vocabularies/om-1.8/pascal +om:pascal rdf:type owl:NamedIndividual , + saref:PressureUnit ; + rdfs:comment "The pascal is a unit of pressure and stress defined as newton divided by square metre = joule divided by cubic metre = kilogram divided by metre second squared."@en ; + rdfs:label "pascal"@en . + + +### http://www.wurvoc.org/vocabularies/om-1.8/pound_sterling +om:pound_sterling rdf:type owl:NamedIndividual , + saref:Currency ; + rdfs:label "Great Britain pound sterling"@en . + + +### http://www.wurvoc.org/vocabularies/om-1.8/watt +om:watt rdf:type owl:NamedIndividual , + saref:PowerUnit ; + rdfs:comment "The watt is a unit of power defined as joule divided by second = newton times metre divided by second = volt times ampere = kilogram times square metre divided by second to the power 3."@en ; + rdfs:label "watt"@en . + + +### https://saref.etsi.org/watt_hour +saref:watt_hour rdf:type owl:NamedIndividual , + saref:EnergyUnit ; + rdfs:comment "The Watt Hor is a unit of energy equivalent to one watt (1 W) of power expended for one hour (1 h) of time. An energy expenditure of 1 Wh represents 3600 joules "@en ; + rdfs:label "watt hour"@en . diff --git a/ontology/saref.ttl b/ontology/saref.ttl index ddc6f9c1093f9ddbe0e9c02db6e912afb95654b6..b4ddbb9454b10be652e3ad5208b1423bf265c473 100644 --- a/ontology/saref.ttl +++ b/ontology/saref.ttl @@ -1,5 +1,4 @@ @prefix : . -@prefix om: . @prefix owl: . @prefix rdf: . @prefix xml: . @@ -25,7 +24,7 @@ vann:preferredNamespaceUri "https://saref.etsi.org/" ; rdfs:comment "Information about changes compared to version 2.1.1: Small version bump to ensure that the turtle-version and the owl-version are up to date." ; dcterms:description "The Smart Appliances REFerence (SAREF) ontology is a shared model of consensus that facilitates the matching of existing assets (standards/protocols/datamodels/etc.) in the smart appliances domain. The SAREF ontology provides building blocks that allow separation and recombination of different parts of the ontology depending on specific needs. The starting point of SAREF is the concept of device (e.g., a switch). Devices are tangible objects designed to accomplish a particular task in households, common public buildings or offices. In order to accomplish this task, the device performs one or more functions. For example, a washing machine is designed to wash (task) and to accomplish this task it performs the start and stop function. The SAREF ontology offers a lists of basic functions that can be eventually combined in order to have more complex functions in a single device. For example, a switch offers an actuating function of type 'switching on/off'. Each function has some associated commands, which can also be picked up as building blocks from a list. For example, the 'switching on/off' is associated with the commands 'switch on', 'switch off' and 'toggle'. Depending on the function(s) it accomplishes, a device can be found in some corresponding states that are also listed as building blocks. When connected to a network, a device offers a service, which is a representation of a function to a network that makes the function discoverable, registerable and remotely controllable by other devices in the network. A service can represent one or more functions. A service is offered by a device that wants (a certain set of) its function(s) to be discoverable, registerable, remotely controllable by other devices in the network. A service must specify the device that is offering the service and the function(s) to be represented. A device in the SAREF ontology is also characterized by a profile that can be used to optimize some property, such as Energy, in a home or office that are part of a building."@en ; - rdfs:comment "Information about changes compared to version 1.1.1: (1)The classes and properties related to how to represent devices in building spaces (such as the saref:BuildingSpace class, saref:BuildingObject class and saref:isLocatedIn property) have been removed from SAREF and incorporated into the SAREF4BLDG extension related to buildings (https://w3id.org/def/saref4bldg), including the reuse of the W3C® WGS84 geo positioning vocabulary; (2)The saref:DeviceCategory and saref:FunctionCategory classes have been removed. Instead, the hierarchy of device categories has been implemented directly as subclasses of the saref:Device class; (3)The information specific for energy efficiency has been moved to the SAREF4ENER extension (https://w3id.org/saref4ener). For example, the saref:Profile class has been redefined to accommodate only the properties that are general enough for any type of profile, not only for energy and power. Details on how to specifically model a power profile can be found in the SAREF4ENER extension (https://w3id.org/saref4ener); (4) The subclasses of the saref:Energy class have been removed (i.e., Average Energy, Maximum Energy, Minimum Energy, Total Energy, HVAC Energy, Hot Water Energy and Lighting Energy); (5)The saref:Property class has been split into two classes (saref:Property and saref:Measurement), as it is done in the SAREF4ENVI extension (https://w3id.org/def/saref4envi), in order to properly accommodate the distinction between the concept of property (an observable quality of something) and the concept of measurement (a concrete value observed for a property); (6)Too restrictive cardinality restrictions have been revised, sometimes making them optional rather than mandatory (better to make properties mandatory in the extensions that specialize SAREF for a specific purpose, rather than restricting SAREF, whose purpose is more general). For example, definitions of units of measurement using an enumeration (owl:oneOf) were too restrictive because they did not allow using other units than those enumerated. Therefore, the individuals of each class are still there, but the owl:oneOf enumeration has been removed; (7)The saref:UnitOfMeasure subclassesre use individuals from the OM ontology for unit of measures (http://www.wurvoc.org/vocabularies/om-1.6/), but this is not the only solution. It has been clarified in the comments that the OM ontology is an example, but other ontologies can be used; (8)The global restrictions (rdfs:domain and rdfs:range) in object properties have been completely removed not to hinder interoperability. Object properties are now only restricted locally in the classes; (9)The subclasses of saref:Task have been transormed in individuals; (10)The saref:hasTask property has been removed from the saref:Profile class to resolve an ambiguity with the saref:Task class." ; + rdfs:comment "Information about changes compared to version 1.1.1: (1)The classes and properties related to how to represent devices in building spaces (such as the saref:BuildingSpace class, saref:BuildingObject class and saref:isLocatedIn property) have been removed from SAREF and incorporated into the SAREF4BLDG extension related to buildings (https://w3id.org/def/saref4bldg), including the reuse of the W3C® WGS84 geo positioning vocabulary; (2)The saref:DeviceCategory and saref:FunctionCategory classes have been removed. Instead, the hierarchy of device categories has been implemented directly as subclasses of the saref:Device class; (3)The information specific for energy efficiency has been moved to the SAREF4ENER extension (https://w3id.org/saref4ener). For example, the saref:Profile class has been redefined to accommodate only the properties that are general enough for any type of profile, not only for energy and power. Details on how to specifically model a power profile can be found in the SAREF4ENER extension (https://w3id.org/saref4ener); (4) The subclasses of the saref:Energy class have been removed (i.e., Average Energy, Maximum Energy, Minimum Energy, Total Energy, HVAC Energy, Hot Water Energy and Lighting Energy); (5)The saref:Property class has been split into two classes (saref:Property and saref:Measurement), as it is done in the SAREF4ENVI extension (https://w3id.org/def/saref4envi), in order to properly accommodate the distinction between the concept of property (an observable quality of something) and the concept of measurement (a concrete value observed for a property); (6)Too restrictive cardinality restrictions have been revised, sometimes making them optional rather than mandatory (better to make properties mandatory in the extensions that specialize SAREF for a specific purpose, rather than restricting SAREF, whose purpose is more general). For example, definitions of units of measurement using an enumeration (owl:oneOf) were too restrictive because they did not allow using other units than those enumerated. Therefore, the individuals of each class are still there, but the owl:oneOf enumeration has been removed; (7)The saref:UnitOfMeasure subclasses use individuals from the OM ontology for unit of measures (http://www.wurvoc.org/vocabularies/om-1.6/), but this is not the only solution. It has been clarified in the comments that the OM ontology is an example, but other ontologies can be used; (8)The global restrictions (rdfs:domain and rdfs:range) in object properties have been completely removed not to hinder interoperability. Object properties are now only restricted locally in the classes; (9)The subclasses of saref:Task have been transormed in individuals; (10)The saref:hasTask property has been removed from the saref:Profile class to resolve an ambiguity with the saref:Task class." ; dcterms:publisher . ################################################################# @@ -53,7 +52,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 . @@ -187,7 +186,7 @@ saref:makesMeasurement rdf:type owl:ObjectProperty ; ### https://saref.etsi.org/measuresProperty saref:measuresProperty rdf:type owl:ObjectProperty ; - rdfs:comment "A relationship specifying the Property that can be measured by a certain Device"@en ; + rdfs:comment "A relationship specifying the property that can be measured by a certain device"@en ; rdfs:label "measures property"@en . @@ -482,7 +481,7 @@ saref:Function rdf:type owl:Class ; owl:minQualifiedCardinality "1"^^xsd:nonNegativeInteger ; owl:onClass saref:Command ] ; - rdfs:comment "The functionality necessary to accomplish the task for which a Device is designed. A device can be designed to perform more than one function. Functions can be structured in categories (subclasses) that reflect different points of view, for example, considering the specific application area for which a function can be used (e.g., light, temperature, motion, heat, power, etc.), or the capability that a function can support (e.g., receive, reply, notify, etc.), and so forth. "@en ; + rdfs:comment "The functionality necessary to accomplish the task for which a device is designed. A device can be designed to perform more than one function. Functions can be structured in categories (subclasses) that reflect different points of view, for example, considering the specific application area for which a function can be used (e.g., light, temperature, motion, heat, power, etc.), or the capability that a function can support (e.g., receive, reply, notify, etc.), and so forth. "@en ; rdfs:label "Function"@en . @@ -1202,7 +1201,6 @@ saref:ToggleCommand rdf:type owl:Class ; ### https://saref.etsi.org/UnitOfMeasure saref:UnitOfMeasure rdf:type owl:Class ; rdfs:comment "The unit of measure is a standard for measurement of a quantity, such as a Property. For example, Power is a property and Watt is a unit of power that represents a definite predetermined power: when we say 10 Watt, we actually mean 10 times the definite predetermined power called \"watt\". Our definition is based on the definition of unit of measure in the Ontology of units of Measure (OM). We propose here a list of some units of measure that are relevant for the purpose of SAREF, but this list can be extended, also using some other ontologies rather than the Ontology of units of Measure (OM)."@en ; - rdfs:isDefinedBy ; rdfs:label "Unit of measure"@en . @@ -1237,85 +1235,6 @@ saref:Water rdf:type owl:Class ; # Individuals ################################################################# -### http://www.wurvoc.org/vocabularies/om-1.8/United_States_dollar -om:United_States_dollar rdf:type owl:NamedIndividual , - saref:Currency ; - rdfs:label "United States dollar"@en . - - -### http://www.wurvoc.org/vocabularies/om-1.8/bar -om:bar rdf:type owl:NamedIndividual , - saref:PressureUnit ; - rdfs:comment "The bar is a unit of pressure defined as 100 000 pascal."@en ; - rdfs:label "bar"@en . - - -### http://www.wurvoc.org/vocabularies/om-1.8/degree_Celsius -om:degree_Celsius rdf:type owl:NamedIndividual , - saref:TemperatureUnit ; - rdfs:comment "The degree Celsius is a unit of temperature defined as 1 kelvin."@en ; - rdfs:label "degree Celsius"@en . - - -### http://www.wurvoc.org/vocabularies/om-1.8/degree_Fahrenheit -om:degree_Fahrenheit rdf:type owl:NamedIndividual , - saref:TemperatureUnit ; - rdfs:comment "The degree Fahrenheit is a unit of temperature defined as 5.555556e-1 kelvin."@en ; - rdfs:label "degree Fahrenheit"@en . - - -### http://www.wurvoc.org/vocabularies/om-1.8/euro -om:euro rdf:type owl:NamedIndividual , - saref:Currency ; - rdfs:label "euro"@en . - - -### http://www.wurvoc.org/vocabularies/om-1.8/kelvin -om:kelvin rdf:type owl:NamedIndividual , - saref:TemperatureUnit ; - rdfs:comment "The kelvin is a unit of temperature defined as 1/273.16 of the thermodynamic temperature of the triple point of water."@en ; - rdfs:label "kelvin"@en . - - -### http://www.wurvoc.org/vocabularies/om-1.8/kilowatt -om:kilowatt rdf:type owl:NamedIndividual , - saref:PowerUnit ; - rdfs:label "kilowatt"@en . - - -### http://www.wurvoc.org/vocabularies/om-1.8/kilowatt_hour -om:kilowatt_hour rdf:type owl:NamedIndividual , - saref:EnergyUnit ; - rdfs:comment "The kilowatt hour is a unit of energy equal to 1,000 watt-hours, or 3.6 megajoules."@en ; - rdfs:label "kilowatt hour"@en . - - -### http://www.wurvoc.org/vocabularies/om-1.8/lux -om:lux rdf:type owl:NamedIndividual , - saref:IlluminanceUnit ; - rdfs:comment "The lux is a unit of illuminance defined as lumen divided by square metre = candela times steradian divided by square metre."@en ; - rdfs:label "lux"@en . - - -### http://www.wurvoc.org/vocabularies/om-1.8/pascal -om:pascal rdf:type owl:NamedIndividual , - saref:PressureUnit ; - rdfs:comment "The pascal is a unit of pressure and stress defined as newton divided by square metre = joule divided by cubic metre = kilogram divided by metre second squared."@en ; - rdfs:label "pascal"@en . - - -### http://www.wurvoc.org/vocabularies/om-1.8/pound_sterling -om:pound_sterling rdf:type owl:NamedIndividual , - saref:Currency ; - rdfs:label "Great Britain pound sterling"@en . - - -### http://www.wurvoc.org/vocabularies/om-1.8/watt -om:watt rdf:type owl:NamedIndividual , - saref:PowerUnit ; - rdfs:comment "The watt is a unit of power defined as joule divided by second = newton times metre divided by second = volt times ampere = kilogram times square metre divided by second to the power 3."@en ; - rdfs:label "watt"@en . - ### https://saref.etsi.org/Cleaning saref:Cleaning rdf:type owl:NamedIndividual , @@ -1383,10 +1302,3 @@ saref:WellBeing rdf:type owl:NamedIndividual , saref:Task ; rdfs:comment "A type of task for which a device is designed"@en ; rdfs:label "WellBeing"@en . - - -### https://saref.etsi.org/watt_hour -saref:watt_hour rdf:type owl:NamedIndividual , - saref:EnergyUnit ; - rdfs:comment "The Watt Hor is a unit of energy equivalent to one watt (1 W) of power expended for one hour (1 h) of time. An energy expenditure of 1 Wh represents 3600 joules "@en ; - rdfs:label "watt hour"@en .