7.2.2 Custom Model API semantic description
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.
@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 "/myWashingMachine/command";
m2m:hasDataRestriction "ON";
m2m:oneM2MMethod "CREATE" .
sn:WASH_XYZ-StartStopFunction-OFF_Command_RESOURCE_ID a m2m:Operation, <https://saref.etsi.org/core/OffCommand> ;
m2m:oneM2MTargetURI "/myWashingMachine/command";
m2m:hasDataRestriction "OFF";
m2m:oneM2MMethod "CREATE" .
sn:WASH_XYZ-StartStopFunction-TOGGLE_Command_RESOURCE_ID a m2m:Operation, <https://saref.etsi.org/core/ToggleCommand> ;
m2m:oneM2MTargetURI "/myWashingMachine/command";
m2m:hasDataRestriction "TOGGLE";
m2m:oneM2MMethod "CREATE" .
sn:WASH_XYZ-MonitoringFunction-WashingMachineStatus_RESOURCE_ID a m2m:Operation, <https://saref.etsi.org/core/GetCommand> ;
m2m:oneM2MTargetURI "/myWashingMachine/status";
m2m:oneM2MMethod "RETRIEVE" .