Skip to content

Commit 315dd25

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

File tree

1 file changed

+141
-245
lines changed

1 file changed

+141
-245
lines changed

Diff for: Museum/schema.json

+141-245
Original file line numberDiff line numberDiff line change
@@ -1,249 +1,145 @@
11
{
2-
"$schema": "http://json-schema.org/schema#",
3-
"$schemaVersion": "0.0.1",
4-
"modelTags": "",
5-
"$id": "https://smart-data-models.github.io/dataModel.PointOfInterest/Museum/schema.json",
6-
"title": " - Museum schema",
7-
"description": "A museum",
8-
"type": "object",
9-
"allOf": [
10-
{
11-
"$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/GSMA-Commons"
12-
},
13-
{
14-
"$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/Location-Commons"
15-
},
16-
{
17-
"properties": {
18-
"type": {
19-
"type": "string",
20-
"enum": [
21-
"Museum"
22-
],
23-
"description": "Property. NGSI Entity type. It has to be Museum"
24-
},
25-
"museumType": {
26-
"type": "array",
27-
"description": "Property. Model:'https://schema.org/Text'. Type of museum according to the exhibited content. Enum:'appliedArts, scienceAndTechnology, fineArts,music, history, sacredArt, archaeology, specials,decorativeArts, literature, medicineAndPharmacy, maritime,transports, military, wax, popularArtsAndTraditions,numismatic, unesco, ceramics, sumptuaryArts, naturalScience,prehistoric, ethnology, railway, mining, textile, sculpture,multiDisciplinar, painting, paleonthology, modernArt,thematic, architecture, museumHouse, cathedralMuseum,diocesanMuseum, universitary, contemporaryArt, bullfighting'. Other possible source for museum types not covered above is [Wikipedia](https://en.wikipedia.org/wiki/Category:Types_of_museum)",
28-
"items": {
29-
"type": "string",
30-
"enum": [
31-
"appliedArts",
32-
"scienceAndTechnology",
33-
"fineArts",
34-
"music",
35-
"history",
36-
"sacredArt",
37-
"archaeology",
38-
"specials",
39-
"decorativeArts",
40-
"literature",
41-
"medicineAndPharmacy",
42-
"maritime",
43-
"transports",
44-
"military",
45-
"wax",
46-
"popularArtsAndTraditions",
47-
"numismatic",
48-
"unesco",
49-
"ceramics",
50-
"sumptuaryArts",
51-
"naturalScience",
52-
"prehistoric",
53-
"ethnology",
54-
"railway",
55-
"mining",
56-
"textile",
57-
"sculpture",
58-
"multiDisciplinar",
59-
"painting",
60-
"paleonthology",
61-
"modernArt",
62-
"thematic",
63-
"architecture",
64-
"museumHouse",
65-
"cathedralMuseum",
66-
"diocesanMuseum",
67-
"universitary",
68-
"contemporaryArt",
69-
"bullfighting"
70-
]
71-
},
72-
"minItems": 1,
73-
"uniqueItems": true
74-
},
75-
"facilities": {
76-
"type": "array",
77-
"description": "Property. Model:'https://schema.org/Text'. Describes different facilities offered by this museum. Enum:'elevator, cafeteria, shop, auditory,conferenceRoom, audioguide, cloakRoom, forDisabled, forBabies,guidedTour, restaurant, ramp, reservation'. or any other value needed by an application",
78-
"items": {
79-
"type": "string",
80-
"enum": [
81-
"elevator",
82-
"cafeteria",
83-
"shop",
84-
"auditory",
85-
"conferenceRoom",
86-
"audioguide",
87-
"cloakRoom",
88-
"forDisabled",
89-
"forBabies",
90-
"guidedTour",
91-
"restaurant",
92-
"ramp",
93-
"reservation"
94-
]
95-
},
96-
"minItems": 1,
97-
"uniqueItems": true
98-
},
99-
"historicalPeriod": {
100-
"type": "array",
101-
"description": "Property. Model:'https://schema.org/Text'. An ISO8601 time interval. For example 1920/1940. The second element of the interval can be left empty to denote 'till now'. A comma separated list of years, for instance 1620,1625,1718. - A century, represented by a year pattern, for instance 19xx would correspond to the twentieth century. And 196x would correspond to the sixties decade",
102-
"items": {
103-
"type": "string"
104-
},
105-
"minItems": 1,
106-
"uniqueItems": true
107-
},
108-
"artPeriod": {
109-
"type": "array",
110-
"description": "Property. Model:'https://schema.org/Text'.Corresponds to the art period(s) of the exhibitions made by this museum. Allowed values:-Those defined by [Wikipedia](https://en.wikipedia.org/wiki/Art_periods).- Any other extended value needed by an application and not described by the above resource",
111-
"items": {
112-
"type": "string"
113-
},
114-
"minItems": 1,
115-
"uniqueItems": true
116-
},
117-
"buildingType": {
118-
"type": "array",
119-
"description": "Property. Model:'https://schema.org/Text'. Type of building that hosts the museum. Enum:'prehistoricPlace, acropolis, alcazaba,aqueduct, alcazar, amphitheatre, arch, polularArchitecture,basilica, road, chapel, cartuja, nobleHouse, residence,castle, castro, catacombs, cathedral, cloister, convent,prehistoricCave, dolmen, officeBuilding, houseBuilding,industrialBuilding, militaryBuilding, hermitage, fortress,sculpturalGroups, church, garden, fishMarket, masia,masiaFortificada, minaret, monastery, monolith, walls,necropolis, menhir, mansion, palace, pantheon, pazo,pyramid, bridge, gate, arcade, walledArea, sanctuary,grave, synagogue, taulasTalayotsNavetas, theathre, temple,spring, tower, archeologicalSite, university, graveyard,fortifiedTemple, civilEngineering, square, seminar,bullfightingRing, publicBuilding, town, cavesAndTouristicMines,proCathedral, mosque, circus, burialMound'",
120-
"items": {
121-
"type": "string",
122-
"enum": [
123-
"prehistoricPlace",
124-
"acropolis",
125-
"alcazaba",
126-
"aqueduct",
127-
"alcazar",
128-
"amphitheatre",
129-
"arch",
130-
"polularArchitecture",
131-
"basilica",
132-
"road",
133-
"chapel",
134-
"cartuja",
135-
"nobleHouse",
136-
"residence",
137-
"castle",
138-
"castro",
139-
"catacombs",
140-
"cathedral",
141-
"cloister",
142-
"convent",
143-
"prehistoricCave",
144-
"dolmen",
145-
"officeBuilding",
146-
"houseBuilding",
147-
"industrialBuilding",
148-
"militaryBuilding",
149-
"hermitage",
150-
"fortress",
151-
"sculpturalGroups",
152-
"church",
153-
"garden",
154-
"fishMarket",
155-
"masia",
156-
"masiaFortificada",
157-
"minaret",
158-
"monastery",
159-
"monolith",
160-
"walls",
161-
"necropolis",
162-
"menhir",
163-
"mansion",
164-
"palace",
165-
"pantheon",
166-
"pazo",
167-
"pyramid",
168-
"bridge",
169-
"gate",
170-
"arcade",
171-
"walledArea",
172-
"sanctuary",
173-
"grave",
174-
"synagogue",
175-
"taulasTalayotsNavetas",
176-
"theathre",
177-
"temple",
178-
"spring",
179-
"tower",
180-
"archeologicalSite",
181-
"university",
182-
"graveyard",
183-
"fortifiedTemple",
184-
"civilEngineering",
185-
"square",
186-
"seminar",
187-
"bullfightingRing",
188-
"publicBuilding",
189-
"town",
190-
"cavesAndTouristicMines",
191-
"proCathedral",
192-
"mosque",
193-
"circus",
194-
"burialMound"
195-
],
196-
"minItems": 1,
197-
"uniqueItems": true
198-
}
199-
},
200-
"featuredArtist": {
201-
"type": "array",
202-
"description": "Property. Model:'https://schema.org/Person'. Main featured artist(s) at this museum",
203-
"items": {
204-
"anyOf": [
205-
{
206-
"$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/EntityIdentifierType"
207-
},
208-
{
209-
"type": "string"
210-
}
211-
]
212-
},
213-
"minItems": 1,
214-
"uniqueItems": true
215-
},
216-
"contactPoint": {
217-
"type": "object",
218-
"description": "Property. Model:'https://schema.org/ContactPoint'. Contact point for the museum"
219-
},
220-
"touristArea": {
221-
"type": "string",
222-
"description": "Property. Model:'https://schema.org/Text'. Tourist area at which this museum is located. Precise semantics might depend on the application or target country or region. For instance `Costa del Sol`"
223-
},
224-
"openingHoursSpecification": {
225-
"$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/DateTime-Commons/properties/openingHoursSpecification"
226-
},
227-
"refSeeAlso": {
228-
"type": "array",
229-
"description": "Property. Model:'https://schema.org/URL'. List of references to one or more related entities",
230-
"items": {
231-
"anyOf": [
232-
{
233-
"$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/EntityIdentifierType"
234-
}
235-
]
236-
},
237-
"minItems": 1,
238-
"uniqueItems": true
239-
}
2+
"$schema": "https://json-schema.org/draft/2020-12/schema",
3+
"$schemaVersion": "0.3.4",
4+
"modelTags": "IUDX",
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.",
8+
"type": "object",
9+
"allOf": [
10+
{
11+
"$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/GSMA-Commons"
12+
},
13+
{
14+
"$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/Location-Commons"
15+
},
16+
{
17+
"$ref": "https://smart-data-models.github.io/dataModel.Weather/weather-schema.json#/definitions/Weather-Commons"
18+
},
19+
{
20+
"properties": {
21+
"type": {
22+
"type": "string",
23+
"enum": [
24+
"WeatherObserved"
25+
],
26+
"description": "Property. NGSI Entity type. It has to be WeatherObserved"
27+
},
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'"
45+
},
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"
24063
}
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": {
72+
"anyOf": [
73+
{
74+
"type": "string",
75+
"minLength": 1,
76+
"maxLength": 256,
77+
"pattern": "^[\\w\\-\\.\\{\\}\\$\\+\\*\\[\\]`|~^@!,:\\\\]+$",
78+
"description": "Property. Identifier format of any NGSI entity"
79+
},
80+
{
81+
"type": "string",
82+
"format": "uri",
83+
"description": "Property. Identifier format of any NGSI entity"
84+
}
85+
],
86+
"description": "Relationship. Model:'https://schema.org/URL'. A reference to the device(s) which captured this observation"
87+
},
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'"
92+
},
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'"
97+
},
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": {
104+
"type": "string",
105+
"description": "Property. Model:'https://schema.org/Text'. Major pollutant in the Air Quality Index (AQI)"
106+
},
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": {
112+
"type": "number",
113+
"description": "Property. Model:'https://schema.org/Number'. Forecasted value of air temperature over a certain duration in future"
114+
},
115+
"precipitationForecast": {
116+
"type": "number",
117+
"description": "Property. Model:'https://schema.org/Number'. Forecasted rainfall over a certain duration in future"
118+
},
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"
122+
},
123+
"relativeHumidityForecast": {
124+
"type": "number",
125+
"description": "Property. Model:'https://schema.org/Number'. Forecasted relative humidity (water vapour in air) over a certain duration in future"
126+
},
127+
"airQualityIndexForecast": {
128+
"type": "number",
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"
241135
}
242-
],
243-
"required": [
244-
"id",
245-
"type",
246-
"location",
247-
"name"
248-
]
136+
}
137+
}
138+
],
139+
"required": [
140+
"id",
141+
"type",
142+
"dateObserved",
143+
"location"
144+
]
249145
}

0 commit comments

Comments
 (0)