Skip to content

Commit 8c36ce3

Browse files
updated $schema last version
1 parent 315dd25 commit 8c36ce3

File tree

1 file changed

+92
-101
lines changed

1 file changed

+92
-101
lines changed

Diff for: PointOfInterest/schema.json

+92-101
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
2-
"$schema": "http://json-schema.org/schema#",
3-
"$schemaVersion": "0.3.1",
2+
"$schema": "https://json-schema.org/draft/2020-12/schema",
3+
"$schemaVersion": "0.3.4",
44
"modelTags": "IUDX",
5-
"$id": "https://smart-data-models.github.io/dataModel.PointOfInterest/PointOfInterest/schema.json",
6-
"title": "Smart Data Models - Point of Interest schema",
7-
"description": "This entity contains a harmonised geographic description of a Point of Interest",
5+
"$id": "https://smart-data-models.github.io/dataModel.Weather/WeatherObserved/schema.json",
6+
"title": "Weather Observed schema - Smart Data Models",
7+
"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.",
88
"type": "object",
99
"allOf": [
1010
{
@@ -13,47 +13,62 @@
1313
{
1414
"$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/Location-Commons"
1515
},
16+
{
17+
"$ref": "https://smart-data-models.github.io/dataModel.Weather/weather-schema.json#/definitions/Weather-Commons"
18+
},
1619
{
1720
"properties": {
1821
"type": {
1922
"type": "string",
2023
"enum": [
21-
"PointOfInterest"
24+
"WeatherObserved"
2225
],
23-
"description": "Property. NGSI Entity type. It has to be PointOfInterest"
24-
},
25-
"category": {
26-
"type": "array",
27-
"description": "Property. Model:'https://schema.org/Text'. Category of this point of interest",
28-
"items": {
29-
"type": "string"
30-
}
31-
},
32-
"contactPoint": {
33-
"$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/Contact-Commons/properties/contactPoint"
34-
},
35-
"refSeeAlso": {
36-
"type": "array",
37-
"description": "Property. Model:'https://schema.org/URL'. List of references to one or more related entities",
38-
"items": {
39-
"anyOf": [
40-
{
41-
"$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/EntityIdentifierType"
42-
}
43-
]
44-
},
45-
"minItems": 1,
46-
"uniqueItems": true
47-
},
48-
"wardId": {
49-
"type": "string",
50-
"description": "Property. Ward ID of the entity corresponding to this observation"
26+
"description": "Property. NGSI Entity type. It has to be WeatherObserved"
5127
},
52-
"zoneId": {
53-
"type": "string",
54-
"description": "Property. Zone ID of the entity corresponding to this observation"
28+
"dateObserved": {
29+
"$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/dateObserved"
30+
},
31+
"precipitation": {
32+
"type": "number",
33+
"minimum": 0,
34+
"description": "Property. Model:'https://schema.org/Number'. Amount of water rain registered. Units:'Liters per square meter'. "
35+
},
36+
"solarRadiation": {
37+
"type": "number",
38+
"minimum": 0,
39+
"description": "Property. Model:'https://schema.org/Number'. The solar radiation observed measured in Watts per square. Units:'w/m2'"
40+
},
41+
"directIrradiation": {
42+
"type": "number",
43+
"minimum": 0,
44+
"description": "Property. Model:'https://schema.org/Number'. Direct irradiance is the part of the solar irradiance that directly reaches a surface. Units:'w/m2'"
5545
},
56-
"additionalInfoURL": {
46+
"diffuseIrradiation": {
47+
"type": "number",
48+
"minimum": 0,
49+
"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'"
50+
},
51+
"pressureTendency": {
52+
"oneOf": [
53+
{
54+
"type": "string",
55+
"enum": [
56+
"falling",
57+
"raising",
58+
"steady"
59+
]
60+
},
61+
{
62+
"type": "number"
63+
}
64+
],
65+
"description": "Property. Enum:'falling, raising, steady'. Is the pressure rising or falling? It can be expressed in quantitative terms or qualitative terms"
66+
},
67+
"dewPoint": {
68+
"type": "number",
69+
"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"
70+
},
71+
"refDevice": {
5772
"anyOf": [
5873
{
5974
"type": "string",
@@ -68,87 +83,63 @@
6883
"description": "Property. Identifier format of any NGSI entity"
6984
}
7085
],
71-
"description": "Relationship. URL from which additional information of the subject can be obtained"
86+
"description": "Relationship. Model:'https://schema.org/URL'. A reference to the device(s) which captured this observation"
7287
},
73-
"zoneName": {
74-
"type": "string",
75-
"description": "Property. Zone name of the entity corresponding to this observation"
88+
"streamGauge": {
89+
"type": "number",
90+
"minimum": 0,
91+
"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'"
7692
},
77-
"municipalityInfo": {
78-
"type": "object",
79-
"description": "Property. Model:'https://schema.org/Text. Municipality information corresponding to this observation.",
80-
"properties": {
81-
"district": {
82-
"type": "string",
83-
"description": "Property. Model:'https://schema.org/Text'. District name corresponding to this observation."
84-
},
85-
"ulbName": {
86-
"type": "string",
87-
"description": "Property. Model:'https://schema.org/Text'. Name of the Urban Local Body corresponding to this observation."
88-
},
89-
"cityID": {
90-
"type": "string",
91-
"description": "Property. Model:'https://schema.org/Text'. City ID corresponding to this observation."
92-
},
93-
"wardID": {
94-
"type": "string",
95-
"description": "Property. Model:'https://schema.org/Text'. Ward ID corresponding to this observation."
96-
},
97-
"stateName": {
98-
"type": "string",
99-
"description": "Property. Model:'https://schema.org/Text'. Name of the state corresponding to this observation."
100-
},
101-
"cityName": {
102-
"type": "string",
103-
"description": "Property. Model:'https://schema.org/Text'. City name corresponding to this observation"
104-
},
105-
"zoneName": {
106-
"type": "string",
107-
"description": "Property. Model:'https://schema.org/Text'. Zone name corresponding to this observation."
108-
},
109-
"zoneID": {
110-
"type": "string",
111-
"description": "Property. Model:'https://schema.org/Text'. Zone ID corresponding to this observation."
112-
},
113-
"wardName": {
114-
"type": "string",
115-
"description": "Property. Model:'https://schema.org/Text'. Ward name corresponding to this observation."
116-
},
117-
"wardNum": {
118-
"type": "number",
119-
"description": "Property. Model:'https://schema.org/Number'. Ward number corresponding to this observation."
120-
}
121-
}
93+
"snowHeight": {
94+
"type": "number",
95+
"minimum": 0,
96+
"description": "Property. Model:'https://schema.org/Number'. The snow height observed by generic snow depth measurement sensors, expressed in centimeters. Units:'centimeters'"
12297
},
123-
"title": {
98+
"uVIndexMax": {
99+
"type": "number",
100+
"minimum": 0,
101+
"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"
102+
},
103+
"aqiMajorPollutant": {
124104
"type": "string",
125-
"description": "Property. This property contains a name given to the Point of interest beyond specific name."
105+
"description": "Property. Model:'https://schema.org/Text'. Major pollutant in the Air Quality Index (AQI)"
126106
},
127-
"relevance": {
107+
"aqiMajorPollutantForecast": {
108+
"type": "string",
109+
"description": "Property. Model:'https://schema.org/Text'. Forecasted major air pollutant in the Air Quality Index (AQI) over a certain duration in future"
110+
},
111+
"airTemperatureForecast": {
128112
"type": "number",
129-
"description": "Property. Relevance of the point of interest in order to be presented in different zoom levels. 0 is best larger values means lower relevance"
113+
"description": "Property. Model:'https://schema.org/Number'. Forecasted value of air temperature over a certain duration in future"
130114
},
131-
"image": {
132-
"$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/PhysicalObject-Commons/properties/image"
115+
"precipitationForecast": {
116+
"type": "number",
117+
"description": "Property. Model:'https://schema.org/Number'. Forecasted rainfall over a certain duration in future"
133118
},
134-
"priceRange": {
135-
"type": "string",
136-
"description": "Property. String describing the range of prices of the access to the Point of Interest"
119+
"airQualityIndex": {
120+
"type": "number",
121+
"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"
137122
},
138-
"capacity": {
123+
"relativeHumidityForecast": {
139124
"type": "number",
140-
"description": "Property. The total number of people which can be allocated at the same time"
125+
"description": "Property. Model:'https://schema.org/Number'. Forecasted relative humidity (water vapour in air) over a certain duration in future"
141126
},
142-
"occupancy": {
127+
"airQualityIndexForecast": {
143128
"type": "number",
144-
"description": "Property. The count of people in the in the point of Interest. It should be smaller than capacity"
129+
"description": "Property. Model:'https://schema.org/Number'. Forecasted overall Air Quality Index (AQI) over a certain duration in future"
130+
},
131+
"airTemperatureTSA": {
132+
"type": "object",
133+
"description": "Property. Air temperature time series aggregation",
134+
"$ref": "https://smart-data-models.github.io/dataModel.Environment/Environment-schema.json#/definitions/TimeSeriesAggregation"
145135
}
146136
}
147137
}
148138
],
149139
"required": [
150140
"id",
151141
"type",
152-
"name"
142+
"dateObserved",
143+
"location"
153144
]
154145
}

0 commit comments

Comments
 (0)