7.2.3 Semantic Model annotation
The specific primitive requests described in clause 7.2.1 are described in RDF triples using the oneM2M base ontology. The classes of interest in the oneM2M base ontology are: m2m:oneM2MTargetURI, m2m:hasDataRestriction, m2m:oneM2MMethod and m2m:oneM2Mattribute.
@prefix saref: <https://saref.etsi.org/core/> .
@prefix s4bldg: <> .
@prefix xsd: <> .
@prefix rdfs: <> .
@prefix sn: <> .
@prefix m2m: <> .
sn:WASH_XYZ-StartStopFunction-ON_Command_RESOURCE_ID a m2m:Operation, <https://saref.etsi.org/core/OnCommand> ;
m2m:oneM2MTargetURI "/My-WashingMachine/SwitchOnService";
m2m:oneM2Mattribute "BinaryInput" ;
m2m:oneM2MMethod "UPDATE" ;
m2m:hasDataRestriction "True".
sn:WASH_XYZ-StartStopFunction-OFF_Command_RESOURCE_ID a m2m:Operation, <https://saref.etsi.org/core/OffCommand> ;
m2m:oneM2MTargetURI "/My-WashingMachine/SwitchOnService";
m2m:oneM2Mattribute "BinaryInput" ;
m2m:oneM2MMethod "UPDATE" ;
m2m:hasDataRestriction "False".
sn:WASH_XYZ-MonitoringFunction-WashingMachineStatus_RESOURCE_ID a m2m:Operation, <https://saref.etsi.org/core/GetCommand> ;
m2m:oneM2MTargetURI "/My-WashingMachine/sarefWashingMachine";
m2m:oneM2MMethod "RETRIEVE" ;
m2m:oneM2Mattribute "WashingMachineStatus" .