From a4d4604b4da614373fda18dadaf2c9d439042a27 Mon Sep 17 00:00:00 2001 From: Alberto Abella Date: Mon, 16 Sep 2024 21:31:46 +0200 Subject: [PATCH] updated $schema last version --- I4AAS/schema.json | 282 +++++++++++++++++----------------------------- 1 file changed, 105 insertions(+), 177 deletions(-) diff --git a/I4AAS/schema.json b/I4AAS/schema.json index 28e5538..a33360a 100644 --- a/I4AAS/schema.json +++ b/I4AAS/schema.json @@ -1,13 +1,11 @@ { - "$schema": "http://json-schema.org/schema#", - "$schemaVersion": "0.0.1", - "modelTags": "Corosect", - "$id": "https://smart-data-models.github.io/dataModel.AAS/I4AAS/schema.json", - "title": "Smart Data Models - RAMI4.0 Asset Administration Shell -AAS- Generic schema", - "description": "Based on IDTA-01001-3-0, describes a generic Asset Administration Shell - AAS - tree, component of the RAMI4.0", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$schemaVersion": "0.3.4", + "modelTags": "IUDX", + "$id": "https://smart-data-models.github.io/dataModel.Weather/WeatherObserved/schema.json", + "title": "Weather Observed schema - Smart Data Models", + "description": "An observation of weather conditions at a certain place and time. This data model has been developed in cooperation with mobile operators and the GSMA.", "type": "object", - "derivedFrom": "https://industrialdigitaltwin.org/en/wp-content/uploads/sites/2/2023/04/IDTA-01001-3-0_SpecificationAssetAdministrationShell_Part1_Metamodel.pdf", - "license": "", "allOf": [ { "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/GSMA-Commons" @@ -15,203 +13,133 @@ { "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/Location-Commons" }, + { + "$ref": "https://smart-data-models.github.io/dataModel.Weather/weather-schema.json#/definitions/Weather-Commons" + }, { "properties": { "type": { "type": "string", "enum": [ - "I4AAS" + "WeatherObserved" ], - "description": "Property. It has to be RAMI4.0 I4AAS NGSI Entity type to represent a RAMI4.0 AAS Digital Twin" + "description": "Property. NGSI Entity type. It has to be WeatherObserved" }, - "refI4AssetId": { - "type": "string", - "format": "uri", - "description": "Relationship. References the root Asset linked to this AAS" - }, - "hasDataSpecification": { - "type": "array", - "description": "Property. Data specification defines the additional attributes an asset may have. RAMI4.0 specification", - "items": { - "type": "object", - "properties": { - "type": { - "type": "string", - "description": "Property. Link, url or description of the specified data" - } - } - } + "dateObserved": { + "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/dateObserved" }, - "asset": { - "type": "object", - "description": "Property. The Asset description is filled here", - "properties": { - "keys": { - "type": "array", - "description": "Property. Keys for the Asset", - "items": [ - { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "Asset" - ], - "description": "Property. Type (description) of the asset" - }, - "local": { - "type": "boolean", - "description": "Property. It defines whether the asset is created locally or globally" - }, - "value": { - "type": "string", - "description": "Property. Here comes the id pointing to the definition of asset" - }, - "index": { - "type": "integer", - "description": "Property. Index encodes the position in the original sequence" - }, - "idType": { - "type": "string", - "description": "Property. Type of the Identifier, eg.IRI or IRDI" - } - } - } - ] - } - } + "precipitation": { + "type": "number", + "minimum": 0, + "description": "Property. Model:'https://schema.org/Number'. Amount of water rain registered. Units:'Liters per square meter'. " }, - "submodels": { - "type": "array", - "description": "Property. AAS contains complex set of information, submodels provide a separate category for this complex data", - "items": [ - { - "type": "object", - "description": "Property. It clearly identify the attribute of data", - "properties": { - "keys": { - "type": "array", - "description": "Property. keys for the submodel", - "items": [ - { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "Submodel" - ], - "description": "Property. Type (description) of the submodel" - }, - "local": { - "type": "boolean", - "description": "Property. It defines whether the submodel is created locally or globally" - }, - "value": { - "type": "string", - "description": "Property. The id of the submodel pointing to the definition of the Submodel" - }, - "index": { - "type": "integer", - "description": "Property. Index encodes the position in the original sequence" - }, - "idType": { - "type": "string", - "description": "Property. Identity information that unambiguously distinguishes one submodel from another one. Can be IRI or IRDI" - } - } - } - ] - } - } - } - ] - }, - "conceptDictionaries": { - "type": "array", - "description": "Property. The Asset itself can also define its own dictionary that contains semantic definitions of its submodel elements. These semantic definitions are called concept descriptions (ConceptDescription or concept dictionary). This array will contain ref ids to RAMI4.0 specific concepts used within this model", - "items": { - "type": "object", - "properties": { - "type": { - "type": "string", - "description": "Property. Link, url, reference or description of the specified I4.0 concept" - } - } - } + "solarRadiation": { + "type": "number", + "minimum": 0, + "description": "Property. Model:'https://schema.org/Number'. The solar radiation observed measured in Watts per square. Units:'w/m2'" }, - "identification": { - "type": "object", - "description": "Property. Identification of the AAS for the asset. RAMI4.0 environment", - "properties": { - "idType": { + "directIrradiation": { + "type": "number", + "minimum": 0, + "description": "Property. Model:'https://schema.org/Number'. Direct irradiance is the part of the solar irradiance that directly reaches a surface. Units:'w/m2'" + }, + "diffuseIrradiation": { + "type": "number", + "minimum": 0, + "description": "Property. Model:'https://schema.org/Number'. Diffuse irradiance is the part of the solar irradiance that is scattered by the atmosphere. Units:'w/m2'" + }, + "pressureTendency": { + "oneOf": [ + { "type": "string", - "description": "Property. Type of the Identifier, eg.IRI or IRDI" + "enum": [ + "falling", + "raising", + "steady" + ] }, - "id": { - "type": "string", - "format": "uri", - "description": "Property. Identity information that unambiguously distinguishes one AAS from another one. RAMI4.0 environment " + { + "type": "number" } - } + ], + "description": "Property. Enum:'falling, raising, steady'. Is the pressure rising or falling? It can be expressed in quantitative terms or qualitative terms" }, - "administration": { - "type": "object", - "description": "Property. AAS administration information", - "properties": { - "version": { + "dewPoint": { + "type": "number", + "description": "Property. Model:'https://schema.org/Number'. Units:'Celsius degrees'. The dew point encoded as a number. Observed temperature to which air must be cooled to become saturated with water vapor" + }, + "refDevice": { + "anyOf": [ + { "type": "string", - "description": "Property. AAS Version number is the number in line with release of specification" + "minLength": 1, + "maxLength": 256, + "pattern": "^[\\w\\-\\.\\{\\}\\$\\+\\*\\[\\]`|~^@!,:\\\\]+$", + "description": "Property. Identifier format of any NGSI entity" }, - "revision": { + { "type": "string", - "description": "Property. AAS Revision number is the number in line with release of specification" + "format": "uri", + "description": "Property. Identifier format of any NGSI entity" } - } + ], + "description": "Relationship. Model:'https://schema.org/URL'. A reference to the device(s) which captured this observation" + }, + "streamGauge": { + "type": "number", + "minimum": 0, + "description": "Property. Model:'https://schema.org/Number'. The water level surface elevation observed by Hydrometric measurement sensors, namely a [Stream Gauge](https://en.wikipedia.org/wiki/Stream_gauge) expressed in centimeters. Units:'centimeters'" + }, + "snowHeight": { + "type": "number", + "minimum": 0, + "description": "Property. Model:'https://schema.org/Number'. The snow height observed by generic snow depth measurement sensors, expressed in centimeters. Units:'centimeters'" }, - "idShort": { + "uVIndexMax": { + "type": "number", + "minimum": 0, + "description": "Property. Model:'https://schema.org/Number'. The maximum UV index for the period, based on the World Health Organization's UV Index measure. [http://www.who.int/uv/intersunprogramme/activities/uv_index/en/](http://www.who.int/uv/intersunprogramme/activities/uv_index/en/) the values between 1 and 11 are the valid range for the index. The value 0 is for describing that no signal is detected so no value is stored" + }, + "aqiMajorPollutant": { "type": "string", - "description": "Property. short id is the (short) name of the ASSET ADMINISTRATION SHELL" + "description": "Property. Model:'https://schema.org/Text'. Major pollutant in the Air Quality Index (AQI)" }, - "category": { + "aqiMajorPollutantForecast": { "type": "string", - "description": "Property. The category is a value that gives further meta information w.r.t. to the class of the element" + "description": "Property. Model:'https://schema.org/Text'. Forecasted major air pollutant in the Air Quality Index (AQI) over a certain duration in future" }, - "modelType": { - "type": "object", - "description": "Property. For the distinction of 'type' and 'instance', the term 'kind' is used", - "properties": { - "name": { - "type": "string", - "description": "Property. Description of the referenced property of the item" - } - } + "airTemperatureForecast": { + "type": "number", + "description": "Property. Model:'https://schema.org/Number'. Forecasted value of air temperature over a certain duration in future" }, - "descriptions": { - "type": "array", - "description": "Property. For adding detailed knowledge about the AAS in different languages", - "items": [ - { - "type": "object", - "properties": { - "language": { - "type": "string", - "description": "Property. Substring identifying the language. Acronym according to ISO 639-1" - }, - "text": { - "type": "string", - "description": "Property. The Description text is filled here" - } - } - } - ] + "precipitationForecast": { + "type": "number", + "description": "Property. Model:'https://schema.org/Number'. Forecasted rainfall over a certain duration in future" + }, + "airQualityIndex": { + "type": "number", + "description": "Property. Model:'https://schema.org/Number'. Air quality index is a number used to report the quality of the air on any given day" + }, + "relativeHumidityForecast": { + "type": "number", + "description": "Property. Model:'https://schema.org/Number'. Forecasted relative humidity (water vapour in air) over a certain duration in future" + }, + "airQualityIndexForecast": { + "type": "number", + "description": "Property. Model:'https://schema.org/Number'. Forecasted overall Air Quality Index (AQI) over a certain duration in future" + }, + "airTemperatureTSA": { + "type": "object", + "description": "Property. Air temperature time series aggregation", + "$ref": "https://smart-data-models.github.io/dataModel.Environment/Environment-schema.json#/definitions/TimeSeriesAggregation" } } } ], "required": [ "id", - "type" + "type", + "dateObserved", + "location" ] -} +} \ No newline at end of file