Skip to content
saref.ttl 56 KiB
Newer Older
    rdfs:comment "A type of command"@en ;
    rdfs:label "On command"@en .

saref:OffCommand a owl:Class ;
    rdfs:subClassOf saref:Command ,
        [ a owl:Restriction ;
        owl:onProperty saref:actsUpon ;
        owl:someValuesFrom saref:OnOffState
        ] ,
        [ a owl:Restriction ;
        owl:onProperty saref:isCommandOf ;
        owl:allValuesFrom saref:OnOffFunction
        ] ;
    owl:disjointWith saref:OnCommand ;
    rdfs:comment "A type of command"@en ;
    rdfs:label "Off command"@en .

saref:OnOffFunction a owl:Class ;
    rdfs:subClassOf saref:ActuatingFunction ;
    rdfs:comment "An actuating function that allows to switch on and off an actuator"@en ;
    rdfs:label "On off function"@en .

# Example related to motion

saref:Motion a owl:Class ;
    rdfs:subClassOf saref:Property ;
    rdfs:comment "A saref:Property related to some measurements that are characterized by a certain value that is measured in a unit of measure for motion"@en ;
    rdfs:label "Motion"@en .

# Example related to occupancy

saref:Occupancy a owl:Class ;
    rdfs:subClassOf saref:Property ;
    rdfs:comment "A saref:Property related to some measurements that are characterized by a certain value (saref:hasValue property) that is measured in a unit of measure for occupancy"@en ;
    rdfs:label "Occupancy"@en .

# Example related to notification

saref:NotifyCommand a owl:Class ;
    rdfs:subClassOf saref:Command ,
        [ a owl:Restriction ;
            owl:onProperty saref:isCommandOf ;
            owl:allValuesFrom saref:EventFunction
        ] ;
    rdfs:comment "A type of command"@en ;
    rdfs:label "Notify command"@en .



# Example related to switch

saref:Switch a owl:Class ;
    rdfs:subClassOf saref:Actuator ;
    rdfs:comment "A device of category saref:Actuator that performs an actuating function of type saref:OnOffFunction or saref:OpenCloseFunction"@en ;
    rdfs:label "Switch"@en .

saref:SwitchOnService a owl:Class ;
    rdfs:subClassOf saref:Service ,
        [ a owl:Restriction ;
        owl:onProperty saref:isOfferedBy ;
        owl:someValuesFrom saref:LightSwitch
        ] ,
        [ a owl:Restriction ;
        owl:onProperty saref:represents ;
        owl:someValuesFrom saref:OnOffFunction
        ] ;
    rdfs:comment "A type of service that represents an on/off function to the network"@en ;
    rdfs:label "Switch on service"@en .

# Example related to energy and power

saref:Energy a owl:Class ;
    rdfs:subClassOf saref:Property ;
    rdfs:comment "A saref:Property related to some measurements that are characterized by a certain value measured in an energy unit (such as Kilowatt_Hour or Watt_hour). Furter specializations of the saref:Energy class can be found in the SAREF4ENER extension, where classes such as EnergyMax, EnergyMin and EnergyExpected are defined. "@en ;
    rdfs:label "Energy"@en .

saref:EnergyUnit a owl:Class ;
    rdfs:subClassOf saref:UnitOfMeasure ;
    rdfs:comment "The unit of measure for energy"@en ;
    rdfs:label "Energy unit"@en .

saref:Power a owl:Class ;
    rdfs:subClassOf saref:Property ;
    rdfs:comment "A saref:Property related to some measurements that are characterized by a certain value that is measured in a power unit (such as watt or kilowatt).  Further specializations of the saref:Power class can be found in the SAREF4ENER extension, where classes such as PowerMax, PowerMin and PowerExpected are defined."@en ;
    rdfs:label "Power"@en .

saref:PowerUnit a owl:Class ;
    rdfs:subClassOf saref:UnitOfMeasure ;
    rdfs:comment "The unit of measure for power"@en ;
    rdfs:label "Power unit"@en .

# Example related to pressure

saref:Pressure a owl:Class ;
    rdfs:subClassOf saref:Property ;
    rdfs:comment "A saref:Property related to some measurements that are characterized by a certain value that is measured in a pressure unit (bar or pascal)"@en ;
    rdfs:label "Pressure"@en .

saref:PressureUnit a owl:Class ;
    rdfs:subClassOf saref:UnitOfMeasure ;
    rdfs:comment "The unit of measure for pressure"@en ;
    rdfs:label "Pressure unit"@en .


# Example related to price
Maxime Lefrançois's avatar
Maxime Lefrançois committed

saref:hasPrice rdf:type owl:ObjectProperty ;
    rdfs:comment "A relationship indentifying the price associated to an entity"@en ;
    rdfs:range saref:Price ;
    rdfs:label "has price"@en .

saref:Price a owl:Class ;
    rdfs:subClassOf saref:Property ;
    rdfs:comment "A saref:Property crelated to some measurements that are characterized by a certain value that is measured using saref:Currency"@en ;
    rdfs:label "Price"@en .
    
