From ac0f710c6dd6ade6b6864ce2d10bbebdd1406545 Mon Sep 17 00:00:00 2001 From: Alberto Abella Date: Mon, 16 Sep 2024 21:28:46 +0200 Subject: [PATCH] updated $schema last version --- Indicator/schema.json | 143 +++++++++++++++++++++++++++++++++--------- 1 file changed, 115 insertions(+), 28 deletions(-) diff --git a/Indicator/schema.json b/Indicator/schema.json index c2ccf34..a33360a 100644 --- a/Indicator/schema.json +++ b/Indicator/schema.json @@ -1,12 +1,10 @@ { - "$schema": "http://json-schema.org/schema#", - "$schemaVersion": "0.0.1", - "$id": "https://smart-data-models.github.io/dataModel.SDG/Indicator/schema.json", - "title": "Smart Data Models - Indicator for sustainable development goals", - "description": "Measure of a project's degree of development. Associated to target values to be reached and monitored. Divided in impact indicators and management ones.", - "modelTags": "SDG", - "derivedFrom": "", - "license": "", + "$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", "allOf": [ { @@ -15,44 +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": [ - "Indicator" + "WeatherObserved" + ], + "description": "Property. NGSI Entity type. It has to be WeatherObserved" + }, + "dateObserved": { + "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/dateObserved" + }, + "precipitation": { + "type": "number", + "minimum": 0, + "description": "Property. Model:'https://schema.org/Number'. Amount of water rain registered. Units:'Liters per square meter'. " + }, + "solarRadiation": { + "type": "number", + "minimum": 0, + "description": "Property. Model:'https://schema.org/Number'. The solar radiation observed measured in Watts per square. Units:'w/m2'" + }, + "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", + "enum": [ + "falling", + "raising", + "steady" + ] + }, + { + "type": "number" + } ], - "description": "Property. It must be equal to Action" + "description": "Property. Enum:'falling, raising, steady'. Is the pressure rising or falling? It can be expressed in quantitative terms or qualitative terms" }, - "refProject":{ - "$ref": "https://raw.githubusercontent.com/smart-data-models/data-models/master/common-schema.json#/definitions/EntityIdentifierType", - "description": "Relationship. Id of the related project" + "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" }, - "indicatorType": { + "refDevice": { + "anyOf": [ + { + "type": "string", + "minLength": 1, + "maxLength": 256, + "pattern": "^[\\w\\-\\.\\{\\}\\$\\+\\*\\[\\]`|~^@!,:\\\\]+$", + "description": "Property. Identifier format of any NGSI entity" + }, + { + "type": "string", + "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'" + }, + "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. Type of the indicator" + "description": "Property. Model:'https://schema.org/Text'. Major pollutant in the Air Quality Index (AQI)" }, - "expectedValue": { + "aqiMajorPollutantForecast": { "type": "string", - "description": "Property. Expected value of the indicator" + "description": "Property. Model:'https://schema.org/Text'. Forecasted major air pollutant in the Air Quality Index (AQI) over a certain duration in future" }, - "value": { - "type": "string", - "description": "Property. Value of the indicator" + "airTemperatureForecast": { + "type": "number", + "description": "Property. Model:'https://schema.org/Number'. Forecasted value of air temperature over a certain duration in future" }, - "calculationForm": { - "type": "string", - "description": "Property. Formula for the calculation of the indicator" + "precipitationForecast": { + "type": "number", + "description": "Property. Model:'https://schema.org/Number'. Forecasted rainfall over a certain duration in future" }, - "modifications": { - "type": "string", - "description": "Property. Changes that the action has incorporated in a possible update " + "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