Skip to content

Commit

Permalink
updated $schema last version
Browse files Browse the repository at this point in the history
  • Loading branch information
albertoabellagarcia committed Sep 16, 2024
1 parent c7a83c9 commit b145fd8
Showing 1 changed file with 104 additions and 136 deletions.
240 changes: 104 additions & 136 deletions I4SubmodelElementProperty/schema.json
Original file line number Diff line number Diff line change
@@ -1,177 +1,145 @@
{
"$schema": "http://json-schema.org/schema#",
"$schemaVersion": "0.0.1",
"modelTags": "Corosect",
"$id": "https://smart-data-models.github.io/dataModel.AAS/I4SubmodelElementProperty/schema.json",
"title": "Smart Data Models - RAMI4.0 Asset Administration Shell -AAS- Generic Submodel Element Property schema",
"description": "Based on IDTA-01001-3-0, maps a generic RAMI4.0 SubmodelElement representing a PROPERTY or attribute of a referenced AAS. RAMI4.0 Standard",
"$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",
"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": [
"I4SubmodelElementProperty"
"WeatherObserved"
],
"description": "Property. It has to be RAMI4.0 I4SubmodelElementProperty NGSI Entity type to represent a RAMI4.0 AAS Digital Twin Submodel Operation component"
"description": "Property. NGSI Entity type. It has to be WeatherObserved"
},
"refI4AssetId": {
"type": "string",
"description": "Relationship. References the root Asset which this SubmodelElement belongs to"
"dateObserved": {
"$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/dateObserved"
},
"refI4AASId": {
"type": "string",
"description": "Relationship. References the root Asset Administration Shell which this SubmodelElement belongs to"
"precipitation": {
"type": "number",
"minimum": 0,
"description": "Property. Model:'https://schema.org/Number'. Amount of water rain registered. Units:'Liters per square meter'. "
},
"refI4SubmodelId": {
"type": "string",
"description": "Relationship. References the root Submodel which this SubmodelElement belongs to"
},
"hasDataSpecification": {
"type": "array",
"description": "Property. Element that can be extended by using data specification templates. A data specification template defines a named set of additional attributes an element may or shall have. RAMI4.0 specification",
"items":{
"type": "object",
"description": "Property. Every element of the data specification",
"properties": {
"type": {
"type":"string",
"description": "Property. Link, url or description of the specified data. DataSpecification template conformant to IEC61360"

}
}
}
"solarRadiation": {
"type": "number",
"minimum": 0,
"description": "Property. Model:'https://schema.org/Number'. The solar radiation observed measured in Watts per square. Units:'w/m2'"
},
"idShort": {
"type": "string",
"description": "Property. Short id is the (short) name of the SubmodelElement within RAMI40 environment"
"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'"
},
"category": {
"type": "string",
"description": "Property. The category is a value that gives further meta information w.r.t. to the class of the element"
"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'"
},
"modelType": {
"type": "object",
"description": "Property. For the distinction of 'type' and 'instance', the term 'kind' is used",
"properties": {
"name": {
"pressureTendency": {
"oneOf": [
{
"type": "string",
"description": "Property. Property of the item. Usually -Operation- is set for this type"
"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"
},
"descriptions": {
"type": "array",
"description": "Property. For adding detailed knowledge about the Element in different languages",
"items":
"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": [
{
"type": "string",
"minLength": 1,
"maxLength": 256,
"pattern": "^[\\w\\-\\.\\{\\}\\$\\+\\*\\[\\]`|~^@!,:\\\\]+$",
"description": "Property. Identifier format of any NGSI entity"
},
{
"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"
}
}
"type": "string",
"format": "uri",
"description": "Property. Identifier format of any NGSI entity"
}

],
"description": "Relationship. Model:'https://schema.org/URL'. A reference to the device(s) which captured this observation"
},
"semanticId": {
"type": "object",
"description": "Property. It refers to an external information source, which explains the formulation of the submodel element",
"properties": {
"keys": {
"type": "array",
"description": "Property. Set of keys linked to the sematicID of the model in an object",
"items":
{
"type": "object",
"description": "Property. Every object containing the keys",
"properties": {
"local": {
"type": "boolean",
"description": "Property. Describes a local or not item"
},
"value": {
"type": "string",
"description": "Property. Describes/includes the corresponding value"
},
"index": {
"type": "integer",
"description": "Property. Integer value of the item"
},
"idType": {
"type": "string",
"description": "Property. References the ID of the type"
}
}
}

}
}
"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'"
},
"kind": {
"type": "string",
"description": "Property. For the distinction of 'type' and 'instance', the term 'kind' is used"
},
"constraints": {
"type": "array",
"description": "Property. Constraints which tells which values can be taken simultaneously. RAMI4.0 Asset Administration Shell specification. Version 3.0RC02",
"items":{
"type": "object",
"properties": {
"type": {
"type":"string",
"description": "Property. Link, url, constraint ID (AAS Version 3.0RC02) or description of the constrain to be applied"
}
}
}
"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'"
},
"value": {
"type": [
"integer",
"string",
"number"
],
"description": "Property.The given value in string/integer format"
"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"
},
"valueId": {
"aqiMajorPollutant": {
"type": "string",
"description": "Property. ID of the item of the submodel elements"
"description": "Property. Model:'https://schema.org/Text'. Major pollutant in the Air Quality Index (AQI)"
},
"valueType": {
"aqiMajorPollutantForecast": {
"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"
},
"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": {
"type": "object",
"description": "Property.The value type used in string format",
"properties": {
"dataObjectType": {
"type": "object",
"description": "Property. Property of the item. string, integer, float, num etc. are used set for this type",
"properties": {
"name": {
"type": "string",
"description": "Property. Name of the property"
}
}
}
}
"description": "Property. Air temperature time series aggregation",
"$ref": "https://smart-data-models.github.io/dataModel.Environment/Environment-schema.json#/definitions/TimeSeriesAggregation"
}
}
}
],
"required": [
"id",
"type"
"type",
"dateObserved",
"location"
]
}

0 comments on commit b145fd8

Please sign in to comment.