Skip to content

Commit

Permalink
Revert "updated $schema last version"
Browse files Browse the repository at this point in the history
This reverts commit a4d4604.
  • Loading branch information
albertoabellagarcia committed Sep 17, 2024
1 parent 923f7e4 commit 8e4c7cd
Showing 1 changed file with 177 additions and 105 deletions.
282 changes: 177 additions & 105 deletions I4AAS/schema.json
Original file line number Diff line number Diff line change
@@ -1,145 +1,217 @@
{
"$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.",
"$schema": "http://json-schema.org/schema#",
"$schemaVersion": "0.0.1",
"modelTags": "Corosect",
"$id": "https://smart-data-models.github.io/dataModel.AAS/I4AAS/schema.json",
"title": "Smart Data Models - RAMI4.0 Asset Administration Shell -AAS- Generic schema",
"description": "Based on IDTA-01001-3-0, describes a generic Asset Administration Shell - AAS - tree, component of the RAMI4.0",
"type": "object",
"derivedFrom": "https://industrialdigitaltwin.org/en/wp-content/uploads/sites/2/2023/04/IDTA-01001-3-0_SpecificationAssetAdministrationShell_Part1_Metamodel.pdf",
"license": "",
"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": [
"WeatherObserved"
"I4AAS"
],
"description": "Property. NGSI Entity type. It has to be WeatherObserved"
},
"dateObserved": {
"$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/dateObserved"
},
"precipitation": {
"type": "number",
"minimum": 0,
"description": "Property. Model:'https://schema.org/Number'. Amount of water rain registered. Units:'Liters per square meter'. "
},
"solarRadiation": {
"type": "number",
"minimum": 0,
"description": "Property. Model:'https://schema.org/Number'. The solar radiation observed measured in Watts per square. Units:'w/m2'"
"description": "Property. It has to be RAMI4.0 I4AAS NGSI Entity type to represent a RAMI4.0 AAS Digital Twin"
},
"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'"
},
"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'"
"refI4AssetId": {
"type": "string",
"format": "uri",
"description": "Relationship. References the root Asset linked to this AAS"
},
"hasDataSpecification": {
"type": "array",
"description": "Property. Data specification defines the additional attributes an asset may have. RAMI4.0 specification",
"items": {
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Property. Link, url or description of the specified data"
}
}
}
},
"pressureTendency": {
"oneOf": [
{
"type": "string",
"enum": [
"falling",
"raising",
"steady"
"asset": {
"type": "object",
"description": "Property. The Asset description is filled here",
"properties": {
"keys": {
"type": "array",
"description": "Property. Keys for the Asset",
"items": [
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"Asset"
],
"description": "Property. Type (description) of the asset"
},
"local": {
"type": "boolean",
"description": "Property. It defines whether the asset is created locally or globally"
},
"value": {
"type": "string",
"description": "Property. Here comes the id pointing to the definition of asset"
},
"index": {
"type": "integer",
"description": "Property. Index encodes the position in the original sequence"
},
"idType": {
"type": "string",
"description": "Property. Type of the Identifier, eg.IRI or IRDI"
}
}
}
]
},
{
"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": [
"submodels": {
"type": "array",
"description": "Property. AAS contains complex set of information, submodels provide a separate category for this complex data",
"items": [
{
"type": "object",
"description": "Property. It clearly identify the attribute of data",
"properties": {
"keys": {
"type": "array",
"description": "Property. keys for the submodel",
"items": [
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"Submodel"
],
"description": "Property. Type (description) of the submodel"
},
"local": {
"type": "boolean",
"description": "Property. It defines whether the submodel is created locally or globally"
},
"value": {
"type": "string",
"description": "Property. The id of the submodel pointing to the definition of the Submodel"
},
"index": {
"type": "integer",
"description": "Property. Index encodes the position in the original sequence"
},
"idType": {
"type": "string",
"description": "Property. Identity information that unambiguously distinguishes one submodel from another one. Can be IRI or IRDI"
}
}
}
]
}
}
}
]
},
"conceptDictionaries": {
"type": "array",
"description": "Property. The Asset itself can also define its own dictionary that contains semantic definitions of its submodel elements. These semantic definitions are called concept descriptions (ConceptDescription or concept dictionary). This array will contain ref ids to RAMI4.0 specific concepts used within this model",
"items": {
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Property. Link, url, reference or description of the specified I4.0 concept"
}
}
}
},
"identification": {
"type": "object",
"description": "Property. Identification of the AAS for the asset. RAMI4.0 environment",
"properties": {
"idType": {
"type": "string",
"minLength": 1,
"maxLength": 256,
"pattern": "^[\\w\\-\\.\\{\\}\\$\\+\\*\\[\\]`|~^@!,:\\\\]+$",
"description": "Property. Identifier format of any NGSI entity"
"description": "Property. Type of the Identifier, eg.IRI or IRDI"
},
{
"id": {
"type": "string",
"format": "uri",
"description": "Property. Identifier format of any NGSI entity"
"description": "Property. Identity information that unambiguously distinguishes one AAS from another one. RAMI4.0 environment "
}
],
"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'"
}
},
"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"
"administration": {
"type": "object",
"description": "Property. AAS administration information",
"properties": {
"version": {
"type": "string",
"description": "Property. AAS Version number is the number in line with release of specification"
},
"revision": {
"type": "string",
"description": "Property. AAS Revision number is the number in line with release of specification"
}
}
},
"aqiMajorPollutant": {
"idShort": {
"type": "string",
"description": "Property. Model:'https://schema.org/Text'. Major pollutant in the Air Quality Index (AQI)"
"description": "Property. short id is the (short) name of the ASSET ADMINISTRATION SHELL"
},
"aqiMajorPollutantForecast": {
"category": {
"type": "string",
"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"
"description": "Property. The category is a value that gives further meta information w.r.t. to the class of the element"
},
"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": {
"modelType": {
"type": "object",
"description": "Property. Air temperature time series aggregation",
"$ref": "https://smart-data-models.github.io/dataModel.Environment/Environment-schema.json#/definitions/TimeSeriesAggregation"
"description": "Property. For the distinction of 'type' and 'instance', the term 'kind' is used",
"properties": {
"name": {
"type": "string",
"description": "Property. Description of the referenced property of the item"
}
}
},
"descriptions": {
"type": "array",
"description": "Property. For adding detailed knowledge about the AAS in different languages",
"items": [
{
"type": "object",
"properties": {
"language": {
"type": "string",
"description": "Property. Substring identifying the language. Acronym according to ISO 639-1"
},
"text": {
"type": "string",
"description": "Property. The Description text is filled here"
}
}
}
]
}
}
}
],
"required": [
"id",
"type",
"dateObserved",
"location"
"type"
]
}
}

0 comments on commit 8e4c7cd

Please sign in to comment.