-
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
c3533a7
commit 1fcdb26
Showing
1 changed file
with
332 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,332 @@ | ||
Sensor: | ||
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.' | ||
properties: | ||
address: | ||
description: The mailing address | ||
properties: | ||
addressCountry: | ||
description: 'Property. The country. For example, Spain. Model:''https://schema.org/addressCountry''' | ||
type: string | ||
addressLocality: | ||
description: 'Property. The locality in which the street address is, and which is in the region. Model:''https://schema.org/addressLocality''' | ||
type: string | ||
addressRegion: | ||
description: 'Property. The region in which the locality is, and which is in the country. Model:''https://schema.org/addressRegion''' | ||
type: string | ||
district: | ||
description: 'Property. A district is a type of administrative division that, in some countries, is managed by the local government' | ||
type: string | ||
postOfficeBoxNumber: | ||
description: 'Property. The post office box number for PO box addresses. For example, 03578. Model:''https://schema.org/postOfficeBoxNumber''' | ||
type: string | ||
postalCode: | ||
description: 'Property. The postal code. For example, 24004. Model:''https://schema.org/https://schema.org/postalCode''' | ||
type: string | ||
streetAddress: | ||
description: 'Property. The street address. Model:''https://schema.org/streetAddress''' | ||
type: string | ||
streetNr: | ||
description: Property. Number identifying a specific property on a public street | ||
type: string | ||
type: object | ||
x-ngsi: | ||
model: https://schema.org/address | ||
type: Property | ||
alternateName: | ||
description: An alternative name for this item | ||
type: string | ||
x-ngsi: | ||
type: Property | ||
areaServed: | ||
description: The geographic area where a service or offered item is provided | ||
type: string | ||
x-ngsi: | ||
model: https://schema.org/Text | ||
type: Property | ||
dataProvider: | ||
description: A sequence of characters identifying the provider of the harmonised data entity | ||
type: string | ||
x-ngsi: | ||
type: Property | ||
dateCreated: | ||
description: Entity creation timestamp. This will usually be allocated by the storage platform | ||
format: date-time | ||
type: string | ||
x-ngsi: | ||
type: Property | ||
dateModified: | ||
description: Timestamp of the last modification of the entity. This will usually be allocated by the storage platform | ||
format: date-time | ||
type: string | ||
x-ngsi: | ||
type: Property | ||
description: | ||
description: A description of this item | ||
type: string | ||
x-ngsi: | ||
type: Property | ||
hasManufacturer: | ||
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.' | ||
type: string | ||
x-ngsi: | ||
type: Property | ||
hasModel: | ||
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.' | ||
type: string | ||
x-ngsi: | ||
type: Property | ||
hasSensingRange: | ||
description: Property. A relationship between a sensing function and a measurement identifying the range of a sensor detection | ||
type: number | ||
x-ngsi: | ||
type: Property | ||
hasSensorType: | ||
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 | ||
type: string | ||
x-ngsi: | ||
type: Property | ||
id: | ||
anyOf: &sensor_-_properties_-_iscontainedinbuildingspace_-_anyof | ||
- description: Property. Identifier format of any NGSI entity | ||
maxLength: 256 | ||
minLength: 1 | ||
pattern: ^[\w\-\.\{\}\$\+\*\[\]`|~^@!,:\\]+$ | ||
type: string | ||
- description: Property. Identifier format of any NGSI entity | ||
format: uri | ||
type: string | ||
description: Unique identifier of the entity | ||
x-ngsi: | ||
type: Property | ||
isContainedInBuildingSpace: | ||
anyOf: *sensor_-_properties_-_iscontainedinbuildingspace_-_anyof | ||
description: Relationship. An entity used to define the physical spaces of the building. A building space contains devices or building objects. (BuildingSpace) | ||
x-ngsi: | ||
type: Property | ||
isContainedInPhysicalObject: | ||
anyOf: *sensor_-_properties_-_iscontainedinbuildingspace_-_anyof | ||
description: Relationship. Any Object that has a proper space region. (Definition extracted from DUL ontology) (PhysicalObject) | ||
x-ngsi: | ||
type: Property | ||
isSubSystemOf: | ||
description: Relationship. A reference to a system(s) that this Physical Object is part of. | ||
items: | ||
anyOf: *sensor_-_properties_-_iscontainedinbuildingspace_-_anyof | ||
description: Property. Unique identifier of the entity | ||
type: array | ||
x-ngsi: | ||
type: Relationship | ||
location: | ||
description: 'Geojson reference to the item. It can be Point, LineString, Polygon, MultiPoint, MultiLineString or MultiPolygon' | ||
oneOf: | ||
- description: GeoProperty. Geojson reference to the item. Point | ||
properties: | ||
bbox: | ||
items: | ||
type: number | ||
minItems: 4 | ||
type: array | ||
coordinates: | ||
items: | ||
type: number | ||
minItems: 2 | ||
type: array | ||
type: | ||
enum: | ||
- Point | ||
type: string | ||
required: | ||
- type | ||
- coordinates | ||
title: GeoJSON Point | ||
type: object | ||
- description: GeoProperty. Geojson reference to the item. LineString | ||
properties: | ||
bbox: | ||
items: | ||
type: number | ||
minItems: 4 | ||
type: array | ||
coordinates: | ||
items: | ||
items: | ||
type: number | ||
minItems: 2 | ||
type: array | ||
minItems: 2 | ||
type: array | ||
type: | ||
enum: | ||
- LineString | ||
type: string | ||
required: | ||
- type | ||
- coordinates | ||
title: GeoJSON LineString | ||
type: object | ||
- description: GeoProperty. Geojson reference to the item. Polygon | ||
properties: | ||
bbox: | ||
items: | ||
type: number | ||
minItems: 4 | ||
type: array | ||
coordinates: | ||
items: | ||
items: | ||
items: | ||
type: number | ||
minItems: 2 | ||
type: array | ||
minItems: 4 | ||
type: array | ||
type: array | ||
type: | ||
enum: | ||
- Polygon | ||
type: string | ||
required: | ||
- type | ||
- coordinates | ||
title: GeoJSON Polygon | ||
type: object | ||
- description: GeoProperty. Geojson reference to the item. MultiPoint | ||
properties: | ||
bbox: | ||
items: | ||
type: number | ||
minItems: 4 | ||
type: array | ||
coordinates: | ||
items: | ||
items: | ||
type: number | ||
minItems: 2 | ||
type: array | ||
type: array | ||
type: | ||
enum: | ||
- MultiPoint | ||
type: string | ||
required: | ||
- type | ||
- coordinates | ||
title: GeoJSON MultiPoint | ||
type: object | ||
- description: GeoProperty. Geojson reference to the item. MultiLineString | ||
properties: | ||
bbox: | ||
items: | ||
type: number | ||
minItems: 4 | ||
type: array | ||
coordinates: | ||
items: | ||
items: | ||
items: | ||
type: number | ||
minItems: 2 | ||
type: array | ||
minItems: 2 | ||
type: array | ||
type: array | ||
type: | ||
enum: | ||
- MultiLineString | ||
type: string | ||
required: | ||
- type | ||
- coordinates | ||
title: GeoJSON MultiLineString | ||
type: object | ||
- description: GeoProperty. Geojson reference to the item. MultiLineString | ||
properties: | ||
bbox: | ||
items: | ||
type: number | ||
minItems: 4 | ||
type: array | ||
coordinates: | ||
items: | ||
items: | ||
items: | ||
items: | ||
type: number | ||
minItems: 2 | ||
type: array | ||
minItems: 4 | ||
type: array | ||
type: array | ||
type: array | ||
type: | ||
enum: | ||
- MultiPolygon | ||
type: string | ||
required: | ||
- type | ||
- coordinates | ||
title: GeoJSON MultiPolygon | ||
type: object | ||
x-ngsi: | ||
type: GeoProperty | ||
name: | ||
description: The name of this item | ||
type: string | ||
x-ngsi: | ||
type: Property | ||
owner: | ||
description: A List containing a JSON encoded sequence of characters referencing the unique Ids of the owner(s) | ||
items: | ||
anyOf: *sensor_-_properties_-_iscontainedinbuildingspace_-_anyof | ||
description: Property. Unique identifier of the entity | ||
type: array | ||
x-ngsi: | ||
type: Property | ||
seeAlso: | ||
description: list of uri pointing to additional resources about the item | ||
oneOf: | ||
- items: | ||
format: uri | ||
type: string | ||
minItems: 1 | ||
type: array | ||
- format: uri | ||
type: string | ||
x-ngsi: | ||
type: Property | ||
source: | ||
description: 'A sequence of characters giving the original source of the entity data as a URL. Recommended to be the fully qualified domain name of the source provider, or the URL to the source object' | ||
type: string | ||
x-ngsi: | ||
type: Property | ||
type: | ||
description: Property. It must be equal to `Sensor`. | ||
enum: | ||
- Sensor | ||
type: string | ||
x-ngsi: | ||
type: Property | ||
required: | ||
- id | ||
- type | ||
type: object | ||
x-derived-from: "https://saref.etsi.org/core/v3.1.1/#saref:Sensor" | ||
x-disclaimer: 'Redistribution and use in source and binary forms, with or without modification, are permitted provided that the license conditions are met. Copyleft (c) 2022 Contributors to Smart Data Models Program' | ||
x-license-url: https://github.com/smart-data-models/dataModel.SAREF/blob/master/Sensor/LICENSE.md | ||
x-model-schema: https://smart-data-models.github.com/dataModel.SAREF/Sensor/schema.json | ||
x-model-tags: SAREF Sensor | ||
x-version: 0.0.1 |