Example doorswitch
Turtle
@prefix wgs84: <http://www.w3.org/2003/01/geo/wgs84_pos#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix saref: <https://saref.etsi.org/core/> .
@prefix ex: <https://saref.etsi.org/core/v3.1.1/example/doorswitch/> .
@prefix time: <http://www.w3.org/2006/time#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix dctype: <http://purl.org/dc/dcmitype/> .
@prefix dcterms: <http://purl.org/dc/terms/> .
<https://saref.etsi.org/core/v3.1.1/example/doorswitch#> a dctype:Dataset ;
dcterms:license <https://forge.etsi.org/etsi-software-license> ;
dcterms:conformsTo <https://saref.etsi.org/core/v3.1.1/> ;
dcterms:title "Example doorswitch"@en ;
dcterms:description "Example doorswitch"@en .
wgs84:lat a owl:DatatypeProperty .
wgs84:long a owl:DatatypeProperty .
ex:BuildingObject_MainDoor
# rdf:type saref:Door ;
rdfs:label "Building object Main door"^^xsd:string ;
.
ex:BuildingSpace_OfficeHall
# rdf:type saref:BuildingSpace ;
rdfs:label "Office Hall"^^xsd:string ;
wgs84:lat "52.0821"^^xsd:string ;
wgs84:long "4.3251"^^xsd:string ;
# saref:contains ex:BuildingObject_MainDoor ;
# saref:hasSpaceType "Office hall"^^xsd:string ;
.
ex:CloseCommand
rdf:type saref:CloseCommand ;
rdfs:label "CLOSE command "^^xsd:string ;
saref:actsUpon ex:OpenState ;
.
ex:CloseDoorService
rdf:type saref:Service ;
rdfs:label "CLOSE Door service "^^xsd:string ;
# saref:hasInputParameter ex:OpenState ;
# saref:hasOutputParameter ex:CloseState ;
saref:isOfferedBy ex:DoorSwitch_DS3001 ;
saref:represents ex:OpenCloseFunction ;
.
ex:CloseState
rdf:type saref:CloseState ;
rdfs:label "CLOSE state"^^xsd:string ;
.
ex:Comfort
rdf:type saref:Task ;
rdfs:label "Comfort"^^xsd:string ;
.
ex:DoorSwitch_DS001
# rdf:type saref:DoorSwitch ;
rdfs:label "Door switch DS3001"^^xsd:string ;
# saref:IsUsedFor ex:BuildingObject_MainDoor ;
saref:accomplishes ex:Comfort ;
saref:consistsOf saref:Switch ;
# saref:hasCategory saref:Actuator ;
saref:hasDescription "Door switch DS3001 is an example of how to instantiate a door switch using SAREF"^^xsd:string ;
saref:hasFunction ex:OpenCloseFunction ;
saref:hasManufacturer "manufacturer-mno"^^xsd:string ;
saref:hasModel "mno-DS3001-16"^^xsd:string ;
saref:hasState ex:CloseState ;
saref:hasState ex:OpenState ;
# saref:isLocatedIn ex:BuildingSpace_OfficeHall ;
saref:offers ex:CloseDoorService ;
.
ex:OpenCloseFunction
rdf:type saref:OpenCloseFunction ;
rdfs:label "OPEN CLOSE function "^^xsd:string ;
saref:hasCommand ex:CloseCommand ;
saref:hasCommand ex:OpenCommand ;
.
ex:OpenCommand
rdf:type saref:OpenCommand ;
rdfs:label "OPEN command"^^xsd:string ;
saref:actsUpon ex:CloseState ;
.
ex:OpenState
rdf:type saref:OpenState ;
rdfs:label "Open state"^^xsd:string ;
.