oneM2M Logo transparent 196x130

Standards for M2M and the Internet of Things

TR-0045 Semantic Modelling

The semantic modelling is typically based on an ontology that specifies classes and properties, i.e. the ontology defines the vocabulary to be used for the semantic description. In Figure below, a simple ontology for the semantic annotation and discovery use case is visualized .

Simple ontology for the semantic annotation and discovery use case

 

The Table below shows the actual OWL (Web Ontology Language) ontology in an RDF representation.

 

<?xml version="1.0"?>
<rdf:RDF xmlns="http://www.onem2m.org/ontology/temperature_example#"
     xml:base="http://www.onem2m.org/ontology/temperature_example"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
     xmlns:owl="http://www.w3.org/2002/07/owl#"
     xmlns:xml="http://www.w3.org/XML/1998/namespace"
     xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
     xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#">
    <owl:Ontology rdf:about="http://www.onem2m.org/ontology/temperature_example"/>
 
    <!-- Classes -->
    <owl:Class rdf:about="http://www.onem2m.org/ontology/temperature_example#Fridge"/>
    <owl:Class rdf:about="http://www.onem2m.org/ontology/temperature_example#House"/>
    <owl:Class rdf:about="http://www.onem2m.org/ontology/temperature_example#TemperatureMeasuringFunction"/>
    <owl:Class rdf:about="http://www.onem2m.org/ontology/temperature_example#TemperatureProperty"/>
    <owl:Class rdf:about="http://www.onem2m.org/ontology/temperature_example#TemperatureSensor"/> 
  
    <!-- Object Properties -->
    <owl:ObjectProperty rdf:about="http://www.onem2m.org/ontology/temperature_example#hasFridgeTemperature">
        <rdfs:domain rdf:resource="http://www.onem2m.org/ontology/temperature_example#Fridge"/>
        <rdfs:range rdf:resource="http://www.onem2m.org/ontology/temperature_example#TemperatureProperty"/>
    </owl:ObjectProperty>
    <owl:ObjectProperty rdf:about="http://www.onem2m.org/ontology/temperature_example#hasIndoorTemperature">
        <rdfs:domain rdf:resource="http://www.onem2m.org/ontology/temperature_example#House"/>
        <rdfs:range rdf:resource="http://www.onem2m.org/ontology/temperature_example#TemperatureProperty"/>
    </owl:ObjectProperty>
    <owl:ObjectProperty rdf:about="http://www.onem2m.org/ontology/temperature_example#hasOutdoorTemperature">
        <rdfs:domain rdf:resource="http://www.onem2m.org/ontology/temperature_example#House"/>
        <rdfs:range rdf:resource="http://www.onem2m.org/ontology/temperature_example#TemperatureProperty"/>
    </owl:ObjectProperty>
    <owl:ObjectProperty rdf:about="http://www.onem2m.org/ontology/temperature_example#hasTemperatureMeasuringFunction">
        <rdfs:domain rdf:resource="http://www.onem2m.org/ontology/temperature_example#TemperatureSensor"/>
        <rdfs:range rdf:resource="http://www.onem2m.org/ontology/temperature_example#TemperatureMeasuringFunction"/>
    </owl:ObjectProperty>
    <owl:ObjectProperty rdf:about="http://www.onem2m.org/ontology/temperature_example#measuresTemperature">
        <rdfs:domain rdf:resource="http://www.onem2m.org/ontology/temperature_example#TemperatureMeasuringFunction"/>
        <rdfs:range rdf:resource="http://www.onem2m.org/ontology/temperature_example#TemperatureProperty"/>
    </owl:ObjectProperty>
 
    <!-- Data properties -->
    <owl:DatatypeProperty rdf:about="http://www.onem2m.org/ontology/temperature_example#hasDatatype">
        <rdfs:domain rdf:resource="http://www.onem2m.org/ontology/temperature_example#TemperatureProperty"/>
        <rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#string"/>
    </owl:DatatypeProperty>
    <owl:DatatypeProperty rdf:about="http://www.onem2m.org/ontology/temperature_example#hasUnit">
        <rdfs:domain rdf:resource="http://www.onem2m.org/ontology/temperature_example#TemperatureProperty"/>
        <rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#string"/>
    </owl:DatatypeProperty>
    <owl:DatatypeProperty rdf:about="http://www.onem2m.org/ontology/temperature_example#valueIsStoredIn">
        <rdfs:domain rdf:resource="http://www.onem2m.org/ontology/temperature_example#TemperatureProperty"/>
        <rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#anyURI"/>
    </owl:DatatypeProperty>
   
</rdf:RDF>
Subscribe to oneM2M News Please enter your name and email address, then click on submit.
Alternatively, you can send an email from your preferred email application with a blank subject to
Listserv@list.etsi.org with subscribe oneM2M_News in the message body.

Subscribe to oneM2M News

Your Name(*)
Please let us know your name.

Your Email(*)
Please let us know your email address.