7.2.4 SDT 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  a  m2m:Operation, <https://saref.etsi.org/core/OnCommand> ;
    m2m:oneM2MTargetURI "/deviceClothesWasher/binarySwitch";
    m2m:oneM2Mattribute  "powerState" ;
    m2m:hasDataRestriction "True";
    m2m:oneM2MMethod "UPDATE" .

sn:WASH_XYZ-StartStopFunction-OFF_Command a m2m:Operation, <https://saref.etsi.org/core/OffCommand> ;
    m2m:oneM2MTargetURI "/deviceClothesWasher/binarySwitch";
    m2m:oneM2Mattribute  "powerState" ;
    m2m:hasDataRestriction "False";
    m2m:oneM2MMethod "UPDATE" .

sn:WASH_XYZ-StartStopFunction-TOGGLE_Command a m2m:Operation, <https://saref.etsi.org/core/ToggleCommand> ;
    m2m:oneM2MTargetURI "/deviceClothesWasher/binarySwitch/toggle";
    m2m:oneM2MMethod "UPDATE" .

sn:WASH_XYZ-MonitoringFunction-WashingMachineStatus a m2m:Operation ;
    m2m:oneM2MTargetURI "/deviceClothesWasher/runState";
    m2m:oneM2Mattribute  "currentMachineState" ;
    m2m:oneM2MMethod "RETRIEVE" .