<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:ns0="https://w3id.org/coswot/" xmlns:owl="http://www.w3.org/2002/07/owl#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:metadata_def="http://data.bioontology.org/metadata/def/" xmlns:metadata="http://data.bioontology.org/metadata/" xmlns:skos="http://www.w3.org/2004/02/skos/core#">
<owl:Class rdf:about="https://w3id.org/coswot/Operation">
<rdfs:subClassOf rdf:resource="https://w3id.org/coswot/Procedure"/>
<metadata_def:mappingSameURI rdf:resource="https://w3id.org/coswot/Operation"/>
<metadata_def:mappingLoom>operation</metadata_def:mappingLoom>
<metadata_def:prefLabel xml:lang="en">Operation</metadata_def:prefLabel>
<rdfs:comment xml:lang="en">A coswot:Operation is the means of a service to communicate in a procedure-type manner over the network (i.e. transmit data to/from other devices). It is the –machine interpretable– exposure of a –human understandable– command to a network. While a coswot:OperationOfInterest is specific to a service of interest, a coswot:OperationKind is an archetype of operations.</rdfs:comment>
<metadata:prefixIRI>coswot:Operation</metadata:prefixIRI>
<skos:note xml:lang="en">Typically, a device connected to a given network offers one service for each of its functions of interest, and each service has one operation per command of interest of the function of interest it represents.</skos:note>
<skos:note xml:lang="en">An operation may be described in terms of its inputs and outputs using OP coswot:hasInput and coswot:hasOutput. Inputs and outputs of operations typically describe the expected schema or shape of network messages.</skos:note>
<rdfs:isDefinedBy rdf:resource="https://w3id.org/coswot/core/services_operations"/>
<rdfs:label xml:lang="en">Operation</rdfs:label>
<skos:example xml:lang="en">In the set of operations exposed by a smart washing machine on a given network, one may be dedicated to set the water temperature for the washing cycle, and expected as input a enumerated value. Another one may be dedicated to start, pause, or stop the washing cycle.</skos:example>
<skos:example xml:lang="en">To turn on a light, send a CoAP PUT request with CBOR content 0xf5 (true)</skos:example>
<skos:example xml:lang="en">In the set of operations exposed by a smart light bulb on a given network, one may be dedicated to turn on and off the light and expect a boolean as input. Another one may be dedicated to set the luminosity status and expect a target luminosity level (a byte) and a transition time (encoded on two bytes).</skos:example>
</owl:Class>
<rdf:Description rdf:about="https://w3id.org/coswot/OperationKind">
<rdfs:subClassOf>
<rdf:Description rdf:about="https://w3id.org/coswot/Operation">
<metadata_def:mappingSameURI rdf:resource="https://w3id.org/coswot/Operation"/>
</rdf:Description>
</rdfs:subClassOf>
</rdf:Description>
<rdf:Description rdf:about="https://w3id.org/coswot/OperationOfInterest">
<rdfs:subClassOf rdf:resource="https://w3id.org/coswot/Operation"/>
</rdf:Description>
<rdf:Description rdf:about="https://w3id.org/coswot/hasOperation">
<rdfs:range rdf:resource="https://w3id.org/coswot/Operation"/>
</rdf:Description>
<rdf:Description rdf:about="https://w3id.org/coswot/isOperationOf">
<rdfs:domain rdf:resource="https://w3id.org/coswot/Operation"/>
</rdf:Description>
</rdf:RDF>
<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:ns0="https://w3id.org/coswot/" xmlns:owl="http://www.w3.org/2002/07/owl#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:metadata_def="http://data.bioontology.org/metadata/def/" xmlns:metadata="http://data.bioontology.org/metadata/" xmlns:skos="http://www.w3.org/2004/02/skos/core#">
<owl:Class rdf:about="https://w3id.org/coswot/Operation">
<rdfs:subClassOf rdf:resource="https://w3id.org/coswot/Procedure"/>
<metadata_def:mappingSameURI rdf:resource="https://w3id.org/coswot/Operation"/>
<metadata_def:mappingLoom>operation</metadata_def:mappingLoom>
<metadata_def:prefLabel xml:lang="en">Operation</metadata_def:prefLabel>
<rdfs:comment xml:lang="en">A coswot:Operation is the means of a service to communicate in a procedure-type manner over the network (i.e. transmit data to/from other devices). It is the –machine interpretable– exposure of a –human understandable– command to a network. While a coswot:OperationOfInterest is specific to a service of interest, a coswot:OperationKind is an archetype of operations.</rdfs:comment>
<metadata:prefixIRI>coswot:Operation</metadata:prefixIRI>
<skos:note xml:lang="en">Typically, a device connected to a given network offers one service for each of its functions of interest, and each service has one operation per command of interest of the function of interest it represents.</skos:note>
<skos:note xml:lang="en">An operation may be described in terms of its inputs and outputs using OP coswot:hasInput and coswot:hasOutput. Inputs and outputs of operations typically describe the expected schema or shape of network messages.</skos:note>
<rdfs:isDefinedBy rdf:resource="https://w3id.org/coswot/core/services_operations"/>
<rdfs:label xml:lang="en">Operation</rdfs:label>
<skos:example xml:lang="en">In the set of operations exposed by a smart washing machine on a given network, one may be dedicated to set the water temperature for the washing cycle, and expected as input a enumerated value. Another one may be dedicated to start, pause, or stop the washing cycle.</skos:example>
<skos:example xml:lang="en">To turn on a light, send a CoAP PUT request with CBOR content 0xf5 (true)</skos:example>
<skos:example xml:lang="en">In the set of operations exposed by a smart light bulb on a given network, one may be dedicated to turn on and off the light and expect a boolean as input. Another one may be dedicated to set the luminosity status and expect a target luminosity level (a byte) and a transition time (encoded on two bytes).</skos:example>
</owl:Class>
<rdf:Description rdf:about="https://w3id.org/coswot/OperationKind">
<rdfs:subClassOf>
<rdf:Description rdf:about="https://w3id.org/coswot/Operation">
<metadata_def:mappingSameURI rdf:resource="https://w3id.org/coswot/Operation"/>
</rdf:Description>
</rdfs:subClassOf>
</rdf:Description>
<rdf:Description rdf:about="https://w3id.org/coswot/OperationOfInterest">
<rdfs:subClassOf rdf:resource="https://w3id.org/coswot/Operation"/>
</rdf:Description>
<rdf:Description rdf:about="https://w3id.org/coswot/hasOperation">
<rdfs:range rdf:resource="https://w3id.org/coswot/Operation"/>
</rdf:Description>
<rdf:Description rdf:about="https://w3id.org/coswot/isOperationOf">
<rdfs:domain rdf:resource="https://w3id.org/coswot/Operation"/>
</rdf:Description>
</rdf:RDF>