<?xml version="1.0"?>
<rdf:RDF xmlns="http://bimerr.iot.linkeddata.es/def/sensor-data#"
     xml:base="http://bimerr.iot.linkeddata.es/def/sensor-data"
     xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:owl="http://www.w3.org/2002/07/owl#"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
     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#"
     xmlns:vann="http://purl.org/vocab/vann/"
     xmlns:terms="http://purl.org/dc/terms/">
    <owl:Ontology rdf:about="http://bimerr.iot.linkeddata.es/def/sensor-data#">
        <dc:created xml:lang="en">2020-02-01</dc:created>
        <dc:creator>María Poveda-Villalón</dc:creator>
        <dc:creator>Serge Chávez-Feria.</dc:creator>
        <dc:description xml:lang="en">The Sensor Data ontology has been developed to represent measurements generated by sensors located inside building spaces. It also includes specific concepts and properties to model sensors and actuators records that follow the SenML standard. This model allows the representation of resolved and unresolved records if required. (Check SenML standard for more details: https://tools.ietf.org/html/rfc8428#)</dc:description>
        <dc:publisher>http://www.oeg-upm.net/</dc:publisher>
        <dc:title xml:lang="en">Sensor Data ontology</dc:title>
        <terms:license>http://purl.org/NET/rdflicense/cc-by4.0</terms:license>
        <vann:preferredNamespacePrefix xml:lang="en">sd</vann:preferredNamespacePrefix>
        <owl:versionInfo>0.0.3</owl:versionInfo>
    </owl:Ontology>
    


    <!-- 
    ///////////////////////////////////////////////////////////////////////////////////////
    //
    // Annotation properties
    //
    ///////////////////////////////////////////////////////////////////////////////////////
     -->


    


    <!-- http://purl.org/dc/elements/1.1/created -->


    <owl:AnnotationProperty rdf:about="http://purl.org/dc/elements/1.1/created"/>
    


    <!-- http://purl.org/dc/elements/1.1/creator -->


    <owl:AnnotationProperty rdf:about="http://purl.org/dc/elements/1.1/creator"/>
    


    <!-- http://purl.org/dc/elements/1.1/description -->


    <owl:AnnotationProperty rdf:about="http://purl.org/dc/elements/1.1/description"/>
    


    <!-- http://purl.org/dc/elements/1.1/publisher -->


    <owl:AnnotationProperty rdf:about="http://purl.org/dc/elements/1.1/publisher"/>
    


    <!-- http://purl.org/dc/elements/1.1/title -->


    <owl:AnnotationProperty rdf:about="http://purl.org/dc/elements/1.1/title"/>
    


    <!-- http://purl.org/dc/terms/license -->


    <owl:AnnotationProperty rdf:about="http://purl.org/dc/terms/license"/>
    


    <!-- http://purl.org/vocab/vann/preferredNamespacePrefix -->


    <owl:AnnotationProperty rdf:about="http://purl.org/vocab/vann/preferredNamespacePrefix"/>
    


    <!-- http://purl.org/vocab/vann/preferredNamespaceUri -->


    <owl:AnnotationProperty rdf:about="http://purl.org/vocab/vann/preferredNamespaceUri"/>
    


    <!-- 
    ///////////////////////////////////////////////////////////////////////////////////////
    //
    // Object Properties
    //
    ///////////////////////////////////////////////////////////////////////////////////////
     -->


    


    <!-- https://w3id.org/saref#isControlledByDevice -->


    <owl:ObjectProperty rdf:about="https://w3id.org/saref#isControlledByDevice">
        <rdfs:comment xml:lang="en">A relationship specifying the devices that can control a certain property.</rdfs:comment>
        <rdfs:label xml:lang="en">is controlled by device</rdfs:label>
    </owl:ObjectProperty>
    


    <!-- https://w3id.org/saref#isMeasuredByDevice -->


    <owl:ObjectProperty rdf:about="https://w3id.org/saref#isMeasuredByDevice">
        <rdfs:comment xml:lang="en">A relationship specifying the devices that can measure a certain property.</rdfs:comment>
        <rdfs:label xml:lang="en">is measured by device</rdfs:label>
    </owl:ObjectProperty>
    


    <!-- https://w3id.org/saref#isMeasuredIn -->


    <owl:ObjectProperty rdf:about="https://w3id.org/saref#isMeasuredIn">
        <rdfs:comment xml:lang="en">A relationship identifying the unit of measure used for a certain entity.</rdfs:comment>
        <rdfs:label xml:lang="en">is measured in</rdfs:label>
    </owl:ObjectProperty>
    


    <!-- https://w3id.org/saref#isMeasurementOf -->


    <owl:ObjectProperty rdf:about="https://w3id.org/saref#isMeasurementOf">
        <rdfs:comment xml:lang="en">A relationship between a measurement and the feature of interest whose quality was measured.</rdfs:comment>
        <rdfs:label xml:lang="en">is measurement of</rdfs:label>
    </owl:ObjectProperty>
    


    <!-- https://w3id.org/saref#makesMeasurement -->


    <owl:ObjectProperty rdf:about="https://w3id.org/saref#makesMeasurement">
        <rdfs:comment xml:lang="en">A relation between a device and the measurements it makes. Such measurement will link together the value of the measurement, its unit of measure and the property to which it relates.</rdfs:comment>
        <rdfs:label xml:lang="en">makes measurement</rdfs:label>
    </owl:ObjectProperty>
    


    <!-- https://w3id.org/saref#relatesToProperty -->


    <owl:ObjectProperty rdf:about="https://w3id.org/saref#relatesToProperty">
        <rdfs:comment xml:lang="en">A relationship between a measurement and the property it relates to.</rdfs:comment>
        <rdfs:label xml:lang="en">relates to property</rdfs:label>
    </owl:ObjectProperty>
    


    <!-- 
    ///////////////////////////////////////////////////////////////////////////////////////
    //
    // Data properties
    //
    ///////////////////////////////////////////////////////////////////////////////////////
     -->


    


    <!-- http://bimerr.iot.linkeddata.es/def/sensor-data#baseName -->


    <owl:DatatypeProperty rdf:about="http://bimerr.iot.linkeddata.es/def/sensor-data#baseName">
        <rdfs:domain rdf:resource="http://bimerr.iot.linkeddata.es/def/sensor-data#Device"/>
        <rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#string"/>
        <rdfs:comment xml:lang="en">This is a string that is prepended to the names found in the records.</rdfs:comment>
        <rdfs:label xml:lang="en">base name</rdfs:label>
    </owl:DatatypeProperty>
    


    <!-- http://bimerr.iot.linkeddata.es/def/sensor-data#baseSum -->


    <owl:DatatypeProperty rdf:about="http://bimerr.iot.linkeddata.es/def/sensor-data#baseSum">
        <rdfs:domain rdf:resource="http://bimerr.iot.linkeddata.es/def/sensor-data#Measurement"/>
        <rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#double"/>
        <rdfs:comment xml:lang="en">A base sum is added to the sum found in a record.</rdfs:comment>
        <rdfs:label xml:lang="en">base sum</rdfs:label>
    </owl:DatatypeProperty>
    


    <!-- http://bimerr.iot.linkeddata.es/def/sensor-data#baseTime -->


    <owl:DatatypeProperty rdf:about="http://bimerr.iot.linkeddata.es/def/sensor-data#baseTime">
        <rdfs:domain rdf:resource="http://bimerr.iot.linkeddata.es/def/sensor-data#Measurement"/>
        <rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#double"/>
        <rdfs:comment xml:lang="en">A base time that is added to the time found in a record.</rdfs:comment>
        <rdfs:label xml:lang="en">base time</rdfs:label>
    </owl:DatatypeProperty>
    


    <!-- http://bimerr.iot.linkeddata.es/def/sensor-data#baseValue -->


    <owl:DatatypeProperty rdf:about="http://bimerr.iot.linkeddata.es/def/sensor-data#baseValue">
        <rdfs:domain rdf:resource="http://bimerr.iot.linkeddata.es/def/sensor-data#Measurement"/>
        <rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#double"/>
        <rdfs:comment xml:lang="en">A base value is added to the value found in a record.</rdfs:comment>
        <rdfs:label xml:lang="en">base value</rdfs:label>
    </owl:DatatypeProperty>
    


    <!-- http://bimerr.iot.linkeddata.es/def/sensor-data#baseVersion -->


    <owl:DatatypeProperty rdf:about="http://bimerr.iot.linkeddata.es/def/sensor-data#baseVersion">
        <rdfs:domain rdf:resource="http://bimerr.iot.linkeddata.es/def/sensor-data#Device"/>
        <rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#integer"/>
        <rdfs:comment xml:lang="en">Version number of the media type format.</rdfs:comment>
        <rdfs:label xml:lang="en">has version</rdfs:label>
    </owl:DatatypeProperty>
    


    <!-- http://bimerr.iot.linkeddata.es/def/sensor-data#name -->


    <owl:DatatypeProperty rdf:about="http://bimerr.iot.linkeddata.es/def/sensor-data#name">
        <rdfs:domain rdf:resource="http://bimerr.iot.linkeddata.es/def/sensor-data#Device"/>
        <rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#string"/>
        <rdfs:comment xml:lang="en">Name of the sensor or parameter.  When appended to the Base Name field, this must result in a globally unique identifier for the resource.</rdfs:comment>
        <rdfs:label xml:lang="en">name</rdfs:label>
    </owl:DatatypeProperty>
    


    <!-- http://bimerr.iot.linkeddata.es/def/sensor-data#sum -->


    <owl:DatatypeProperty rdf:about="http://bimerr.iot.linkeddata.es/def/sensor-data#sum">
        <rdfs:domain rdf:resource="http://bimerr.iot.linkeddata.es/def/sensor-data#Measurement"/>
        <rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#double"/>
        <rdfs:comment xml:lang="en">Integrated sum of the values over time.  Optional.  This field is in the unit specified in the Unit value multiplied by seconds.</rdfs:comment>
        <rdfs:label xml:lang="en">sum</rdfs:label>
    </owl:DatatypeProperty>
    


    <!-- http://bimerr.iot.linkeddata.es/def/sensor-data#time -->


    <owl:DatatypeProperty rdf:about="http://bimerr.iot.linkeddata.es/def/sensor-data#time">
        <rdfs:domain rdf:resource="http://bimerr.iot.linkeddata.es/def/sensor-data#Measurement"/>
        <rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#double"/>
        <rdfs:comment xml:lang="en">Time when the value was recorded.</rdfs:comment>
        <rdfs:label xml:lang="en">time</rdfs:label>
    </owl:DatatypeProperty>
    


    <!-- http://bimerr.iot.linkeddata.es/def/sensor-data#updateTime -->


    <owl:DatatypeProperty rdf:about="http://bimerr.iot.linkeddata.es/def/sensor-data#updateTime">
        <rdfs:domain rdf:resource="http://bimerr.iot.linkeddata.es/def/sensor-data#Sensor"/>
        <rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#double"/>
        <rdfs:comment xml:lang="en">Period of time in seconds that represents the maximum time before this sensor will provide an updated reading for a measurement. This can be used to detect the failure of sensors or the communications path from the sensor.</rdfs:comment>
        <rdfs:label xml:lang="en">update time</rdfs:label>
    </owl:DatatypeProperty>
    


    <!-- https://w3id.org/saref#hasValue -->


    <owl:DatatypeProperty rdf:about="https://w3id.org/saref#hasValue">
        <rdfs:comment xml:lang="en">A relationship defining the value of a certain property, e.g., energy or power. Note that, even if numeric values are expected to enable reasoning, measurement values could use other datatypes.</rdfs:comment>
        <rdfs:label xml:lang="en">has value</rdfs:label>
    </owl:DatatypeProperty>
    


    <!-- 
    ///////////////////////////////////////////////////////////////////////////////////////
    //
    // Classes
    //
    ///////////////////////////////////////////////////////////////////////////////////////
     -->


    


    <!-- http://bimerr.iot.linkeddata.es/def/building#Element -->


    <owl:Class rdf:about="http://bimerr.iot.linkeddata.es/def/building#Element">
        <rdfs:comment xml:lang="en">Building component or construction element which can be described by a set of properties.</rdfs:comment>
        <rdfs:label xml:lang="en">Element</rdfs:label>
    </owl:Class>
    


    <!-- http://bimerr.iot.linkeddata.es/def/sensor-data#Actuator -->


    <owl:Class rdf:about="http://bimerr.iot.linkeddata.es/def/sensor-data#Actuator">
        <rdfs:subClassOf rdf:resource="http://bimerr.iot.linkeddata.es/def/sensor-data#Device"/>
        <rdfs:comment xml:lang="en">A device that is able to receive command signals in the SenML standard, and act over building components in order to change their state.</rdfs:comment>
        <rdfs:label xml:lang="en">Actuator</rdfs:label>
    </owl:Class>
    


    <!-- http://bimerr.iot.linkeddata.es/def/sensor-data#Device -->


    <owl:Class rdf:about="http://bimerr.iot.linkeddata.es/def/sensor-data#Device">
        <rdfs:subClassOf rdf:resource="http://bimerr.iot.linkeddata.es/def/building#Element"/>
        <rdfs:subClassOf rdf:resource="https://w3id.org/saref#Device"/>
        <rdfs:subClassOf>
            <owl:Restriction>
                <owl:onProperty rdf:resource="http://bimerr.iot.linkeddata.es/def/sensor-data#baseName"/>
                <owl:maxCardinality rdf:datatype="http://www.w3.org/2001/XMLSchema#nonNegativeInteger">1</owl:maxCardinality>
            </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
            <owl:Restriction>
                <owl:onProperty rdf:resource="http://bimerr.iot.linkeddata.es/def/sensor-data#baseVersion"/>
                <owl:maxCardinality rdf:datatype="http://www.w3.org/2001/XMLSchema#nonNegativeInteger">1</owl:maxCardinality>
            </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
            <owl:Restriction>
                <owl:onProperty rdf:resource="http://bimerr.iot.linkeddata.es/def/sensor-data#name"/>
                <owl:maxCardinality rdf:datatype="http://www.w3.org/2001/XMLSchema#nonNegativeInteger">1</owl:maxCardinality>
            </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:comment xml:lang="en">A device that produces or receives records following the SenML standard. A record could mean either a measurement or a control signal.</rdfs:comment>
        <rdfs:label xml:lang="en">SenML device</rdfs:label>
    </owl:Class>
    


    <!-- http://bimerr.iot.linkeddata.es/def/sensor-data#Measurement -->


    <owl:Class rdf:about="http://bimerr.iot.linkeddata.es/def/sensor-data#Measurement">
        <rdfs:subClassOf rdf:resource="https://w3id.org/saref#Measurement"/>
        <rdfs:subClassOf>
            <owl:Restriction>
                <owl:onProperty rdf:resource="http://bimerr.iot.linkeddata.es/def/sensor-data#time"/>
                <owl:cardinality rdf:datatype="http://www.w3.org/2001/XMLSchema#nonNegativeInteger">1</owl:cardinality>
            </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
            <owl:Restriction>
                <owl:onProperty rdf:resource="http://bimerr.iot.linkeddata.es/def/sensor-data#baseSum"/>
                <owl:maxCardinality rdf:datatype="http://www.w3.org/2001/XMLSchema#nonNegativeInteger">1</owl:maxCardinality>
            </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
            <owl:Restriction>
                <owl:onProperty rdf:resource="http://bimerr.iot.linkeddata.es/def/sensor-data#baseTime"/>
                <owl:maxCardinality rdf:datatype="http://www.w3.org/2001/XMLSchema#nonNegativeInteger">1</owl:maxCardinality>
            </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
            <owl:Restriction>
                <owl:onProperty rdf:resource="http://bimerr.iot.linkeddata.es/def/sensor-data#baseValue"/>
                <owl:maxCardinality rdf:datatype="http://www.w3.org/2001/XMLSchema#nonNegativeInteger">1</owl:maxCardinality>
            </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
            <owl:Restriction>
                <owl:onProperty rdf:resource="http://bimerr.iot.linkeddata.es/def/sensor-data#sum"/>
                <owl:maxCardinality rdf:datatype="http://www.w3.org/2001/XMLSchema#nonNegativeInteger">1</owl:maxCardinality>
            </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:comment xml:lang="en">A meaurement or a command signal that follows the SenML specification (https://tools.ietf.org/html/rfc8428)</rdfs:comment>
        <rdfs:label xml:lang="en">SenML record</rdfs:label>
    </owl:Class>
    


    <!-- http://bimerr.iot.linkeddata.es/def/sensor-data#Sensor -->


    <owl:Class rdf:about="http://bimerr.iot.linkeddata.es/def/sensor-data#Sensor">
        <rdfs:subClassOf rdf:resource="http://bimerr.iot.linkeddata.es/def/sensor-data#Device"/>
        <rdfs:subClassOf>
            <owl:Restriction>
                <owl:onProperty rdf:resource="http://bimerr.iot.linkeddata.es/def/sensor-data#updateTime"/>
                <owl:maxCardinality rdf:datatype="http://www.w3.org/2001/XMLSchema#nonNegativeInteger">1</owl:maxCardinality>
            </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:comment xml:lang="en">A device that is able to produce measurement signals following the SenML standard. A sensor detects and responds to events or changes in the physical environment.</rdfs:comment>
        <rdfs:label xml:lang="en">Sensor</rdfs:label>
    </owl:Class>
    


    <!-- https://w3id.org/saref#Device -->


    <owl:Class rdf:about="https://w3id.org/saref#Device">
        <rdfs:subClassOf>
            <owl:Restriction>
                <owl:onProperty rdf:resource="https://w3id.org/saref#makesMeasurement"/>
                <owl:allValuesFrom rdf:resource="https://w3id.org/saref#Measurement"/>
            </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:comment xml:lang="en">A tangible object designed to accomplish a particular task. In order to accomplish this task, the device performs one or more functions. For example, a washing machine is designed to wash (task) and to accomplish this task it performs a start and stop function.</rdfs:comment>
        <rdfs:label xml:lang="en">Device</rdfs:label>
    </owl:Class>
    


    <!-- https://w3id.org/saref#FeatureOfInterest -->


    <owl:Class rdf:about="https://w3id.org/saref#FeatureOfInterest">
        <rdfs:comment xml:lang="en">A feature of interest represents any real world entity from which a property is measured.</rdfs:comment>
        <rdfs:label xml:lang="en">Feature of interest</rdfs:label>
    </owl:Class>
    


    <!-- https://w3id.org/saref#Measurement -->


    <owl:Class rdf:about="https://w3id.org/saref#Measurement">
        <rdfs:subClassOf>
            <owl:Restriction>
                <owl:onProperty rdf:resource="https://w3id.org/saref#isMeasuredIn"/>
                <owl:allValuesFrom rdf:resource="https://w3id.org/saref#UnitOfMeasure"/>
            </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
            <owl:Restriction>
                <owl:onProperty rdf:resource="https://w3id.org/saref#isMeasurementOf"/>
                <owl:allValuesFrom rdf:resource="https://w3id.org/saref#FeatureOfInterest"/>
            </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
            <owl:Restriction>
                <owl:onProperty rdf:resource="https://w3id.org/saref#relatesToProperty"/>
                <owl:allValuesFrom rdf:resource="https://w3id.org/saref#Property"/>
            </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
            <owl:Restriction>
                <owl:onProperty rdf:resource="https://w3id.org/saref#isMeasuredIn"/>
                <owl:qualifiedCardinality rdf:datatype="http://www.w3.org/2001/XMLSchema#nonNegativeInteger">1</owl:qualifiedCardinality>
                <owl:onClass rdf:resource="https://w3id.org/saref#UnitOfMeasure"/>
            </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
            <owl:Restriction>
                <owl:onProperty rdf:resource="https://w3id.org/saref#relatesToProperty"/>
                <owl:qualifiedCardinality rdf:datatype="http://www.w3.org/2001/XMLSchema#nonNegativeInteger">1</owl:qualifiedCardinality>
                <owl:onClass rdf:resource="https://w3id.org/saref#Property"/>
            </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:comment xml:lang="en">Represents the measured value made over a property. It is also linked to the unit of measure in which the value is expressed and the timestamp of the measurement.</rdfs:comment>
        <rdfs:label xml:lang="en">Measurement</rdfs:label>
    </owl:Class>
    


    <!-- https://w3id.org/saref#Property -->


    <owl:Class rdf:about="https://w3id.org/saref#Property">
        <rdfs:subClassOf>
            <owl:Restriction>
                <owl:onProperty rdf:resource="https://w3id.org/saref#isControlledByDevice"/>
                <owl:allValuesFrom rdf:resource="https://w3id.org/saref#Device"/>
            </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
            <owl:Restriction>
                <owl:onProperty rdf:resource="https://w3id.org/saref#isMeasuredByDevice"/>
                <owl:allValuesFrom rdf:resource="https://w3id.org/saref#Device"/>
            </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:comment xml:lang="en">A quality of a feature of interest that can be measured; an aspect of a feature of interest that is intrinsic to and cannot exist without the feature</rdfs:comment>
        <rdfs:label xml:lang="en">Property</rdfs:label>
    </owl:Class>
    


    <!-- https://w3id.org/saref#UnitOfMeasure -->


    <owl:Class rdf:about="https://w3id.org/saref#UnitOfMeasure">
        <rdfs:comment xml:lang="en">The unit of measure is a standard for measurement of a quantity, such as a Property. For example,  Power is a property and Watt is a unit of power that represents a definite predetermined power: when we say 10 Watt, we actually mean 10 times the definite predetermined power called \&quot;watt\&quot;. Our definition is based on the definition of unit of measure in the Ontology of units of Measure (OM). We propose here a list of some units of measure that are relevant for the purpose of SAREF, but this list can be extended, also using some other ontologies rather than the Ontology of units of Measure (OM).</rdfs:comment>
        <rdfs:label xml:lang="en">Unit of measure</rdfs:label>
    </owl:Class>
</rdf:RDF>



<!-- Generated by the OWL API (version 5.1.11) https://github.com/owlcs/owlapi/ -->


