-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0515ff8
commit 5e61562
Showing
1 changed file
with
100 additions
and
136 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,181 +1,145 @@ | ||
{ | ||
"$schema": "http://json-schema.org/schema", | ||
"$schemaVersion": "1.0.1", | ||
"modelTags": "", | ||
"$id": "https://smart-data-models.github.io/dataModel.DCAT-AP/Distribution/schema.json", | ||
"title": "Smart Data models DCAT-AP distribution of a Dataset, according to DCAT-AP 2.1.1", | ||
"description": "This is a distribution belonging ot a dataset according to the DCAT-AP standard 2.1.1", | ||
"$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", | ||
"required": [ | ||
"accessURL", | ||
"id", | ||
"type" | ||
], | ||
"allOf": [ | ||
{ | ||
"$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/GSMA-Commons" | ||
}, | ||
{ | ||
"$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": [ | ||
"Distribution" | ||
"WeatherObserved" | ||
], | ||
"description": "Property. NGSI entity type. It has to be Distribution" | ||
}, | ||
"accessURL": { | ||
"type": "array", | ||
"description": "Property. Model:'http://www.w3.org/2000/01/rdf-schema#Resource'. This property contains a URL that gives access to a Distribution of the Dataset. The resource at the access URL may contain information about how to get the Dataset", | ||
"items": { | ||
"type": "string", | ||
"minItems": 1 | ||
} | ||
}, | ||
"availability": { | ||
"type": "string", | ||
"description": "Property. Model:'http://www.w3.org/2004/02/skos/core#Concept'. This property indicates how long it is planned to keep the Distributio of the Dataset available" | ||
"description": "Property. NGSI Entity type. It has to be WeatherObserved" | ||
}, | ||
"description": { | ||
"type": "array", | ||
"description": "Property. Model:'http://www.w3.org/2000/01/rdf-schema#Literal'. This property contains a free-text account of the Distribution. This property can be repeated for parallel language versions of the description", | ||
"items": { | ||
"type": "string", | ||
"description": "Property. Every description of the distribution in a language" | ||
} | ||
"dateObserved": { | ||
"$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/dateObserved" | ||
}, | ||
"format": { | ||
"type": "string", | ||
"description": "Property. Model:'https://schema.org/Text'. This property refers to the file format of the Distribution" | ||
"precipitation": { | ||
"type": "number", | ||
"minimum": 0, | ||
"description": "Property. Model:'https://schema.org/Number'. Amount of water rain registered. Units:'Liters per square meter'. " | ||
}, | ||
"license": { | ||
"type": "string", | ||
"description": "Property. Model:'http://purl.org/dc/terms/LicenseDocument'. This property refers to a data service that gives access to the distribution of the dataset" | ||
"solarRadiation": { | ||
"type": "number", | ||
"minimum": 0, | ||
"description": "Property. Model:'https://schema.org/Number'. The solar radiation observed measured in Watts per square. Units:'w/m2'" | ||
}, | ||
"accessService": { | ||
"type": "array", | ||
"description": "Property. Model:'http://www.w3.org/ns/dcat#DataService'. This property refers to a data service that gives access to the distribution of the dataset", | ||
"items": { | ||
"type": "string", | ||
"description": "Property. Every Data service providing access to the distribution" | ||
} | ||
"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'" | ||
}, | ||
"byteSize": { | ||
"diffuseIrradiation": { | ||
"type": "number", | ||
"description": "Property. Model:'http://www.w3.org/2000/01/rdf-schema#Literal'. This property contains the size of a Distribution in bytes" | ||
"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'" | ||
}, | ||
"checksum": { | ||
"type": "string", | ||
"description": "Property. Model:'http://spdx.org/rdf/terms#Checksum'. This property provides a mechanism that can be used to verify that the contents of a distribution have not changed. The checksum is related to the downloadURL" | ||
"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" | ||
}, | ||
"compressFormat": { | ||
"type": "string", | ||
"description": "Property. Model:'http://purl.org/dc/terms/MediaType'. This property refers to the format of the file in which the data is contained in a compressed form, e.g. to reduce the size of the downloadable file. It SHOULD be expressed using a media type as defined in the official register of media types managed by IANA" | ||
"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" | ||
}, | ||
"belongsToDataset": { | ||
"description": "Relationship. It links the Distribution to its parent Dataset. Model:'https://www.w3.org/ns/dcat#Dataset'. Note: this attribute does not belong to the current version of DCAT-AP, 2.1.1", | ||
"refDevice": { | ||
"anyOf": [ | ||
{ | ||
"type": "string", | ||
"minLength": 1, | ||
"maxLength": 256, | ||
"pattern": "^[\\w\\-\\.\\{\\}\\$\\+\\*\\[\\]`|~^@!,:\\\\]+$", | ||
"description": "Property. Link to the dataset" | ||
"description": "Property. Identifier format of any NGSI entity" | ||
}, | ||
{ | ||
"type": "string", | ||
"format": "uri", | ||
"description": "Property. Link to the dataset" | ||
"description": "Property. Identifier format of any NGSI entity" | ||
} | ||
] | ||
}, | ||
"page": { | ||
"type": "array", | ||
"description": "Property. Model:'http://xmlns.com/foaf/0.1/#term_Document'. This property refers to a page or document about this Distribution", | ||
"items": { | ||
"type": "string", | ||
"description": "Property. Every page providing information about the distribution" | ||
} | ||
}, | ||
"downloadURL": { | ||
"type": "array", | ||
"description": "Property. Model:'http://www.w3.org/2000/01/rdf-schema#Resource'. This property contains a URL that is a direct link to a downloadable file in a given format", | ||
"items": { | ||
"type": "string", | ||
"format": "uri", | ||
"description": "Property. Every URL available for downloading" | ||
} | ||
}, | ||
"hasPolicy": { | ||
"type": "string", | ||
"description": "Property. Model:'http://www.w3.org/ns/odrl/2/hasPolicy'. This property refers to the policy expressing the rights associated with the distribution if using the ODRL vocabulary" | ||
}, | ||
"language": { | ||
"type": "array", | ||
"description": "Property. Model:'http://purl.org/dc/terms/LinguisticSystem'. This property refers to a language used in the Distribution. This property can be repeated if the metadata is provided in multiple languages", | ||
"items": { | ||
"type": "string", | ||
"description": "Property. Every language included" | ||
} | ||
}, | ||
"conformsTo": { | ||
"type": "array", | ||
"description": "Property. Model:'http://purl.org/dc/terms/Standard'. This property refers to an established schema to which the described Distribution conforms", | ||
"items": { | ||
"type": "string", | ||
"description": "Property. Every rule o standard the distribution complies with" | ||
} | ||
}, | ||
"mediaType": { | ||
"type": "string", | ||
"description": "Property. Model:'http://purl.org/dc/terms/MediaType'. This property refers to the media type of the Distribution as defined in the official register of media types managed by IANA" | ||
], | ||
"description": "Relationship. Model:'https://schema.org/URL'. A reference to the device(s) which captured this observation" | ||
}, | ||
"packageFormat": { | ||
"type": "string", | ||
"description": "Property. Model:'http://purl.org/dc/terms/MediaType'. This property refers to the format of the file in which one or more data files are grouped together, e.g. to enable a set of related files to be downloaded together. It SHOULD be expressed using a media type as defined in the official register of media types managed by IANA" | ||
"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" | ||
}, | ||
"issued": { | ||
"aqiMajorPollutant": { | ||
"type": "string", | ||
"format": "date-time", | ||
"description": "Property. Model:'http://www.w3.org/2000/01/rdf-schema#Literal'. This property contains the date of formal issuance (e.g., publication) of the Distribution" | ||
"description": "Property. Model:'https://schema.org/Text'. Major pollutant in the Air Quality Index (AQI)" | ||
}, | ||
"rights": { | ||
"aqiMajorPollutantForecast": { | ||
"type": "string", | ||
"description": "Property. Model:'http://purl.org/dc/terms/RightsStatement'. This property refers to a statement that specifies rights associated with the Distribution" | ||
"description": "Property. Model:'https://schema.org/Text'. Forecasted major air pollutant in the Air Quality Index (AQI) over a certain duration in future" | ||
}, | ||
"spatialResolutionInMeters": { | ||
"type": "array", | ||
"description": "Property. Model:'http://www.w3.org/2000/01/rdf-schema#Literal'. This property refers to the minimum spatial separation resolvable in a distribution, measured in meters" | ||
"airTemperatureForecast": { | ||
"type": "number", | ||
"description": "Property. Model:'https://schema.org/Number'. Forecasted value of air temperature over a certain duration in future" | ||
}, | ||
"status": { | ||
"type": "string", | ||
"description": "Property. Model:'http://www.w3.org/2004/02/skos/core#Concept'. This property refers to the maturity of the Distribution. It MUST take one of the values Completed, Deprecated, Under Development, Withdrawn", | ||
"enum": [ | ||
"Completed", | ||
"Deprecated", | ||
"Under Development", | ||
"Withdrawn" | ||
] | ||
"precipitationForecast": { | ||
"type": "number", | ||
"description": "Property. Model:'https://schema.org/Number'. Forecasted rainfall over a certain duration in future" | ||
}, | ||
"temporalResolution": { | ||
"type": "string", | ||
"format": "duration", | ||
"description": "Property. Model:'http://www.w3.org/2001/XMLSchema#duration'. This property refers to the minimum time period resolvable in the dataset. " | ||
}, | ||
"title": { | ||
"type": "array", | ||
"description": "Property. Model:'http://www.w3.org/2000/01/rdf-schema#Literal'. This property contains a name given to the Distribution. This property can be repeated for parallel language versions of the description", | ||
"items": { | ||
"type": "string", | ||
"description": "Property. Every language description of the distribution title" | ||
} | ||
}, | ||
"modified": { | ||
"type": "string", | ||
"format": "date-time", | ||
"description": "Property. Model:'http://www.w3.org/2000/01/rdf-schema#Literal'. This property contains the most recent date on which the Distribution was changed or modified" | ||
"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", | ||
"dateObserved", | ||
"location" | ||
] | ||
} |