{ "$schema": "http://json-schema.org/schema#", "$schemaVersion": "0.0.1", "modelTags": "SAREF Sensor", "$id": "https://smart-data-models.github.com/dataModel.SAREF/Sensor/schema.json", "derivedFrom": "https://saref.etsi.org/core/v3.1.1/#saref:Sensor", "title": "Smart data models - Sensor schema", "type": "object", "license": "https://opensource.org/licenses/BSD-3-Clause", "description": "A device that detects and responds to events or changes in the physical environment such as light, motion, or temperature changes. Further, a device of category saref:Sensor that performs a saref:SensingFunction.", "allOf": [ { "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/GSMA-Commons" }, { "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/Location-Commons" }, { "properties": { "type": { "type": "string", "description": "Property. It must be equal to `Sensor`", "enum": [ "Sensor" ] }, "hasSensingRange": { "$ref": "https://raw.githubusercontent.com/smart-data-models/dataModel.SAREF/master/SAREF-schema.json#/definitions/Measurement", "description": "Property. A relationship between a sensing function and a measurement identifying the range of a sensor detection" }, "hasSensorType": { "type": "string", "description": "Property. A relationship identifying the sensing type of a sensor detection (i.e., Temperature, Occupancy, Humidity, Motion , Smoke, Pressure, etc.) ", "enum": [ "CO2Concentration", "DirectNormalIrradiation", "Energy", "Humidity", "Light", "Motion", "Occupancy", "OpeningPosition", "Power", "Pressure", "Price", "Smoke", "Temperature" ] }, "hasManufacturer": { "type": "string", "description": "Property. A relationship identifying the manufacturer of an entity (e.g., device). The value is expected to be a string or a string with language tag" }, "hasModel": { "type": "string", "description": "Property. A relationship identifying the model of an entity (e.g., device). The value is expected to be a string or a string with language tag" }, "isContainedInBuildingSpace": { "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/EntityIdentifierType", "description": "Relationship. An entity used to define the physical spaces of the building. A building space contains devices or building objects. (BuildingSpace)" }, "isContainedInPhysicalObject": { "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/EntityIdentifierType", "description": "Relationship. Any Object that has a proper space region. (Definition extracted from DUL ontology) (PhysicalObject)" }, "isSubSystemOf": { "type": "array", "description": "Relationship. A reference to a system(s) that this Physical Object is part of", "items": { "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/EntityIdentifierType", "description": "Relationship. The class of systems, i.e., systems virtually isolated from the environment, whose behaviour and interactions with the environment are modeled. Systems can be connected to other systems. Connected systems interact in some ways. Systems can also have subsystems. Properties of subsystems somehow contribute to the properties of the supersystem. (System)" } } } } ], "required": [ "id", "type" ] }