-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bc4c94d
commit 5c42044
Showing
1 changed file
with
76 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,81 +1,81 @@ | ||
{ | ||
"$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" | ||
] | ||
"$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" | ||
}, | ||
"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" | ||
{ | ||
"$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/Location-Commons" | ||
}, | ||
"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)" | ||
} | ||
{ | ||
"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" | ||
] | ||
], | ||
"required": [ | ||
"id", | ||
"type" | ||
] | ||
} |