saref:Currency a owl:Class ;
    rdfs:subClassOf saref:UnitOfMeasure ;
    rdfs:comment "The class of units of measure for price"@en ;
    rdfs:label "Currency"@en .

# Example related to temperature

saref:Temperature a owl:Class ;
    owl:deprecated true ;
    skos:note "In future major revision of SAREF, this entity will be a named individual, instance of saref:Property."@en ;
    rdfs:subClassOf saref:Property ;
    rdfs:comment "A saref:Property related to some measurements that are characterized by a certain value that is measured in a temperature unit (degree_Celsius, degree_Fahrenheit, or degree_kelvin)"@en ;
    rdfs:label "Temperature"@en .

saref:TemperatureSensor a owl:Class ;
    rdfs:subClassOf saref:Sensor ,
        [ a owl:Restriction ;
            owl:onProperty saref:hasFunction ;
            owl:someValuesFrom saref:SensingFunction
        ] ,
        [ a owl:Restriction ;
            owl:onProperty saref:measuresProperty ;
            owl:someValuesFrom saref:Temperature
        ] ;
    rdfs:comment "A sensor that is used for the purpose of sensing a property of type saref:Temperature. A saref:TemperatureSensor is typically used to saref:accomplish saref:Comfort."@en ;
    rdfs:label "Temperature sensor"@en .

saref:TemperatureUnit a owl:Class ;
    owl:deprecated true ;
    rdfs:subClassOf saref:UnitOfMeasure ;
    rdfs:comment "The unit of measure for temperature"@en ;
    rdfs:label "Temperature unit"@en .


# Example related to humidity

saref:Humidity a owl:Class ;
    rdfs:subClassOf saref:Property ;
    rdfs:comment "A saref:Property related to some measurements that are characterized by a certain value that is measured in a humidity unit"@en ;
    rdfs:label "Humidity"@en .


# Example related to Actuator

saref:Actuator a owl:Class ;
    rdfs:subClassOf saref:Device ,
        [ a owl:Restriction ;
            owl:onProperty saref:hasFunction ;
            owl:someValuesFrom saref:ActuatingFunction
        ] ;
    rdfs:comment "A device responsible for moving or controlling a mechanism or system by performing an actuating function"@en ;
    rdfs:label "Actuator"@en .

saref:ActuatingFunction a owl:Class ;
    rdfs:subClassOf saref:Function ;
    rdfs:comment "A function that allows to transmit data to actuators, such as level settings (e.g., temperature) or binary switching (e.g., open/close, on/off)"@en ;
    rdfs:label "Actuating function"@en .

# Example related to Appliance

# Example related to HVAC

saref:HVAC a owl:Class ;
    rdfs:subClassOf saref:Device ;
    rdfs:comment "Heating, Ventilation and Air Conditioning (HVAC) device that provides indoor environmental comfort. A saref:HVAC is typically used to accomplish saref:Comfort."@en ;
    rdfs:label "HVAC"@en .

# Example related to light switch

saref:IlluminanceUnit a owl:Class ;
    rdfs:subClassOf saref:UnitOfMeasure ;
    rdfs:comment "The unit of measure for light"@en ;
    rdfs:label "Illuminance unit"@en .

saref:Light a owl:Class ;
    rdfs:subClassOf saref:Property ;
    rdfs:comment "A saref:Property related to some measurements that are characterized by a certain value that is measured in a illuminance unit (lux)"@en ;
    rdfs:label "Light"@en .

saref:LightSwitch a owl:Class ;
    rdfs:subClassOf saref:Switch ,
        [ a owl:Restriction ;
        owl:onProperty saref:hasFunction ;
        owl:someValuesFrom saref:OnOffFunction
        ] ,
        [ a owl:Restriction ;
        owl:onProperty saref:hasState ;
        owl:someValuesFrom saref:OnOffState
        ] ,
        [ a owl:Restriction ;
        owl:onProperty saref:controlsProperty ;
        owl:someValuesFrom saref:Light
        ] ,
        [ a owl:Restriction ;
        owl:onProperty saref:offers ;
        owl:someValuesFrom saref:SwitchOnService
        ] ;
rdfs:comment "A switch that performs the saref:OnOffFunction, controls the property saref:Light, and can be found in the state saref:OnOffState. It can offer a switch on service. A saref:LightSwitch is typically used to accomplish saref:Lighting."@en ;
    rdfs:label "Light switch"@en .

# Example related to door switch

saref:DoorSwitch a owl:Class ;
    rdfs:subClassOf saref:Switch ,
        [ a owl:Restriction ;
        owl:onProperty saref:hasFunction ;
        owl:someValuesFrom saref:OpenCloseFunction
        ] ,
        [ a owl:Restriction ;
        owl:onProperty saref:hasState ;
        owl:someValuesFrom saref:OpenCloseState
        ] ;
    rdfs:comment "A switch that performs the saref:OpenCloseFunction, is used for controlling a door, and can be found in the state saref:OpenCloseState. A saref:DoorSwitch is typically used to accomplish saref:Safety."@en ;
    rdfs:label "Door switch"@en .