-
Notifications
You must be signed in to change notification settings - Fork 18
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
499558a
commit d443448
Showing
1 changed file
with
141 additions
and
165 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,169 +1,145 @@ | ||
{ | ||
"$schema": "http://json-schema.org/schema#", | ||
"modelTags": "FIWARE4WATER", | ||
"$schemaVersion": "0.0.1", | ||
"$id": "https://smart-data-models.github.io/dataModel.WaterDistributionManagementEPANET/Pump/schema.json", | ||
"title": "Smart Data Models. WaterNetworkManagementEPANET - Pump", | ||
"description": "This entity contains a harmonised description of a generic pump made for the Water Network Management domain. This entity is primarily associated with the water management vertical and related IoT applications.", | ||
"type": "object", | ||
"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" | ||
}, | ||
{ | ||
"properties": { | ||
"type": { | ||
"type": "string", | ||
"enum": [ | ||
"Pump" | ||
], | ||
"description": "Property. NGSI-LD Entity Type. It must be equal to Pump" | ||
}, | ||
"tag": { | ||
"$ref": "https://raw.githubusercontent.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/master/WaterNetworkManagement-schema.json#/definitions/tag" | ||
}, | ||
"status": { | ||
"$ref": "https://raw.githubusercontent.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/master/WaterNetworkManagement-schema.json#/definitions/status" | ||
}, | ||
"initialStatus": { | ||
"$ref": "https://raw.githubusercontent.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/master/WaterNetworkManagement-schema.json#/definitions/initialStatus" | ||
}, | ||
"power": { | ||
"type": "number", | ||
"description": "Property. Model:'https://schema.org/Number'. Units:'KiloWatt'. The power supplied by the pump. All units are accepted in [CEFACT](https://www.unece.org/cefact.html) code" | ||
}, | ||
"speed": { | ||
"type": "number", | ||
"description": "Property. Model:'https://schema.org/Number'. Units:'Metre per Second'. The relative speed setting of the Pump. All units are accepted in [CEFACT](https://www.unece.org/cefact.html) code" | ||
}, | ||
"startsAt": { | ||
"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. The ID of the node on the suction side of the pump" | ||
}, | ||
"endsAt": { | ||
"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. The ID of the node on the discharge side of the pump" | ||
}, | ||
"vertices": { | ||
"description": "Geoproperty. Coordinates of all vertices in the pump, ordered from the startsAt node to the endsAt node and encoded as a GeoJSON ", | ||
"oneOf": [ | ||
{ | ||
"$ref": "https://geojson.org/schema/MultiPoint.json" | ||
}, | ||
{ | ||
"$ref": "https://geojson.org/schema/Point.json" | ||
} | ||
] | ||
}, | ||
"headCurve": { | ||
"type": "string", | ||
"format": "uri", | ||
"description": "Relationship. The ID label of the pump curve used to describe the relationship between the head delivered by the pump and the flow through the Pump" | ||
}, | ||
"pumpPattern": { | ||
"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. The ID label of a time pattern used to control the pump's operation. The multipliers of the pattern are equivalent to speed settings. A multiplier of zero implies that the pump will be shut off during the corresponding time period" | ||
}, | ||
"efficCurve": { | ||
"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. The ID label of the curve that represents the pump's wire-to-water efficiency as a function of flow rate" | ||
}, | ||
"energyPrice": { | ||
"type": "number", | ||
"description": "Property. Units:'No unit'. The average or nominal price of energy in monetary units. All units are accepted in [CEFACT](https://www.unece.org/cefact.html) code" | ||
}, | ||
"energyPattern": { | ||
"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. The ID label of the time pattern used to describe the variation in energy price throughout the day" | ||
}, | ||
"flow": { | ||
"$ref": "https://raw.githubusercontent.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/master/WaterNetworkManagement-schema.json#/definitions/flow" | ||
}, | ||
"velocity": { | ||
"$ref": "https://raw.githubusercontent.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/master/WaterNetworkManagement-schema.json#/definitions/velocity" | ||
}, | ||
"quality": { | ||
"$ref": "https://raw.githubusercontent.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/master/WaterNetworkManagement-schema.json#/definitions/quality" | ||
}, | ||
"energyUse": { | ||
"$ref": "https://raw.githubusercontent.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/master/WaterNetworkManagement-schema.json#/definitions/energyUse" | ||
} | ||
"$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", | ||
"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" | ||
], | ||
"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'" | ||
}, | ||
"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'" | ||
}, | ||
"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" | ||
}, | ||
"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": "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" | ||
}, | ||
"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" | ||
}, | ||
"aqiMajorPollutant": { | ||
"type": "string", | ||
"description": "Property. Model:'https://schema.org/Text'. Major pollutant in the Air Quality Index (AQI)" | ||
}, | ||
"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. Air temperature time series aggregation", | ||
"$ref": "https://smart-data-models.github.io/dataModel.Environment/Environment-schema.json#/definitions/TimeSeriesAggregation" | ||
} | ||
], | ||
"required": [ | ||
"id", | ||
"type", | ||
"initialStatus", | ||
"startsAt", | ||
"endsAt" | ||
] | ||
} | ||
} | ||
], | ||
"required": [ | ||
"id", | ||
"type", | ||
"dateObserved", | ||
"location" | ||
] | ||
} |