Example lightswitch

IRI
https://saref.etsi.org/core/v3.1.1/example/lightswitch#
Conforms to ontologies
Download serialization
License
Example lightswitch

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/lightswitch/> .
@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/lightswitch#> 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 lightswitch"@en ;
  dcterms:description "Example lightswitch"@en .

wgs84:lat a owl:DatatypeProperty .
wgs84:long a owl:DatatypeProperty .

ex: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 .
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:hasSpaceType "Office hall"^^xsd:string ;
.
ex:Light
  rdf:type saref:Light ;
  rdfs:label "Light "^^xsd:string ;
  saref:hasValue "not applicable"^^xsd:string ;
  saref:isMeasuredIn <http://www.wurvoc.org/vocabularies/om-1.8/lux> ;
.
ex:LightSwitch_LS1001
  rdf:type saref:LightSwitch ;
  rdfs:label "Light switch LS1001"^^xsd:string ;
#  saref:IsUsedFor ex:Light ;
  saref:accomplishes ex:Lighting ;
  saref:consistsOf saref:Switch ;
#  saref:hasCategory saref:Actuator ;
  saref:hasDescription "Light switch LS1001 is an example of how to instantiate a light switch using SAREF"^^xsd:string ;
  saref:hasFunction ex:OnOffFunction ;
  saref:hasManufacturer "manufacturer-abc"^^xsd:string ;
  saref:hasModel "890-09w"^^xsd:string ;
  saref:hasState ex:OffState ;
  saref:hasState ex:OnState ;
#  saref:isLocatedIn ex:BuildingSpace_OfficeHall ;
  saref:offers ex:SwitchOnService ;
.
ex:Lighting
  rdf:type saref:Task ;
  rdfs:label "Lighting"^^xsd:string ;
  saref:isAccomplishedBy ex:LightSwitch_LS1001 ;
.
ex:OffCommand
  rdf:type saref:OffCommand ;
  rdfs:label "OFF command "^^xsd:string ;
  saref:actsUpon ex:OnState ;
.
ex:OffState
  rdf:type saref:OffState ;
  rdfs:label "OFF state"^^xsd:string ;
.
ex:OnCommand
  rdf:type saref:OnCommand ;
  rdfs:label "ON command"^^xsd:string ;
  saref:actsUpon ex:OffState ;
.
ex:OnOffFunction
  rdf:type saref:OnOffFunction ;
  rdfs:label "ON OFF function "^^xsd:string ;
  saref:hasCommand ex:OffCommand ;
  saref:hasCommand ex:OnCommand ;
.
ex:OnState
  rdf:type saref:OnState ;
  rdfs:label "ON state"^^xsd:string ;
.
ex:SwitchOnService
  rdf:type saref:SwitchOnService ;
  rdfs:label "Switch ON service "^^xsd:string ;
#  saref:hasInputParameter ex:OffState ;
#  saref:hasOutputParameter ex:OnState ;
  saref:isOfferedBy ex:LightSwitch_LS1001 ;
  saref:represents ex:OnOffFunction ;
.