-
Notifications
You must be signed in to change notification settings - Fork 10
/
weather-schema.json
191 lines (191 loc) · 6.36 KB
/
weather-schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://smart-data-models.github.io/dataModel.Weather/weather-schema.json",
"title": "Smart Data Models - Weather base schema",
"description": "Common definitions of weather data models",
"definitions": {
"WeatherAlertCategories": {
"description": "Property. Weather categories. Enum:' avalanches,coastalEvent, coldWave, flood, fog, forestFire, heatWave, highTemperature, hurricane, ice, lowTemperature, rainfall, rain_flood, snow, snow_ice, thunderstorms, tornado, tropicalCyclone, tsunami, wind'",
"type": "string",
"enum": [
"avalanches",
"coastalEvent",
"coldWave",
"flood",
"fog",
"forestFire",
"heatWave",
"highTemperature",
"hurricane",
"ice",
"lowTemperature",
"rainfall",
"rain_flood",
"snow",
"snow_ice",
"thunderstorms",
"tornado",
"tropicalCyclone",
"tsunami",
"wind"
]
},
"Weather-AirConditions": {
"type": "object",
"description": "Property. Air conditions categories",
"properties": {
"temperature": {
"type": "number",
"description": "Property. Temperature of the item"
},
"feelLikesTemperature": {
"type": "number",
"description": "Property. Temperature appreciation of the item"
},
"relativeHumidity": {
"type": "number",
"minimum": 0,
"maximum": 1,
"description": "Property. Humidity in the Air. Observed instantaneous relative humidity (water vapour in air)"
}
}
},
"Weather-Commons": {
"type": "object",
"properties": {
"weatherType": {
"type": "string",
"description": "Property. Text description of the weather. Model:'http://schema.org/Text'"
},
"visibility": {
"description": "Property. Model:'http://schema.org/Text'. Categories of visibility",
"anyOf": [
{
"type": "string",
"enum": [
"veryPoor",
"poor",
"moderate",
"good",
"veryGood",
"excellent"
]
},
{
"type": "number",
"minimum": 0
}
]
},
"windDirection": {
"type": "number",
"description": "Property. Model:'http://schema.org/Number'. Direction of the wind bet",
"minimum": 0,
"maximum": 360
},
"windSpeed": {
"type": "number",
"description": "Property. Model:'http//schema.org/Number'. Intensity of the wind",
"minimum": 0
},
"gustSpeed": {
"type": "number",
"description": "Property. A sudden burst of high-speed wind over the observed average wind speed lasting only for a few seconds"
},
"refPointOfInterest": {
"type": "string",
"description": "Relationship. Model:'http://schema.org/URL'. Point of interest related to the item"
},
"atmosphericPressure": {
"type": "number",
"minimum": 0,
"description": "Property. Model:'https://schema.org/Number'. The atmospheric pressure observed measured in Hecto Pascals. Units:'Hecto pascals'"
},
"illuminance": {
"type": "number",
"minimum": 0,
"description": "Property. Model:'https://schema.org/Number'. (https://en.wikipedia.org/wiki/Illuminance) observed measured in lux (lx) or lumens per square metre (cd·sr·m−2). Units:'Lux'"
},
"temperature": {
"type": "number",
"description": "Property. Temperature of the item"
},
"feelsLikeTemperature": {
"type": "number",
"description": "Property. Temperature appreciation of the item"
},
"relativeHumidity": {
"type": "number",
"minimum": 0,
"maximum": 1,
"description": "Property. Humidity in the Air. Observed instantaneous relative humidity (water vapour in air)"
}
}
},
"Weather-Alert": {
"type": "object",
"properties": {
"dateIssued": {
"type": "string",
"format": "date-time",
"description": "Property. Model:'https://schema.org/DateTime'. The date and time the item was issued in ISO8601 UTC format"
},
"validFrom": {
"type": "string",
"format": "date-time",
"description": "Property. Model:'https://schema.org/DateTime'. The start of the validity period for this forecast as a ISO8601 format"
},
"validTo": {
"type": "string",
"format": "date-time",
"description": "Property. Model:'https://schema.org/DateTime'. The end of the validity period for this forecast as a ISO8601 format"
},
"severity": {
"type": "string",
"enum": [
"informational",
"low",
"medium",
"high",
"critical"
],
"description": "Property. Severity of the Alarm"
},
"category": {
"type": "string",
"enum": [
"agriculture",
"environment",
"health",
"naturalDisaster",
"security",
"traffic",
"weather"
],
"description": "Property. Category of the Alert. Enum:'traffic, naturalDisaster, weather, environment, health, security, agriculture'"
},
"alertSource": {
"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. Source of the alert. Model:'http://schema.org/URL'"
},
"data": {
"type": "object",
"description": "Property. Payload containing the data retrieved"
}
}
}
}
}