diff --git a/NoisePollution/schema.json b/NoisePollution/schema.json index 284ed396..a33360ac 100644 --- a/NoisePollution/schema.json +++ b/NoisePollution/schema.json @@ -1,10 +1,10 @@ { - "$schema": "http://json-schema.org/schema#", - "$schemaVersion": "0.0.4", - "modelTags": "GreenMov", - "$id": "https://smart-data-models.github.io/dataModel.Environment/NoisePollution/schema.json", - "title": "Smart Data Models - Noise Pollution", - "description": "Noise Pollution data model merges specific and punctual noise measurements (coming, e.g. from NoiseLevelObservation entities) into average parameters referred to city areas, providing a more city-related data about noise pollution status and evolution.", + "$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": [ { @@ -13,60 +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": [ - "NoisePollution" + "WeatherObserved" ], - "description": "Property. NGSI type. it has to be NoisePollution" + "description": "Property. NGSI Entity type. It has to be WeatherObserved" }, - "noiseAnnoyanceIndex": { + "dateObserved": { + "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/dateObserved" + }, + "precipitation": { "type": "number", - "description": "Property. Index (1 to 10) according to noise annoyance level", - "minimum": 1, - "maximum": 10 + "minimum": 0, + "description": "Property. Model:'https://schema.org/Number'. Amount of water rain registered. Units:'Liters per square meter'. " }, - "noiseOrigin": { - "type": "string", - "description": "Property. Main origin (source) of the recorded noise at installation of the sensor" + "solarRadiation": { + "type": "number", + "minimum": 0, + "description": "Property. Model:'https://schema.org/Number'. The solar radiation observed measured in Watts per square. Units:'w/m2'" }, - "buildingsType": { - "type": "string", - "description": "Property. Type of predominant buildings within the measurement area at installation of the sensor" + "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'" }, - "groundType": { - "type": "string", - "description": "Property. Type of predominant ground in the measurement area at installation of the sensor" + "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'" }, - "wallsType": { - "type": "string", - "description": "Property. Facade material types dominant in the measurement area at installation of the sensor" + "pressureTendency": { + "oneOf": [ + { + "type": "string", + "enum": [ + "falling", + "raising", + "steady" + ] + }, + { + "type": "number" + } + ], + "description": "Property. Enum:'falling, raising, steady'. Is the pressure rising or falling? It can be expressed in quantitative terms or qualitative terms" + }, + "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", + "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'" }, - "Lamax2": { + "snowHeight": { "type": "number", - "description": "Property. Maximum sound level recorded for the last 2 hours" + "minimum": 0, + "description": "Property. Model:'https://schema.org/Number'. The snow height observed by generic snow depth measurement sensors, expressed in centimeters. Units:'centimeters'" }, - "Laeq2": { + "uVIndexMax": { "type": "number", - "description": "Property. Average sound level over the last 2 hours" + "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" }, - "dateObservedFrom": { + "aqiMajorPollutant": { "type": "string", - "format": "date-time", - "description": "Property. Observation period start date and time" + "description": "Property. Model:'https://schema.org/Text'. Major pollutant in the Air Quality Index (AQI)" }, - "dateObservedTo": { + "aqiMajorPollutantForecast": { "type": "string", - "format": "date-time", - "description": "Property. End date and time of the observation period" + "description": "Property. Model:'https://schema.org/Text'. Forecasted major air pollutant in the Air Quality Index (AQI) over a certain duration in future" + }, + "airTemperatureForecast": { + "type": "number", + "description": "Property. Model:'https://schema.org/Number'. Forecasted value of air temperature over a certain duration in future" + }, + "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