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] 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