├── CONTRIBUTORS.yaml ├── Curve ├── ADOPTERS.yaml ├── LICENSE.md ├── README.md ├── SmartDataModelBadge.png ├── code │ ├── README.md │ ├── code_for_using_dataModel.WaterDistributionManagementEPANET_Curve.py │ └── code_for_using_pydantic.py ├── doc │ ├── spec.md │ ├── spec_DE.md │ ├── spec_ES.md │ ├── spec_FR.md │ ├── spec_IT.md │ ├── spec_JA.md │ ├── spec_KO.md │ └── spec_ZH.md ├── examples │ ├── example-normalized.json │ ├── example-normalized.json.csv │ ├── example-normalized.jsonld │ ├── example-normalized.jsonld.csv │ ├── example.json │ ├── example.json.csv │ ├── example.jsonld │ └── example.jsonld.csv ├── model.yaml ├── notes.yaml ├── schema.json ├── schema.sql ├── schemaDTDL.json └── swagger.yaml ├── Junction ├── ADOPTERS.yaml ├── LICENSE.md ├── README.md ├── SmartDataModelBadge.png ├── code │ ├── README.md │ ├── code_for_using_dataModel.WaterDistributionManagementEPANET_Junction.py │ └── code_for_using_pydantic.py ├── doc │ ├── spec.md │ ├── spec_DE.md │ ├── spec_ES.md │ ├── spec_FR.md │ ├── spec_IT.md │ ├── spec_JA.md │ ├── spec_KO.md │ └── spec_ZH.md ├── examples │ ├── example-geojsonfeature.json │ ├── example-geojsonfeature.json.csv │ ├── example-normalized.json │ ├── example-normalized.json.csv │ ├── example-normalized.jsonld │ ├── example-normalized.jsonld.csv │ ├── example.json │ ├── example.json.csv │ ├── example.jsonld │ └── example.jsonld.csv ├── model.yaml ├── notes.yaml ├── schema.json ├── schema.sql ├── schemaDTDL.json └── swagger.yaml ├── LICENSE.md ├── Pattern ├── ADOPTERS.yaml ├── LICENSE.md ├── README.md ├── SmartDataModelBadge.png ├── code │ ├── README.md │ ├── code_for_using_dataModel.WaterDistributionManagementEPANET_Pattern.py │ └── code_for_using_pydantic.py ├── doc │ ├── spec.md │ ├── spec_DE.md │ ├── spec_ES.md │ ├── spec_FR.md │ ├── spec_IT.md │ ├── spec_JA.md │ ├── spec_KO.md │ └── spec_ZH.md ├── examples │ ├── example-normalized.json │ ├── example-normalized.json.csv │ ├── example-normalized.jsonld │ ├── example-normalized.jsonld.csv │ ├── example.json │ ├── example.json.csv │ ├── example.jsonld │ └── example.jsonld.csv ├── model.yaml ├── notes.yaml ├── schema.json ├── schema.sql ├── schemaDTDL.json └── swagger.yaml ├── Pipe ├── ADOPTERS.yaml ├── LICENSE.md ├── README.md ├── SmartDataModelBadge.png ├── code │ ├── README.md │ ├── code_for_using_dataModel.WaterDistributionManagementEPANET_Pipe.py │ └── code_for_using_pydantic.py ├── doc │ ├── spec.md │ ├── spec_DE.md │ ├── spec_ES.md │ ├── spec_FR.md │ ├── spec_IT.md │ ├── spec_JA.md │ ├── spec_KO.md │ └── spec_ZH.md ├── examples │ ├── example-normalized.json │ ├── example-normalized.json.csv │ ├── example-normalized.jsonld │ ├── example-normalized.jsonld.csv │ ├── example.json │ ├── example.json.csv │ ├── example.jsonld │ └── example.jsonld.csv ├── model.yaml ├── notes.yaml ├── schema.json ├── schema.sql ├── schemaDTDL.json └── swagger.yaml ├── Pump ├── ADOPTERS.yaml ├── LICENSE.md ├── README.md ├── SmartDataModelBadge.png ├── code │ ├── README.md │ ├── code_for_using_dataModel.WaterDistributionManagementEPANET_Pump.py │ └── code_for_using_pydantic.py ├── doc │ ├── spec.md │ ├── spec_DE.md │ ├── spec_ES.md │ ├── spec_FR.md │ ├── spec_IT.md │ ├── spec_JA.md │ ├── spec_KO.md │ └── spec_ZH.md ├── examples │ ├── example-normalized.json │ ├── example-normalized.json.csv │ ├── example-normalized.jsonld │ ├── example-normalized.jsonld.csv │ ├── example.json │ ├── example.json.csv │ ├── example.jsonld │ └── example.jsonld.csv ├── model.yaml ├── notes.yaml ├── schema.json ├── schema.sql ├── schemaDTDL.json └── swagger.yaml ├── README.md ├── Reservoir ├── ADOPTERS.yaml ├── LICENSE.md ├── README.md ├── SmartDataModelBadge.png ├── code │ ├── README.md │ ├── code_for_using_dataModel.WaterDistributionManagementEPANET_Reservoir.py │ └── code_for_using_pydantic.py ├── doc │ ├── spec.md │ ├── spec_DE.md │ ├── spec_ES.md │ ├── spec_FR.md │ ├── spec_IT.md │ ├── spec_JA.md │ ├── spec_KO.md │ └── spec_ZH.md ├── examples │ ├── example-geojsonfeature.json │ ├── example-geojsonfeature.json.csv │ ├── example-normalized.json │ ├── example-normalized.json.csv │ ├── example-normalized.jsonld │ ├── example-normalized.jsonld.csv │ ├── example.json │ ├── example.json.csv │ ├── example.jsonld │ └── example.jsonld.csv ├── model.yaml ├── notes.yaml ├── schema.json ├── schema.sql ├── schemaDTDL.json └── swagger.yaml ├── SimulationResult ├── ADOPTERS.yaml ├── LICENSE.md ├── README.md ├── SmartDataModelBadge.png ├── code │ ├── README.md │ ├── code_for_using_dataModel.WaterDistributionManagementEPANET_SimulationResult.py │ └── code_for_using_pydantic.py ├── doc │ ├── spec.md │ ├── spec_DE.md │ ├── spec_ES.md │ ├── spec_FR.md │ ├── spec_IT.md │ ├── spec_JA.md │ ├── spec_KO.md │ └── spec_ZH.md ├── examples │ ├── example-normalized.json │ ├── example-normalized.json.csv │ ├── example-normalized.jsonld │ ├── example-normalized.jsonld.csv │ ├── example.json │ ├── example.json.csv │ ├── example.jsonld │ └── example.jsonld.csv ├── model.yaml ├── notes.yaml ├── resources │ └── SimulationDataModel.jpg ├── schema.json ├── schema.sql ├── schemaDTDL.json └── swagger.yaml ├── SimulationScenario ├── ADOPTERS.yaml ├── LICENSE.md ├── README.md ├── SmartDataModelBadge.png ├── code │ ├── README.md │ ├── code_for_using_dataModel.WaterDistributionManagementEPANET_SimulationScenario.py │ └── code_for_using_pydantic.py ├── doc │ ├── spec.md │ ├── spec_DE.md │ ├── spec_ES.md │ ├── spec_FR.md │ ├── spec_IT.md │ ├── spec_JA.md │ ├── spec_KO.md │ └── spec_ZH.md ├── examples │ ├── example-normalized.json │ ├── example-normalized.json.csv │ ├── example-normalized.jsonld │ ├── example-normalized.jsonld.csv │ ├── example.json │ ├── example.json.csv │ ├── example.jsonld │ └── example.jsonld.csv ├── model.yaml ├── notes.yaml ├── resources │ └── SimulationDataModel.jpg ├── schema.json ├── schema.sql ├── schemaDTDL.json └── swagger.yaml ├── Tank ├── ADOPTERS.yaml ├── LICENSE.md ├── README.md ├── SmartDataModelBadge.png ├── code │ ├── README.md │ ├── code_for_using_dataModel.WaterDistributionManagementEPANET_Tank.py │ └── code_for_using_pydantic.py ├── doc │ ├── spec.md │ ├── spec_DE.md │ ├── spec_ES.md │ ├── spec_FR.md │ ├── spec_IT.md │ ├── spec_JA.md │ ├── spec_KO.md │ └── spec_ZH.md ├── examples │ ├── example-geojsonfeature.json │ ├── example-geojsonfeature.json.csv │ ├── example-normalized.json │ ├── example-normalized.json.csv │ ├── example-normalized.jsonld │ ├── example-normalized.jsonld.csv │ ├── example.json │ ├── example.json.csv │ ├── example.jsonld │ └── example.jsonld.csv ├── model.yaml ├── notes.yaml ├── schema.json ├── schema.sql ├── schemaDTDL.json └── swagger.yaml ├── Valve ├── ADOPTERS.yaml ├── LICENSE.md ├── README.md ├── SmartDataModelBadge.png ├── code │ ├── README.md │ ├── code_for_using_dataModel.WaterDistributionManagementEPANET_Valve.py │ └── code_for_using_pydantic.py ├── doc │ ├── spec.md │ ├── spec_DE.md │ ├── spec_ES.md │ ├── spec_FR.md │ ├── spec_IT.md │ ├── spec_JA.md │ ├── spec_KO.md │ └── spec_ZH.md ├── examples │ ├── example-normalized.json │ ├── example-normalized.json.csv │ ├── example-normalized.jsonld │ ├── example-normalized.jsonld.csv │ ├── example.json │ ├── example.json.csv │ ├── example.jsonld │ └── example.jsonld.csv ├── model.yaml ├── notes.yaml ├── schema.json ├── schema.sql ├── schemaDTDL.json └── swagger.yaml ├── WaterNetwork ├── ADOPTERS.yaml ├── LICENSE.md ├── README.md ├── SmartDataModelBadge.png ├── code │ ├── README.md │ ├── code_for_using_dataModel.WaterDistributionManagementEPANET_WaterNetwork.py │ └── code_for_using_pydantic.py ├── doc │ ├── spec.md │ ├── spec_DE.md │ ├── spec_ES.md │ ├── spec_FR.md │ ├── spec_IT.md │ ├── spec_JA.md │ ├── spec_KO.md │ └── spec_ZH.md ├── examples │ ├── example-normalized.json │ ├── example-normalized.json.csv │ ├── example-normalized.jsonld │ ├── example-normalized.jsonld.csv │ ├── example.json │ ├── example.json.csv │ ├── example.jsonld │ └── example.jsonld.csv ├── model.yaml ├── notes.yaml ├── resources │ ├── SimulationDataModel.jpg │ ├── WaterNetworkdataModel-Example.graphml │ └── WaterNetworkdataModel-Example.jpg ├── schema.json ├── schema.sql ├── schemaDTDL.json └── swagger.yaml ├── WaterNetworkManagement-model.yaml ├── WaterNetworkManagement-schema.json ├── context.jsonld ├── notes.yaml ├── smartWaterMagement.graphml └── smartWaterManagement.jpg /CONTRIBUTORS.yaml: -------------------------------------------------------------------------------- 1 | description: This is a compilation list of all CONTRIBUTORS across different objects (data models) alphabetically ordered. All fields are non mandatory 2 | contributors: 3 | - name: Ahmed 4 | surname: Abid 5 | mail: 6 | organization: Easy Global Market. http://www.eglobalmark.com 7 | project: FIWARE4water. https://www.fiware4water.eu/ 8 | comments: 9 | year: 2022 10 | - name: Franck 11 | surname: Le Gall 12 | mail: franck.le-gall@egm.io 13 | organization: Easy Global Market. http://www.eglobalmark.com 14 | project: FIWARE4water. https://www.fiware4water.eu 15 | comments: 16 | year: 2022 17 | - name: Benoit 18 | surname: Orihuela 19 | mail: benoit.orihuela@egm.io 20 | organization: Easy Global Market. http://www.eglobalmark.com 21 | project: FIWARE4water. https://www.fiware4water.eu 22 | comments: 23 | year: 2022 24 | - name: Elad 25 | surname: Salomons 26 | mail: selad@optiwater.com 27 | organization: Optiwater. http://www.optiwater.com/ 28 | project: FIWARE4water. https://www.fiware4water.eu 29 | comments: 30 | year: 2022 31 | - name: Chris 32 | surname: Sweetapple 33 | mail: C.Sweetapple@exeter.ac.uk 34 | organization: University of Exeter. https://www.exeter.ac.uk/ 35 | project: FIWARE4water. https://www.fiware4water.eu 36 | comments: 37 | year: 2022 38 | -------------------------------------------------------------------------------- /Curve/ADOPTERS.yaml: -------------------------------------------------------------------------------- 1 | description: This is a compilation list of the current adopters of the data model Curve of the Subject dataModel.WaterNetworkManagementEPANET. All fields are non mandatory. More info at https://smart-data-models.github.io/data-models/templates/dataModel/CURRENT_ADOPTERS.yaml 2 | currentAdopters: 3 | - 4 | adopter: 5 | description: 6 | mail: 7 | organization: 8 | project: 9 | comments: 10 | startDate: 11 | -------------------------------------------------------------------------------- /Curve/SmartDataModelBadge.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/886407c9fda629bcf73e1656c71eb12ff6157721/Curve/SmartDataModelBadge.png -------------------------------------------------------------------------------- /Curve/code/README.md: -------------------------------------------------------------------------------- 1 | # Curve 2 | 3 | ### List of code samples 4 | 5 | 6 | 7 | 8 | [code_for_using_dataModel.WaterDistributionManagementEPANET_Curve.py](https://github.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/blob/master/Curve/code/code_for_using_dataModel.WaterDistributionManagementEPANET_Curve.py) 9 | 10 | 11 | 12 | 13 | ### Contribution 14 | You can raise an [issue](https://github.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/issues) or submit your [PR](https://github.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/pulls) on existing data models 15 | -------------------------------------------------------------------------------- /Curve/examples/example-normalized.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "fAM-8ca3-4533-a2eb-12015", 3 | "type": "Curve", 4 | "dateCreated": { 5 | "type": "DateTime", 6 | "value": "2020-02-16T17:43:00Z" 7 | }, 8 | "dateModified": { 9 | "type": "DateTime", 10 | "value": "2020-02-16T17:43:00Z" 11 | }, 12 | "curveType": { 13 | "type": "Text", 14 | "value": "FLOW-HEAD" 15 | }, 16 | "xData": { 17 | "type": "StructuredValue", 18 | "value": [ 19 | 0.5692, 20 | 0.4647 21 | ] 22 | }, 23 | "yData": { 24 | "type": "StructuredValue", 25 | "value": [ 26 | 0.5692, 27 | 0.4647 28 | ] 29 | }, 30 | "description": { 31 | "type": "Text", 32 | "value": "Free Text" 33 | }, 34 | "tag": { 35 | "type": "Text", 36 | "value": "DMA1" 37 | } 38 | } -------------------------------------------------------------------------------- /Curve/examples/example-normalized.json.csv: -------------------------------------------------------------------------------- 1 | "id_", "type_", "dateCreated__type_", "dateCreated__value_", "dateModified__type_", "dateModified__value_", "curveType__type_", "curveType__value_", "xData__type_", "xData__value__0_", "xData__value__1_", "yData__type_", "yData__value__0_", "yData__value__1_", "description__type_", "description__value_", "tag__type_", "tag__value_" 2 | "fAM-8ca3-4533-a2eb-12015", "Curve", "DateTime", "2020-02-16T17:43:00Z", "DateTime", "2020-02-16T17:43:00Z", "Text", "FLOW-HEAD", "StructuredValue", "0.5692", "0.4647", "StructuredValue", "0.5692", "0.4647", "Text", "Free Text", "Text", "DMA1" -------------------------------------------------------------------------------- /Curve/examples/example-normalized.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "id": "urn:ngsi-ld:Curve:fAM-8ca3-4533-a2eb-12015", 3 | "type": "Curve", 4 | "createdAt": "2020-02-16T17:43:00Z", 5 | "curveType": { 6 | "type": "Property", 7 | "value": "FLOW-HEAD" 8 | }, 9 | "description": { 10 | "type": "Property", 11 | "value": "Free Text" 12 | }, 13 | "modifiedAt": "2020-02-16T17:43:00Z", 14 | "tag": { 15 | "type": "Property", 16 | "value": "DMA1" 17 | }, 18 | "xData": { 19 | "type": "Property", 20 | "value": [ 21 | 0.5692, 22 | 0.4647 23 | ], 24 | "unitCode": "C62" 25 | }, 26 | "yData": { 27 | "type": "Property", 28 | "value": [ 29 | 0.5692, 30 | 0.4647 31 | ], 32 | "unitCode": "C62" 33 | }, 34 | "@context": [ 35 | "https://raw.githubusercontent.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/master/context.jsonld" 36 | ] 37 | } -------------------------------------------------------------------------------- /Curve/examples/example-normalized.jsonld.csv: -------------------------------------------------------------------------------- 1 | "id_", "type_", "createdAt_", "curveType__type_", "curveType__value_", "description__type_", "description__value_", "modifiedAt_", "tag__type_", "tag__value_", "xData__type_", "xData__value__0_", "xData__value__1_", "xData__unitCode_", "yData__type_", "yData__value__0_", "yData__value__1_", "yData__unitCode_", "@context__0_" 2 | "urn:ngsi-ld:Curve:fAM-8ca3-4533-a2eb-12015", "Curve", "2020-02-16T17:43:00Z", "Property", "FLOW-HEAD", "Property", "Free Text", "2020-02-16T17:43:00Z", "Property", "DMA1", "Property", "0.5692", "0.4647", "C62", "Property", "0.5692", "0.4647", "C62", "https://raw.githubusercontent.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/master/context.jsonld" -------------------------------------------------------------------------------- /Curve/examples/example.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "fAM-8ca3-4533-a2eb-12015", 3 | "type": "Curve", 4 | "curveType": "FLOW-HEAD", 5 | "xData": [ 6 | 0.5692, 7 | 0.4647 8 | ], 9 | "yData": [ 10 | 0.5692, 11 | 0.4647 12 | ], 13 | "description": "Free Text", 14 | "tag": "DMA1" 15 | } -------------------------------------------------------------------------------- /Curve/examples/example.json.csv: -------------------------------------------------------------------------------- 1 | "id_", "type_", "curveType_", "xData__0_", "xData__1_", "yData__0_", "yData__1_", "description_", "tag_" 2 | "fAM-8ca3-4533-a2eb-12015", "Curve", "FLOW-HEAD", "0.5692", "0.4647", "0.5692", "0.4647", "Free Text", "DMA1" -------------------------------------------------------------------------------- /Curve/examples/example.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "id": "fAM-8ca3-4533-a2eb-12015", 3 | "type": "Curve", 4 | "curveType": "FLOW-HEAD", 5 | "description": "Free Text", 6 | "tag": "DMA1", 7 | "xData": [ 8 | 0.5692, 9 | 0.4647 10 | ], 11 | "yData": [ 12 | 0.5692, 13 | 0.4647 14 | ], 15 | "@context": [ 16 | "https://raw.githubusercontent.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/master/context.jsonld" 17 | ] 18 | } -------------------------------------------------------------------------------- /Curve/examples/example.jsonld.csv: -------------------------------------------------------------------------------- 1 | "id_", "type_", "curveType_", "description_", "tag_", "xData__0_", "xData__1_", "yData__0_", "yData__1_", "@context__0_" 2 | "fAM-8ca3-4533-a2eb-12015", "Curve", "FLOW-HEAD", "Free Text", "DMA1", "0.5692", "0.4647", "0.5692", "0.4647", "https://raw.githubusercontent.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/master/context.jsonld" -------------------------------------------------------------------------------- /Curve/notes.yaml: -------------------------------------------------------------------------------- 1 | notesHeader: 2 | 3 | notesMiddle: 4 | 5 | notesFooter: 6 | -------------------------------------------------------------------------------- /Curve/schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://json-schema.org/draft/2020-12/schema", 3 | "modelTags": "FIWARE4WATER", 4 | "$schemaVersion": "0.0.1", 5 | "$id": "https://smart-data-models.github.io/dataModel.WaterDistributionManagementEPANET/Curve/schema.json", 6 | "title": "WaterNetwork - Curve", 7 | "description": "This entity contains a harmonised description of a generic curve made for the Water Network Management domain. This entity is primarily associated with the water management vertical and related IoT applications.", 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 | "description": "Property. NGSI-LD Entity Type. It must be equal to Curve", 21 | "enum": [ 22 | "Curve" 23 | ] 24 | }, 25 | "tag": { 26 | "$ref": "https://raw.githubusercontent.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/master/WaterNetworkManagement-schema.json#/definitions/tag" 27 | }, 28 | "curveType": { 29 | "type": "string", 30 | "enum": [ 31 | "FLOW-HEAD", 32 | "FLOW-EFFICIENCY", 33 | "FLOW-HEADLOSS", 34 | "LEVEL-VOLUME" 35 | ], 36 | "description": "Property. Entity's curve type. Enum:'FLOW-HEAD, FLOW-EFFICIENCY, FLOW-HEADLOSS, LEVEL-VOLUME'" 37 | }, 38 | "xData": { 39 | "type": "array", 40 | "description": "Property. X data points for the curve", 41 | "items": { 42 | "type": "number" 43 | } 44 | }, 45 | "yData": { 46 | "type": "array", 47 | "description": "Property. Y data points for the curve", 48 | "items": { 49 | "type": "number" 50 | } 51 | } 52 | } 53 | } 54 | ], 55 | "required": [ 56 | "id", 57 | "type", 58 | "curveType", 59 | "xData", 60 | "yData" 61 | ] 62 | } -------------------------------------------------------------------------------- /Curve/schema.sql: -------------------------------------------------------------------------------- 1 | /* (Beta) Export of data model Curve of the subject dataModel.WaterDistributionManagementEPANET for a PostgreSQL database. Pending translation of enumerations and multityped attributes */ 2 | CREATE TYPE curveType_type AS ENUM ('FLOW-HEAD','FLOW-EFFICIENCY','FLOW-HEADLOSS','LEVEL-VOLUME');CREATE TYPE Curve_type AS ENUM ('Curve'); 3 | CREATE TABLE Curve (address JSON, alternateName TEXT, areaServed TEXT, curveType curveType_type, dataProvider TEXT, dateCreated TIMESTAMP, dateModified TIMESTAMP, description TEXT, id TEXT PRIMARY KEY, location JSON, name TEXT, owner JSON, seeAlso JSON, source TEXT, tag TEXT, type Curve_type, xData JSON, yData JSON); -------------------------------------------------------------------------------- /Curve/swagger.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | # Copyleft (c) 2022 Contributors to Smart Data Models initiative 3 | # 4 | 5 | 6 | components: 7 | schemas: 8 | Curve: 9 | $ref: "https://smart-data-models.github.io/dataModel.WaterDistributionManagementEPANET/Curve/model.yaml#/Curve" 10 | info: 11 | description: | 12 | This entity contains a harmonised description of a generic curve made for the Water Network Management domain. This entity is primarily associated with the water management vertical and related IoT applications. 13 | title: Curve 14 | version: "0.0.1" 15 | openapi: "3.0.0" 16 | 17 | paths: 18 | /ngsi-ld/v1/entities: 19 | get: 20 | description: "Retrieve a set of entities which matches a specific query from an NGSI-LD system" 21 | parameters: 22 | - 23 | in: query 24 | name: type 25 | required: true 26 | schema: 27 | enum: 28 | - Curve 29 | type: string 30 | responses: 31 | ? "200" 32 | : 33 | content: 34 | application/ld+json: 35 | examples: 36 | keyvalues: 37 | summary: "Key-Values Pairs" 38 | value: 39 | - 40 | $ref: "https://smart-data-models.github.io/dataModel.WaterDistributionManagementEPANET/Curve/examples/example.json" 41 | normalized: 42 | summary: "Normalized NGSI-LD" 43 | value: 44 | - 45 | $ref: "https://smart-data-models.github.io/dataModel.WaterDistributionManagementEPANET/Curve/examples/example-normalized.jsonld" 46 | description: OK 47 | tags: 48 | - ngsi-ld 49 | tags: 50 | - 51 | description: "NGSI-LD Linked-data Format" 52 | name: ngsi-ld 53 | -------------------------------------------------------------------------------- /Junction/ADOPTERS.yaml: -------------------------------------------------------------------------------- 1 | description: This is a compilation list of the current adopters of the data model Junction of the Subject dataModel.WaterNetworkManagementEPANET. All fields are non mandatory. More info at https://smart-data-models.github.io/data-models/templates/dataModel/CURRENT_ADOPTERS.yaml 2 | currentAdopters: 3 | - 4 | adopter: 5 | description: 6 | mail: 7 | organization: 8 | project: 9 | comments: 10 | startDate: 11 | -------------------------------------------------------------------------------- /Junction/SmartDataModelBadge.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/886407c9fda629bcf73e1656c71eb12ff6157721/Junction/SmartDataModelBadge.png -------------------------------------------------------------------------------- /Junction/code/README.md: -------------------------------------------------------------------------------- 1 | # Junction 2 | 3 | ### List of code samples 4 | 5 | 6 | 7 | 8 | [code_for_using_dataModel.WaterDistributionManagementEPANET_Junction.py](https://github.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/blob/master/Junction/code/code_for_using_dataModel.WaterDistributionManagementEPANET_Junction.py) 9 | 10 | 11 | 12 | 13 | ### Contribution 14 | You can raise an [issue](https://github.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/issues) or submit your [PR](https://github.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/pulls) on existing data models 15 | -------------------------------------------------------------------------------- /Junction/examples/example-geojsonfeature.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "urn:ngsi-ld:Junction:63fe7d79-0d4c-4da9-b7d0-3340efa0656a", 3 | "type": "Feature", 4 | "geometry": { 5 | "coordinates": [ 6 | 24.30623, 7 | 60.07966 8 | ], 9 | "type": "Point" 10 | }, 11 | "properties": { 12 | "@context": [ 13 | "https://smartdatamodels.org/context.jsonld" 14 | ], 15 | "createdAt": "2020-02-20T15:42:00Z", 16 | "demandCategory": "agriculture demand", 17 | "description": "This entity contains a harmonised description of a Junction", 18 | "elevation": 105.8, 19 | "emitterCoefficient": 0.526, 20 | "initialQuality": 0.5, 21 | "location": { 22 | "coordinates": [ 23 | 24.30623, 24 | 60.07966 25 | ], 26 | "type": "Point" 27 | }, 28 | "modifiedAt": "2020-02-20T15:45:00Z", 29 | "sourceCategory": "CategoryX", 30 | "tag": "DMA1", 31 | "type": "Junction" 32 | } 33 | } -------------------------------------------------------------------------------- /Junction/examples/example-geojsonfeature.json.csv: -------------------------------------------------------------------------------- 1 | "id_", "type_", "geometry__coordinates__0_", "geometry__coordinates__1_", "geometry__type_", "properties__@context__0_", "properties__createdAt_", "properties__demandCategory_", "properties__description_", "properties__elevation_", "properties__emitterCoefficient_", "properties__initialQuality_", "properties__location__coordinates__0_", "properties__location__coordinates__1_", "properties__location__type_", "properties__modifiedAt_", "properties__sourceCategory_", "properties__tag_", "properties__type_" 2 | "urn:ngsi-ld:Junction:63fe7d79-0d4c-4da9-b7d0-3340efa0656a", "Feature", "24.30623", "60.07966", "Point", "https://smartdatamodels.org/context.jsonld", "2020-02-20T15:42:00Z", "agriculture demand", "This entity contains a harmonised description of a Junction", "105.8", "0.526", "0.5", "24.30623", "60.07966", "Point", "2020-02-20T15:45:00Z", "CategoryX", "DMA1", "Junction" -------------------------------------------------------------------------------- /Junction/examples/example-normalized.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "63fe7d79-0d4c-4da9-b7d0-3340efa0656a", 3 | "type": "Junction", 4 | "location": { 5 | "type": "geo:json", 6 | "value": { 7 | "type": "Point", 8 | "coordinates": [ 9 | 24.30623, 10 | 60.07966 11 | ] 12 | } 13 | }, 14 | "elevation": { 15 | "type": "Number", 16 | "value": 105.8 17 | }, 18 | "demandCategory": { 19 | "type": "StructuredValue", 20 | "value": { 21 | "baseDemand": "agriculture demand", 22 | "value": 1.763868462, 23 | "demandPattern": "fbcb5fc8-8ca3-4533-a2eb-34bc89262190" 24 | } 25 | }, 26 | "sourceCategory": { 27 | "type": "StructuredValue", 28 | "value": { 29 | "value": "CategoryX", 30 | "sourceType": "MASS", 31 | "sourceQuality": 1.2, 32 | "sourcePattern": "fbcb5fc8-8ca3-4533-a2eb-34bc89262190" 33 | } 34 | }, 35 | "tag": { 36 | "type": "Text", 37 | "value": "DMA1" 38 | }, 39 | "description": { 40 | "type": "Text", 41 | "value": "This entity contains a harmonised description of a Junction" 42 | }, 43 | "initialQuality": { 44 | "type": "StructuredValue", 45 | "value": { 46 | "observedBy": "device-9845A", 47 | "value": 0.5 48 | } 49 | }, 50 | "emitterCoefficient": { 51 | "type": "Number", 52 | "value": 0.526 53 | }, 54 | "pressure": { 55 | "type": "StructuredValue", 56 | "value": { 57 | "value": 20, 58 | "observedBy": "device-9845A" 59 | } 60 | }, 61 | "supply": { 62 | "type": "StructuredValue", 63 | "value": { 64 | "value": 150, 65 | "observedBy": "device-9845A" 66 | } 67 | }, 68 | "head": { 69 | "type": "StructuredValue", 70 | "value": { 71 | "value": 20, 72 | "observedBy": "device-9845A" 73 | } 74 | }, 75 | "quality": { 76 | "type": "StructuredValue", 77 | "value": { 78 | "value": 0.5, 79 | "observedBy": "device-9845A" 80 | } 81 | }, 82 | "sourceMassInflow": { 83 | "type": "StructuredValue", 84 | "value": { 85 | "value": 100, 86 | "observedBy": "device-9845A" 87 | } 88 | } 89 | } -------------------------------------------------------------------------------- /Junction/examples/example-normalized.json.csv: -------------------------------------------------------------------------------- 1 | "id_", "type_", "location__type_", "location__value__type_", "location__value__coordinates__0_", "location__value__coordinates__1_", "elevation__type_", "elevation__value_", "demandCategory__type_", "demandCategory__value__baseDemand_", "demandCategory__value__value_", "demandCategory__value__demandPattern_", "sourceCategory__type_", "sourceCategory__value__value_", "sourceCategory__value__sourceType_", "sourceCategory__value__sourceQuality_", "sourceCategory__value__sourcePattern_", "tag__type_", "tag__value_", "description__type_", "description__value_", "initialQuality__type_", "initialQuality__value__observedBy_", "initialQuality__value__value_", "emitterCoefficient__type_", "emitterCoefficient__value_", "pressure__type_", "pressure__value__value_", "pressure__value__observedBy_", "supply__type_", "supply__value__value_", "supply__value__observedBy_", "head__type_", "head__value__value_", "head__value__observedBy_", "quality__type_", "quality__value__value_", "quality__value__observedBy_", "sourceMassInflow__type_", "sourceMassInflow__value__value_", "sourceMassInflow__value__observedBy_" 2 | "63fe7d79-0d4c-4da9-b7d0-3340efa0656a", "Junction", "geo:json", "Point", "24.30623", "60.07966", "Number", "105.8", "StructuredValue", "agriculture demand", "1.763868462", "fbcb5fc8-8ca3-4533-a2eb-34bc89262190", "StructuredValue", "CategoryX", "MASS", "1.2", "fbcb5fc8-8ca3-4533-a2eb-34bc89262190", "Text", "DMA1", "Text", "This entity contains a harmonised description of a Junction", "StructuredValue", "device-9845A", "0.5", "Number", "0.526", "StructuredValue", "20", "device-9845A", "StructuredValue", "150", "device-9845A", "StructuredValue", "20", "device-9845A", "StructuredValue", "0.5", "device-9845A", "StructuredValue", "100", "device-9845A" -------------------------------------------------------------------------------- /Junction/examples/example-normalized.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "id": "urn:ngsi-ld:Junction:63fe7d79-0d4c-4da9-b7d0-3340efa0656a", 3 | "type": "Junction", 4 | "demandCategory": { 5 | "type": "Property", 6 | "value": { 7 | "type": "Property", 8 | "value": "agriculture demand" 9 | }, 10 | "baseDemand": { 11 | "type": "Property", 12 | "value": "1.763868462", 13 | "unitCode": "MQS" 14 | }, 15 | "demandPattern": { 16 | "type": "Relationship", 17 | "object": "urn:ngsi-ld:Pattern:fbcb5fc8-8ca3-4533" 18 | } 19 | }, 20 | "description": { 21 | "type": "Property", 22 | "value": "This entity contains a harmonised description of a Junction" 23 | }, 24 | "elevation": { 25 | "type": "Property", 26 | "value": 105.8, 27 | "unitCode": "MTR" 28 | }, 29 | "emitterCoefficient": { 30 | "type": "Property", 31 | "value": 0.526, 32 | "unitCode": "S4" 33 | }, 34 | "head": { 35 | "type": "Property", 36 | "value": { 37 | "type": "Property", 38 | "value": 20, 39 | "unitCode": "MTR" 40 | }, 41 | "observedBy": { 42 | "type": "Relationship", 43 | "object": "urn:ngsi-ld:Device:device-9845A" 44 | } 45 | }, 46 | "initialQuality": { 47 | "type": "Property", 48 | "value": 0.5, 49 | "unitCode": "M1" 50 | }, 51 | "location": { 52 | "type": "GeoProperty", 53 | "value": { 54 | "type": "Point", 55 | "coordinates": [ 56 | 24.30623, 57 | 60.07966 58 | ] 59 | } 60 | }, 61 | "pressure": { 62 | "type": "Property", 63 | "value": { 64 | "type": "Property", 65 | "value": 20, 66 | "unitCode": "MTR" 67 | }, 68 | "observedBy": { 69 | "type": "Relationship", 70 | "object": "urn:ngsi-ld:Device:device-9845A" 71 | } 72 | }, 73 | "quality": { 74 | "type": "Property", 75 | "value": { 76 | "value": 0.5, 77 | "unitCode": "M1" 78 | }, 79 | "observedBy": { 80 | "type": "Relationship", 81 | "object": "urn:ngsi-ld:Device:device-9845A" 82 | } 83 | }, 84 | "sourceCategory": { 85 | "type": "Property", 86 | "value": { 87 | "type": "Property", 88 | "value": "CategoryX" 89 | }, 90 | "sourceType": { 91 | "type": "Property", 92 | "value": "MASS" 93 | }, 94 | "sourceQuality": { 95 | "type": "Property", 96 | "value": 1.2, 97 | "unitCode": "M1" 98 | }, 99 | "sourcePattern": { 100 | "type": "Relationship", 101 | "object": "urn:ngsi-ld:Pattern:fbcb5fc8-8ca3-4533-a2eb-34bc89262190" 102 | } 103 | }, 104 | "sourceMassInflow": { 105 | "type": "Property", 106 | "value": { 107 | "value": 100, 108 | "unitCode": "F27" 109 | }, 110 | "observedBy": { 111 | "type": "Relationship", 112 | "object": "urn:ngsi-ld:Device:device-9845A" 113 | } 114 | }, 115 | "supply": { 116 | "type": "Property", 117 | "value": { 118 | "type": "Property", 119 | "value": 150, 120 | "unitCode": "LTR" 121 | }, 122 | "observedBy": { 123 | "type": "Relationship", 124 | "object": "urn:ngsi-ld:Device:device-9845A" 125 | } 126 | }, 127 | "tag": { 128 | "type": "Property", 129 | "value": "DMA1" 130 | }, 131 | "@context": [ 132 | "https://raw.githubusercontent.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/master/context.jsonld" 133 | ] 134 | } -------------------------------------------------------------------------------- /Junction/examples/example-normalized.jsonld.csv: -------------------------------------------------------------------------------- 1 | "id_", "type_", "demandCategory__type_", "demandCategory__value__type_", "demandCategory__value__value_", "demandCategory__baseDemand__type_", "demandCategory__baseDemand__value_", "demandCategory__baseDemand__unitCode_", "demandCategory__demandPattern__type_", "demandCategory__demandPattern__object_", "description__type_", "description__value_", "elevation__type_", "elevation__value_", "elevation__unitCode_", "emitterCoefficient__type_", "emitterCoefficient__value_", "emitterCoefficient__unitCode_", "head__type_", "head__value__type_", "head__value__value_", "head__value__unitCode_", "head__observedBy__type_", "head__observedBy__object_", "initialQuality__type_", "initialQuality__value_", "initialQuality__unitCode_", "location__type_", "location__value__type_", "location__value__coordinates__0_", "location__value__coordinates__1_", "pressure__type_", "pressure__value__type_", "pressure__value__value_", "pressure__value__unitCode_", "pressure__observedBy__type_", "pressure__observedBy__object_", "quality__type_", "quality__value__value_", "quality__value__unitCode_", "quality__observedBy__type_", "quality__observedBy__object_", "sourceCategory__type_", "sourceCategory__value__type_", "sourceCategory__value__value_", "sourceCategory__sourceType__type_", "sourceCategory__sourceType__value_", "sourceCategory__sourceQuality__type_", "sourceCategory__sourceQuality__value_", "sourceCategory__sourceQuality__unitCode_", "sourceCategory__sourcePattern__type_", "sourceCategory__sourcePattern__object_", "sourceMassInflow__type_", "sourceMassInflow__value__value_", "sourceMassInflow__value__unitCode_", "sourceMassInflow__observedBy__type_", "sourceMassInflow__observedBy__object_", "supply__type_", "supply__value__type_", "supply__value__value_", "supply__value__unitCode_", "supply__observedBy__type_", "supply__observedBy__object_", "tag__type_", "tag__value_", "@context__0_" 2 | "urn:ngsi-ld:Junction:63fe7d79-0d4c-4da9-b7d0-3340efa0656a", "Junction", "Property", "Property", "agriculture demand", "Property", "1.763868462", "MQS", "Relationship", "urn:ngsi-ld:Pattern:fbcb5fc8-8ca3-4533", "Property", "This entity contains a harmonised description of a Junction", "Property", "105.8", "MTR", "Property", "0.526", "S4", "Property", "Property", "20", "MTR", "Relationship", "urn:ngsi-ld:Device:device-9845A", "Property", "0.5", "M1", "GeoProperty", "Point", "24.30623", "60.07966", "Property", "Property", "20", "MTR", "Relationship", "urn:ngsi-ld:Device:device-9845A", "Property", "0.5", "M1", "Relationship", "urn:ngsi-ld:Device:device-9845A", "Property", "Property", "CategoryX", "Property", "MASS", "Property", "1.2", "M1", "Relationship", "urn:ngsi-ld:Pattern:fbcb5fc8-8ca3-4533-a2eb-34bc89262190", "Property", "100", "F27", "Relationship", "urn:ngsi-ld:Device:device-9845A", "Property", "Property", "150", "LTR", "Relationship", "urn:ngsi-ld:Device:device-9845A", "Property", "DMA1", "https://raw.githubusercontent.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/master/context.jsonld" -------------------------------------------------------------------------------- /Junction/examples/example.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "63fe7d79-0d4c-4da9-b7d0-3340efa0656a", 3 | "type": "Junction", 4 | "location": { 5 | "type": "Point", 6 | "coordinates": [ 7 | 24.30623, 8 | 60.07966 9 | ] 10 | }, 11 | "elevation": 105.8, 12 | "demandCategory": { 13 | "value": 1.763868462, 14 | "baseDemand": "agriculture demand", 15 | "demandPattern": "fbcb5fc8-8ca3-4533-a2eb-34bc89262190" 16 | }, 17 | "sourceCategory": { 18 | "value": "CategoryX", 19 | "sourceType": "MASS", 20 | "sourceQuality": 1.2, 21 | "sourcePattern": "fbcb5fc8-8ca3-4533-a2eb-34bc89262190" 22 | }, 23 | "tag": "DMA1", 24 | "description": "This entity contains a harmonised description of a Junction", 25 | "initialQuality": { 26 | "value": 0.5 27 | }, 28 | "emitterCoefficient": 0.526 29 | } -------------------------------------------------------------------------------- /Junction/examples/example.json.csv: -------------------------------------------------------------------------------- 1 | "id_", "type_", "location__type_", "location__coordinates__0_", "location__coordinates__1_", "elevation_", "demandCategory__value_", "demandCategory__baseDemand_", "demandCategory__demandPattern_", "sourceCategory__value_", "sourceCategory__sourceType_", "sourceCategory__sourceQuality_", "sourceCategory__sourcePattern_", "tag_", "description_", "initialQuality__value_", "emitterCoefficient_" 2 | "63fe7d79-0d4c-4da9-b7d0-3340efa0656a", "Junction", "Point", "24.30623", "60.07966", "105.8", "1.763868462", "agriculture demand", "fbcb5fc8-8ca3-4533-a2eb-34bc89262190", "CategoryX", "MASS", "1.2", "fbcb5fc8-8ca3-4533-a2eb-34bc89262190", "DMA1", "This entity contains a harmonised description of a Junction", "0.5", "0.526" -------------------------------------------------------------------------------- /Junction/examples/example.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "id": "urn:ngsi-ld:Junction:63fe7d79-0d4c-4da9-b7d0-3340efa0656a", 3 | "type": "Junction", 4 | "demandCategory": { 5 | "value": 1.763868462, 6 | "baseDemand": "agriculture demand", 7 | "demandPattern": "fbcb5fc8-8ca3-4533-a2eb-34bc89262190" 8 | }, 9 | "description": "This entity contains a harmonised description of a Junction", 10 | "elevation": 105.8, 11 | "emitterCoefficient": 0.526, 12 | "initialQuality": { 13 | "value": 0.5 14 | }, 15 | "location": { 16 | "coordinates": [ 17 | 24.30623, 18 | 60.07966 19 | ], 20 | "type": "Point" 21 | }, 22 | "sourceCategory": { 23 | "value": "CategoryX", 24 | "sourceType": "MASS", 25 | "sourceQuality": 1.2, 26 | "sourcePattern": "fbcb5fc8-8ca3-4533-a2eb-34bc89262190" 27 | }, 28 | "tag": "DMA1", 29 | "@context": [ 30 | "https://raw.githubusercontent.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/master/context.jsonld" 31 | ] 32 | } -------------------------------------------------------------------------------- /Junction/examples/example.jsonld.csv: -------------------------------------------------------------------------------- 1 | "id_", "type_", "createdAt_", "demandCategory__value_", "demandCategory__baseDemand_", "demandCategory__demandPattern_", "description_", "elevation_", "emitterCoefficient_", "initialQuality__value_", "location__coordinates__0_", "location__coordinates__1_", "location__type_", "modifiedAt_", "sourceCategory__value_", "sourceCategory__sourceType_", "sourceCategory__sourceQuality_", "sourceCategory__sourcePattern_", "tag_", "@context__0_" 2 | "urn:ngsi-ld:Junction:63fe7d79-0d4c-4da9-b7d0-3340efa0656a", "Junction", "2020-02-20T15:42:00Z", "1.763868462", "agriculture demand", "fbcb5fc8-8ca3-4533-a2eb-34bc89262190", "This entity contains a harmonised description of a Junction", "105.8", "0.526", "0.5", "24.30623", "60.07966", "Point", "2020-02-20T15:45:00Z", "CategoryX", "MASS", "1.2", "fbcb5fc8-8ca3-4533-a2eb-34bc89262190", "DMA1", "https://raw.githubusercontent.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/master/context.jsonld" -------------------------------------------------------------------------------- /Junction/notes.yaml: -------------------------------------------------------------------------------- 1 | notesHeader: 2 | 3 | notesMiddle: 4 | 5 | notesFooter: 6 | -------------------------------------------------------------------------------- /Junction/schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://json-schema.org/draft/2020-12/schema", 3 | "modelTags": "FIWARE4WATER", 4 | "$schemaVersion": "0.0.1", 5 | "$id": "https://smart-data-models.github.io/dataModel.WaterDistributionManagementEPANET/Junction/schema.json", 6 | "title": "Smart Data Models WaterNetworkManagementEPANET - Junction", 7 | "description": "This entity contains a harmonised description of a generic junction made for the Water Network Management domain. This entity is primarily associated with the water network management vertical and related IoT applications.", 8 | "type": "object", 9 | "allOf": [ 10 | { 11 | "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/Location-Commons" 12 | }, 13 | { 14 | "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/GSMA-Commons" 15 | }, 16 | { 17 | "properties": { 18 | "type": { 19 | "type": "string", 20 | "enum": [ 21 | "Junction" 22 | ], 23 | "description": "Property. NGSI-LD Entity Type. It has to be Junction" 24 | }, 25 | "tag": { 26 | "$ref": "https://raw.githubusercontent.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/master/WaterNetworkManagement-schema.json#/definitions/tag" 27 | }, 28 | "elevation": { 29 | "type": "number", 30 | "description": "Property. Model:'http://schema.org/Number'. Units:'Metre'. The elevation above some common reference of the junction. All units are accepted in [CEFACT](https://www.unece.org/cefact.html) code" 31 | }, 32 | "demandCategory": { 33 | "$ref": "https://raw.githubusercontent.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/master/WaterNetworkManagement-schema.json#/definitions/demandCategory" 34 | }, 35 | "initialQuality": { 36 | "$ref": "https://raw.githubusercontent.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/master/WaterNetworkManagement-schema.json#/definitions/initialQuality" 37 | }, 38 | "emitterCoefficient": { 39 | "type": "number", 40 | "description": "Property. Model:'http://schema.org/Number'. Units:'square metre per second'. Discharge coefficient for emitter (sprinkler or nozzle) placed at junction. All units are accepted in [CEFACT](https://www.unece.org/cefact.html) code" 41 | }, 42 | "sourceCategory": { 43 | "$ref": "https://raw.githubusercontent.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/master/WaterNetworkManagement-schema.json#/definitions/sourceCategory" 44 | }, 45 | "pressure": { 46 | "$ref": "https://raw.githubusercontent.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/master/WaterNetworkManagement-schema.json#/definitions/pressure" 47 | }, 48 | "supply": { 49 | "$ref": "https://raw.githubusercontent.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/master/WaterNetworkManagement-schema.json#/definitions/supply" 50 | }, 51 | "head": { 52 | "$ref": "https://raw.githubusercontent.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/master/WaterNetworkManagement-schema.json#/definitions/head" 53 | }, 54 | "quality": { 55 | "$ref": "https://raw.githubusercontent.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/master/WaterNetworkManagement-schema.json#/definitions/quality" 56 | }, 57 | "sourceMassInflow": { 58 | "$ref": "https://raw.githubusercontent.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/master/WaterNetworkManagement-schema.json#/definitions/sourceMassInflow" 59 | } 60 | } 61 | } 62 | ], 63 | "required": [ 64 | "id", 65 | "type" 66 | ] 67 | } -------------------------------------------------------------------------------- /Junction/schema.sql: -------------------------------------------------------------------------------- 1 | /* (Beta) Export of data model Junction of the subject dataModel.WaterDistributionManagementEPANET for a PostgreSQL database. Pending translation of enumerations and multityped attributes */ 2 | CREATE TYPE Junction_type AS ENUM ('Junction'); 3 | CREATE TABLE Junction (address JSON, alternateName TEXT, areaServed TEXT, dataProvider TEXT, dateCreated TIMESTAMP, dateModified TIMESTAMP, demandCategory JSON, description TEXT, elevation NUMERIC, emitterCoefficient NUMERIC, head JSON, id TEXT PRIMARY KEY, initialQuality JSON, location JSON, name TEXT, owner JSON, pressure JSON, quality JSON, seeAlso JSON, source TEXT, sourceCategory JSON, sourceMassInflow JSON, supply JSON, tag TEXT, type Junction_type); -------------------------------------------------------------------------------- /Junction/swagger.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | # Copyleft (c) 2022 Contributors to Smart Data Models initiative 3 | # 4 | 5 | 6 | components: 7 | schemas: 8 | Junction: 9 | $ref: "https://smart-data-models.github.io/dataModel.WaterDistributionManagementEPANET/Junction/model.yaml#/Junction" 10 | info: 11 | description: | 12 | This entity contains a harmonised description of a generic junction made for the Water Network Management domain. This entity is primarily associated with the water network management vertical and related IoT applications. 13 | title: Junction 14 | version: "0.0.1" 15 | openapi: "3.0.0" 16 | 17 | paths: 18 | /ngsi-ld/v1/entities: 19 | get: 20 | description: "Retrieve a set of entities which matches a specific query from an NGSI-LD system" 21 | parameters: 22 | - 23 | in: query 24 | name: type 25 | required: true 26 | schema: 27 | enum: 28 | - Junction 29 | type: string 30 | responses: 31 | ? "200" 32 | : 33 | content: 34 | application/ld+json: 35 | examples: 36 | keyvalues: 37 | summary: "Key-Values Pairs" 38 | value: 39 | - 40 | $ref: "https://smart-data-models.github.io/dataModel.WaterDistributionManagementEPANET/Junction/examples/example.json" 41 | normalized: 42 | summary: "Normalized NGSI-LD" 43 | value: 44 | - 45 | $ref: "https://smart-data-models.github.io/dataModel.WaterDistributionManagementEPANET/Junction/examples/example-normalized.jsonld" 46 | description: OK 47 | tags: 48 | - ngsi-ld 49 | tags: 50 | - 51 | description: "NGSI-LD Linked-data Format" 52 | name: ngsi-ld 53 | -------------------------------------------------------------------------------- /Pattern/ADOPTERS.yaml: -------------------------------------------------------------------------------- 1 | description: This is a compilation list of the current adopters of the data model Pattern of the Subject dataModel.WaterNetworkManagementEPANET. All fields are non mandatory. More info at https://smart-data-models.github.io/data-models/templates/dataModel/CURRENT_ADOPTERS.yaml 2 | currentAdopters: 3 | - 4 | adopter: 5 | description: 6 | mail: 7 | organization: 8 | project: 9 | comments: 10 | startDate: 11 | -------------------------------------------------------------------------------- /Pattern/SmartDataModelBadge.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/886407c9fda629bcf73e1656c71eb12ff6157721/Pattern/SmartDataModelBadge.png -------------------------------------------------------------------------------- /Pattern/code/README.md: -------------------------------------------------------------------------------- 1 | # Pattern 2 | 3 | ### List of code samples 4 | 5 | 6 | 7 | 8 | [code_for_using_dataModel.WaterDistributionManagementEPANET_Pattern.py](https://github.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/blob/master/Pattern/code/code_for_using_dataModel.WaterDistributionManagementEPANET_Pattern.py) 9 | 10 | 11 | 12 | 13 | ### Contribution 14 | You can raise an [issue](https://github.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/issues) or submit your [PR](https://github.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/pulls) on existing data models 15 | -------------------------------------------------------------------------------- /Pattern/code/code_for_using_pydantic.py: -------------------------------------------------------------------------------- 1 | from __future__ import annotations 2 | 3 | from enum import Enum 4 | from typing import List, Optional, Union 5 | 6 | from pydantic import AnyUrl, AwareDatetime, BaseModel, Field, constr 7 | 8 | 9 | class Type(Enum): 10 | Pattern = 'Pattern' 11 | 12 | 13 | class Pattern(BaseModel): 14 | alternateName: Optional[str] = Field( 15 | None, description='An alternative name for this item' 16 | ) 17 | dataProvider: Optional[str] = Field( 18 | None, 19 | description='A sequence of characters identifying the provider of the harmonised data entity', 20 | ) 21 | dateCreated: Optional[AwareDatetime] = Field( 22 | None, 23 | description='Entity creation timestamp. This will usually be allocated by the storage platform', 24 | ) 25 | dateModified: Optional[AwareDatetime] = Field( 26 | None, 27 | description='Timestamp of the last modification of the entity. This will usually be allocated by the storage platform', 28 | ) 29 | description: Optional[str] = Field(None, description='A description of this item') 30 | id: Optional[ 31 | Union[ 32 | constr( 33 | pattern=r'^[\\w\\-\\.\\{\\}\\$\\+\\*\\[\\]`|~^@!, :\\\\]+$', 34 | min_length=1, 35 | max_length=256, 36 | ), 37 | AnyUrl, 38 | ] 39 | ] = Field(None, description='Unique identifier of the entity') 40 | multipliers: Optional[List[float]] = Field( 41 | None, 42 | description='Multipliers define how some base quantity (e.g., demand) is adjusted for each time period', 43 | ) 44 | name: Optional[str] = Field(None, description='The name of this item') 45 | owner: Optional[ 46 | List[ 47 | Union[ 48 | constr( 49 | pattern=r'^[\\w\\-\\.\\{\\}\\$\\+\\*\\[\\]`|~^@!,:\\\\]+$', 50 | min_length=1, 51 | max_length=256, 52 | ), 53 | AnyUrl, 54 | ] 55 | ] 56 | ] = Field( 57 | None, 58 | description='A List containing a JSON encoded sequence of characters referencing the unique Ids of the owner(s)', 59 | ) 60 | seeAlso: Optional[Union[List[AnyUrl], AnyUrl]] = Field( 61 | None, description='list of uri pointing to additional resources about the item' 62 | ) 63 | source: Optional[str] = Field( 64 | None, 65 | description='A sequence of characters giving the original source of the entity data as a URL. Recommended to be the fully qualified domain name of the source provider, or the URL to the source object', 66 | ) 67 | startTime: Optional[AwareDatetime] = Field( 68 | None, description='The time at which the pattern starts' 69 | ) 70 | tag: Optional[str] = Field( 71 | None, 72 | description='An optional text string used to assign the pipe to a category, perhaps one based on age or material', 73 | ) 74 | timeStep: Optional[float] = Field( 75 | None, 76 | description='The time step used for the multipliers. All units are accepted in [CEFACT](https://www.unece.org/cefact.html) code', 77 | ) 78 | type: Optional[Type] = Field( 79 | None, description='NGSI-LD Entity Type. It has to be Pattern' 80 | ) 81 | -------------------------------------------------------------------------------- /Pattern/examples/example-normalized.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "fbcb5fc8-8ca3-4533-a2eb-34bc89262190", 3 | "type": "Pattern", 4 | "multipliers": { 5 | "type": "StructuredValue", 6 | "value": [ 7 | 0.5692, 8 | 0.4647, 9 | 0.4385, 10 | 0.3604, 11 | 0.3098, 12 | 0.3345 13 | ] 14 | }, 15 | "timeStep": { 16 | "type": "Number", 17 | "value": 3600 18 | }, 19 | "startTime": { 20 | "type": "DateTime", 21 | "value": "2020-02-20T17:43:00Z" 22 | }, 23 | "description": { 24 | "type": "Text", 25 | "value": "Open Text" 26 | }, 27 | "tag": { 28 | "type": "Text", 29 | "value": "DMA1" 30 | } 31 | } -------------------------------------------------------------------------------- /Pattern/examples/example-normalized.json.csv: -------------------------------------------------------------------------------- 1 | "id_", "type_", "multipliers__type_", "multipliers__value__0_", "multipliers__value__1_", "multipliers__value__2_", "multipliers__value__3_", "multipliers__value__4_", "multipliers__value__5_", "timeStep__type_", "timeStep__value_", "startTime__type_", "startTime__value_", "description__type_", "description__value_", "tag__type_", "tag__value_" 2 | "fbcb5fc8-8ca3-4533-a2eb-34bc89262190", "Pattern", "StructuredValue", "0.5692", "0.4647", "0.4385", "0.3604", "0.3098", "0.3345", "Number", "3600", "DateTime", "2020-02-20T17:43:00Z", "Text", "Open Text", "Text", "DMA1" -------------------------------------------------------------------------------- /Pattern/examples/example-normalized.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "id": "urn:ngsi-ld:Pattern:fbcb5fc8-8ca3-4533-a2eb-34bc89262190", 3 | "type": "Pattern", 4 | "createdAt": "2020-02-20T17:43:00Z", 5 | "description": { 6 | "type": "Property", 7 | "value": "Open Text" 8 | }, 9 | "modifiedAt": "2020-02-20T17:43:00Z", 10 | "multipliers": { 11 | "type": "Property", 12 | "value": [ 13 | 0.5692, 14 | 0.4647, 15 | 0.4385, 16 | 0.3604, 17 | 0.3098, 18 | 0.3345 19 | ], 20 | "unitCode": "C62" 21 | }, 22 | "startTime": { 23 | "type": "Property", 24 | "value": "00:00" 25 | }, 26 | "tag": { 27 | "type": "Property", 28 | "value": "DMA1" 29 | }, 30 | "timeStep": { 31 | "type": "Property", 32 | "value": 3600, 33 | "unitCode": "SEC" 34 | }, 35 | "@context": [ 36 | "https://raw.githubusercontent.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/master/context.jsonld" 37 | ] 38 | } -------------------------------------------------------------------------------- /Pattern/examples/example-normalized.jsonld.csv: -------------------------------------------------------------------------------- 1 | "id_", "type_", "createdAt_", "description__type_", "description__value_", "modifiedAt_", "multipliers__type_", "multipliers__value__0_", "multipliers__value__1_", "multipliers__value__2_", "multipliers__value__3_", "multipliers__value__4_", "multipliers__value__5_", "multipliers__unitCode_", "startTime__type_", "startTime__value_", "tag__type_", "tag__value_", "timeStep__type_", "timeStep__value_", "timeStep__unitCode_", "@context__0_" 2 | "urn:ngsi-ld:Pattern:fbcb5fc8-8ca3-4533-a2eb-34bc89262190", "Pattern", "2020-02-20T17:43:00Z", "Property", "Open Text", "2020-02-20T17:43:00Z", "Property", "0.5692", "0.4647", "0.4385", "0.3604", "0.3098", "0.3345", "C62", "Property", "00:00", "Property", "DMA1", "Property", "3600", "SEC", "https://raw.githubusercontent.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/master/context.jsonld" -------------------------------------------------------------------------------- /Pattern/examples/example.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "fbcb5fc8-8ca3-4533-a2eb-34bc89262190", 3 | "type": "Pattern", 4 | "multipliers": [ 5 | 0.5692, 6 | 0.4647, 7 | 0.4385, 8 | 0.3604, 9 | 0.3098, 10 | 0.3345 11 | ], 12 | "timeStep": 3600, 13 | "description": "Open Text", 14 | "tag": "DMA1", 15 | "startTime": "2020-02-20T17:43:00Z" 16 | } -------------------------------------------------------------------------------- /Pattern/examples/example.json.csv: -------------------------------------------------------------------------------- 1 | "id_", "type_", "multipliers__0_", "multipliers__1_", "multipliers__2_", "multipliers__3_", "multipliers__4_", "multipliers__5_", "timeStep_", "description_", "tag_", "startTime_" 2 | "fbcb5fc8-8ca3-4533-a2eb-34bc89262190", "Pattern", "0.5692", "0.4647", "0.4385", "0.3604", "0.3098", "0.3345", "3600", "Open Text", "DMA1", "2020-02-20T17:43:00Z" -------------------------------------------------------------------------------- /Pattern/examples/example.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "id": "urn:ngsi-ld:Pattern:fbcb5fc8-8ca3-4533-a2eb-34bc89262190", 3 | "type": "Pattern", 4 | "description": "Open Text", 5 | "multipliers": [ 6 | 0.5692, 7 | 0.4647, 8 | 0.4385, 9 | 0.3604, 10 | 0.3098, 11 | 0.3345 12 | ], 13 | "startTime": "2020-02-20T17:43:00Z", 14 | "tag": "DMA1", 15 | "timeStep": 3600, 16 | "@context": [ 17 | "https://raw.githubusercontent.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/master/context.jsonld" 18 | ] 19 | } -------------------------------------------------------------------------------- /Pattern/examples/example.jsonld.csv: -------------------------------------------------------------------------------- 1 | "id_", "type_", "createdAt_", "description_", "modifiedAt_", "multipliers__0_", "multipliers__1_", "multipliers__2_", "multipliers__3_", "multipliers__4_", "multipliers__5_", "startTime_", "tag_", "timeStep_", "@context__0_" 2 | "urn:ngsi-ld:Pattern:fbcb5fc8-8ca3-4533-a2eb-34bc89262190", "Pattern", "2020-02-20T17:43:00Z", "Open Text", "2020-02-20T17:43:00Z", "0.5692", "0.4647", "0.4385", "0.3604", "0.3098", "0.3345", "2020-02-20T17:43:00Z", "DMA1", "3600", "https://raw.githubusercontent.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/master/context.jsonld" -------------------------------------------------------------------------------- /Pattern/notes.yaml: -------------------------------------------------------------------------------- 1 | notesHeader: 2 | 3 | notesMiddle: 4 | 5 | notesFooter: 6 | -------------------------------------------------------------------------------- /Pattern/schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://json-schema.org/draft/2020-12/schema", 3 | "modelTags": "FIWARE4WATER", 4 | "$schemaVersion": "0.0.1", 5 | "$id": "https://smart-data-models.github.io/dataModel.WaterDistributionManagementEPANET/Pattern/schema.json", 6 | "title": "WaterNetwork - Pattern", 7 | "description": "This entity contains a harmonised description of a generic pattern made for the Water Network Management domain. This entity is primarily associated with the water management vertical and related IoT applications.", 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 | "properties": { 15 | "type": { 16 | "type": "string", 17 | "enum": [ 18 | "Pattern" 19 | ], 20 | "description": "Property. NGSI-LD Entity Type. It has to be Pattern" 21 | }, 22 | "tag": { 23 | "$ref": "https://raw.githubusercontent.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/master/WaterNetworkManagement-schema.json#/definitions/tag" 24 | }, 25 | "multipliers": { 26 | "type": "array", 27 | "description": "Property. Multipliers define how some base quantity (e.g., demand) is adjusted for each time period", 28 | "items": { 29 | "type": "number" 30 | } 31 | }, 32 | "timeStep": { 33 | "type": "number", 34 | "description": "Property. The time step used for the multipliers. Units:'Second'. All units are accepted in [CEFACT](https://www.unece.org/cefact.html) code" 35 | }, 36 | "startTime": { 37 | "type": "string", 38 | "format": "date-time", 39 | "description": "Property. Model:'https://schema.org/Time'. The time at which the pattern starts" 40 | } 41 | } 42 | } 43 | ], 44 | "required": [ 45 | "id", 46 | "type", 47 | "multipliers", 48 | "timeStep", 49 | "startTime" 50 | ] 51 | } -------------------------------------------------------------------------------- /Pattern/schema.sql: -------------------------------------------------------------------------------- 1 | /* (Beta) Export of data model Pattern of the subject dataModel.WaterDistributionManagementEPANET for a PostgreSQL database. Pending translation of enumerations and multityped attributes */ 2 | CREATE TYPE Pattern_type AS ENUM ('Pattern'); 3 | CREATE TABLE Pattern (alternateName TEXT, dataProvider TEXT, dateCreated TIMESTAMP, dateModified TIMESTAMP, description TEXT, id TEXT PRIMARY KEY, multipliers JSON, name TEXT, owner JSON, seeAlso JSON, source TEXT, startTime TIMESTAMP, tag TEXT, timeStep NUMERIC, type Pattern_type); -------------------------------------------------------------------------------- /Pattern/schemaDTDL.json: -------------------------------------------------------------------------------- 1 | { 2 | "@id": "dtmi:com:ngsi-ld:Pattern;0", 3 | "@type": "Interface", 4 | "@context": "dtmi:dtdl:context;2", 5 | "comment": "WaterNetwork - Pattern adapted to DTDL from smartdatamodels.org. Source: https://raw.githubusercontent.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/master/Pattern/schema.json", 6 | "description": "This entity contains a harmonised description of a generic pattern made for the Water Network Management domain. This entity is primarily associated with the water management vertical and related IoT applications.", 7 | "displayName": "Pattern", 8 | "contents": [ 9 | { 10 | "name": "alternateName", 11 | "writable": true, 12 | "displayName": "alternateName", 13 | "@type": "Property", 14 | "schema": "string", 15 | "comment": "An alternative name for this item" 16 | }, 17 | { 18 | "name": "dataProvider", 19 | "writable": true, 20 | "displayName": "dataProvider", 21 | "@type": "Property", 22 | "schema": "string", 23 | "comment": "A sequence of characters identifying the provider of the harmonised data entity." 24 | }, 25 | { 26 | "name": "dateCreated", 27 | "writable": true, 28 | "displayName": "dateCreated", 29 | "@type": "Property", 30 | "schema": "dateTime", 31 | "comment": "Entity creation timestamp. This will usually be allocated by the storage platform." 32 | }, 33 | { 34 | "name": "dateModified", 35 | "writable": true, 36 | "displayName": "dateModified", 37 | "@type": "Property", 38 | "schema": "dateTime", 39 | "comment": "Timestamp of the last modification of the entity. This will usually be allocated by the storage platform." 40 | }, 41 | { 42 | "name": "description", 43 | "writable": true, 44 | "displayName": "description", 45 | "@type": "Property", 46 | "schema": "string", 47 | "comment": "A description of this item" 48 | }, 49 | { 50 | "name": "name", 51 | "writable": true, 52 | "displayName": "name", 53 | "@type": "Property", 54 | "schema": "string", 55 | "comment": "The name of this item." 56 | }, 57 | { 58 | "name": "seeAlso", 59 | "writable": true, 60 | "displayName": "seeAlso" 61 | }, 62 | { 63 | "name": "source", 64 | "writable": true, 65 | "displayName": "source", 66 | "@type": "Property", 67 | "schema": "string", 68 | "comment": "A sequence of characters giving the original source of the entity data as a URL. Recommended to be the fully qualified domain name of the source provider, or the URL to the source object." 69 | }, 70 | { 71 | "name": "startTime", 72 | "writable": true, 73 | "displayName": "startTime", 74 | "@type": "Property", 75 | "schema": "dateTime", 76 | "comment": "The time at which the pattern starts" 77 | }, 78 | { 79 | "name": "tag", 80 | "writable": true, 81 | "displayName": "tag", 82 | "@type": "Property", 83 | "schema": "string", 84 | "comment": "An optional text string used to assign the pipe to a category, perhaps one based on age or material" 85 | }, 86 | { 87 | "name": "timeStep", 88 | "writable": true, 89 | "displayName": "timeStep", 90 | "@type": "Property", 91 | "schema": "long", 92 | "comment": "The time step used for the multipliers. All units are accepted in [CEFACT](https://www.unece.org/cefact.html) code." 93 | }, 94 | { 95 | "@type": "Telemetry", 96 | "name": "multipliers", 97 | "schema": { 98 | "@type": "Array", 99 | "elementSchema": "number" 100 | }, 101 | "comment": "Multipliers define how some base quantity (e.g., demand) is adjusted for each time period", 102 | "displayName": "multipliers" 103 | }, 104 | { 105 | "@type": "Telemetry", 106 | "name": "owner", 107 | "schema": { 108 | "@type": "Array", 109 | "elementSchema": "string" 110 | }, 111 | "comment": "A List containing a JSON encoded sequence of characters referencing the unique Ids of the owner(s)", 112 | "displayName": "owner" 113 | } 114 | ] 115 | } -------------------------------------------------------------------------------- /Pattern/swagger.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | # Copyleft (c) 2022 Contributors to Smart Data Models initiative 3 | # 4 | 5 | 6 | components: 7 | schemas: 8 | Pattern: 9 | $ref: "https://smart-data-models.github.io/dataModel.WaterDistributionManagementEPANET/Pattern/model.yaml#/Pattern" 10 | info: 11 | description: | 12 | This entity contains a harmonised description of a generic pattern made for the Water Network Management domain. This entity is primarily associated with the water management vertical and related IoT applications. 13 | title: Pattern 14 | version: "0.0.1" 15 | openapi: "3.0.0" 16 | 17 | paths: 18 | /ngsi-ld/v1/entities: 19 | get: 20 | description: "Retrieve a set of entities which matches a specific query from an NGSI-LD system" 21 | parameters: 22 | - 23 | in: query 24 | name: type 25 | required: true 26 | schema: 27 | enum: 28 | - Pattern 29 | type: string 30 | responses: 31 | ? "200" 32 | : 33 | content: 34 | application/ld+json: 35 | examples: 36 | keyvalues: 37 | summary: "Key-Values Pairs" 38 | value: 39 | - 40 | $ref: "https://smart-data-models.github.io/dataModel.WaterDistributionManagementEPANET/Pattern/examples/example.json" 41 | normalized: 42 | summary: "Normalized NGSI-LD" 43 | value: 44 | - 45 | $ref: "https://smart-data-models.github.io/dataModel.WaterDistributionManagementEPANET/Pattern/examples/example-normalized.jsonld" 46 | description: OK 47 | tags: 48 | - ngsi-ld 49 | tags: 50 | - 51 | description: "NGSI-LD Linked-data Format" 52 | name: ngsi-ld 53 | -------------------------------------------------------------------------------- /Pipe/ADOPTERS.yaml: -------------------------------------------------------------------------------- 1 | description: This is a compilation list of the current adopters of the data model Pipe of the Subject dataModel.WaterNetworkManagementEPANET. All fields are non mandatory. More info at https://smart-data-models.github.io/data-models/templates/dataModel/CURRENT_ADOPTERS.yaml 2 | currentAdopters: 3 | - 4 | adopter: 5 | description: 6 | mail: 7 | organization: 8 | project: 9 | comments: 10 | startDate: 11 | -------------------------------------------------------------------------------- /Pipe/README.md: -------------------------------------------------------------------------------- 1 | [![Smart Data Models](https://smartdatamodels.org/wp-content/uploads/2022/01/SmartDataModels_logo.png "Logo")](https://smartdatamodels.org) 2 | # Pipe 3 | Version: 0.0.1 4 | 5 | ## Description 6 | 7 | This entity contains a harmonised description of a generic pipe made for the Water Network Management domain. This entity is primarily associated with the water management vertical and related IoT applications. 8 | ### Specification 9 | 10 | Link to the [interactive specification](https://swagger.lab.fiware.org/?url=https://smart-data-models.github.io/dataModel.WaterDistributionManagementEPANET/Pipe/swagger.yaml) 11 | 12 | Link to the [specification](https://github.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/blob/master/Pipe/doc/spec.md) 13 | 14 | Enlace a la [Especificación en español](https://github.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/blob/master/Pipe/doc/spec_ES.md) 15 | 16 | Lien vers le [spécification en français](https://github.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/blob/master/Pipe/doc/spec_FR.md) 17 | 18 | Link zur [deutschen Spezifikation](https://github.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/blob/master/Pipe/doc/spec_DE.md) 19 | 20 | Link alla [specifica](https://github.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/blob/master/Pipe/doc/spec_IT.md) 21 | 22 | [仕様へのリンク](https://github.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/blob/master/Pipe/doc/spec_JA.md) 23 | 24 | [链接到规范](https://github.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/blob/master/Pipe/doc/spec_ZH.md) 25 | 26 | [사양 링크](https://github.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/blob/master/Pipe/doc/spec_KO.md) 27 | ### Examples 28 | 29 | Link to the [example](https://smart-data-models.github.io/dataModel.WaterDistributionManagementEPANET/Pipe/examples/example.json) (keyvalues) for NGSI v2 30 | 31 | Link to the [example](https://smart-data-models.github.io/dataModel.WaterDistributionManagementEPANET/Pipe/examples/example.jsonld) (keyvalues) for NGSI-LD 32 | 33 | Link to the [example](https://smart-data-models.github.io/dataModel.WaterDistributionManagementEPANET/Pipe/examples/example-normalized.json) (normalized) for NGSI-V2 34 | 35 | Link to the [example](https://smart-data-models.github.io/dataModel.WaterDistributionManagementEPANET/Pipe/examples/example-normalized.jsonld) (normalized) for NGSI-LD 36 | 37 | Link to the [example](https://github.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/blob/master/Pipe/examples/example.json.csv) (keyvalues) for NGSI v2 in CSV format 38 | 39 | Link to the [example](https://github.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/blob/master/Pipe/examples/example.jsonld.csv) (keyvalues) for NGSI-LD in CSV format 40 | 41 | Link to the [example](https://github.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/blob/master/Pipe/examples/example-normalized.json.csv) (normalized) for NGSI-V2 in CSV format 42 | 43 | Link to the [example](https://github.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/blob/master/Pipe/examples/example-normalized.jsonld.csv) (normalized) for NGSI-LD in CSV format 44 | ### Dynamic Examples generation 45 | 46 | Link to the [Generator](https://smartdatamodels.org/extra/ngsi-ld_generator.php?schemaUrl=https://raw.githubusercontent.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/master/Pipe/schema.json&email=info@smartdatamodels.org) of NGSI-LD normalized payloads compliant with this data model. Refresh for new values 47 | 48 | Link to the [Generator](https://smartdatamodels.org/extra/ngsi-ld_generator_keyvalues.php?schemaUrl=https://raw.githubusercontent.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/master/Pipe/schema.json&email=info@smartdatamodels.org) of NGSI-LD keyvalues payloads compliant with this data model. Refresh for new values 49 | 50 | Link to the [Generator](https://smartdatamodels.org/extra/geojson_features_generator.php?schemaUrl=https://raw.githubusercontent.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/master/Pipe/schema.json&email=info@smartdatamodels.org) of geojson feature format payloads compliant with this data model. Refresh for new values 51 | ### PostgreSQL schema 52 | 53 | Link to the [PostgreSQL schema](https://github.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/blob/master/Pipe/schema.sql) of this data model 54 | ### Contribution 55 | 56 | If you have any issue on this data model you can raise an [issue](https://github.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/issues) or contribute with a [PR](https://github.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/pulls) 57 | 58 | If you wish to develop your own data model you can start from [contribution manual](https://bit.ly/contribution_manual). Several services have been developed to help with: 59 | - [Test data model repository](https://smartdatamodels.org/index.php/data-models-contribution-api/) including the schema and example payloads, etc 60 | - [Generate PostgreSQL schema](https://smartdatamodels.org/index.php/sql-service/) to help create a table, create type, etc -------------------------------------------------------------------------------- /Pipe/SmartDataModelBadge.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/886407c9fda629bcf73e1656c71eb12ff6157721/Pipe/SmartDataModelBadge.png -------------------------------------------------------------------------------- /Pipe/code/README.md: -------------------------------------------------------------------------------- 1 | # Pipe 2 | 3 | ### List of code samples 4 | 5 | 6 | 7 | 8 | [code_for_using_dataModel.WaterDistributionManagementEPANET_Pipe.py](https://github.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/blob/master/Pipe/code/code_for_using_dataModel.WaterDistributionManagementEPANET_Pipe.py) 9 | 10 | 11 | 12 | 13 | ### Contribution 14 | You can raise an [issue](https://github.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/issues) or submit your [PR](https://github.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/pulls) on existing data models 15 | -------------------------------------------------------------------------------- /Pipe/examples/example-normalized.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "74azsty-70d4l-4da9-b7d0-3340ef655nnb", 3 | "type": "Pipe", 4 | "initialStatus": { 5 | "type": "Text", 6 | "value": "OPEN" 7 | }, 8 | "status": { 9 | "type": "Text", 10 | "value": "OPEN" 11 | }, 12 | "length": { 13 | "type": "Number", 14 | "value": 52.9 15 | }, 16 | "diameter": { 17 | "type": "Number", 18 | "value": 203.0 19 | }, 20 | "roughness": { 21 | "type": "Number", 22 | "value": 72.4549 23 | }, 24 | "minorLoss": { 25 | "type": "Number", 26 | "value": 72.4549 27 | }, 28 | "tag": { 29 | "type": "Text", 30 | "value": "DMA1" 31 | }, 32 | "description": { 33 | "type": "Text", 34 | "value": "Free Text" 35 | }, 36 | "startsAt": { 37 | "type": "Text", 38 | "value": "63fe7d79-0d4c-4da9-b7d0-3340efa0656a" 39 | }, 40 | "endsAt": { 41 | "type": "Text", 42 | "value": "1863179e-3768-4480-9167-ff21f870dd19" 43 | }, 44 | "bulkCoeff": { 45 | "type": "Number", 46 | "value": 72.4549 47 | }, 48 | "wallCoeff": { 49 | "type": "Number", 50 | "value": 72.4549 51 | }, 52 | "flow": { 53 | "type": "StructuredValue", 54 | "value": { 55 | "value": 20, 56 | "observedBy": "device-9845A" 57 | } 58 | }, 59 | "velocity": { 60 | "type": "StructuredValue", 61 | "value": { 62 | "value": 2, 63 | "observedBy": "device-9845A" 64 | } 65 | }, 66 | "quality": { 67 | "type": "StructuredValue", 68 | "value": { 69 | "value": 0.5, 70 | "observedBy": "device-9845A" 71 | } 72 | } 73 | } -------------------------------------------------------------------------------- /Pipe/examples/example-normalized.json.csv: -------------------------------------------------------------------------------- 1 | "id_", "type_", "initialStatus__type_", "initialStatus__value_", "status__type_", "status__value_", "length__type_", "length__value_", "diameter__type_", "diameter__value_", "roughness__type_", "roughness__value_", "minorLoss__type_", "minorLoss__value_", "tag__type_", "tag__value_", "description__type_", "description__value_", "startsAt__type_", "startsAt__value_", "endsAt__type_", "endsAt__value_", "bulkCoeff__type_", "bulkCoeff__value_", "wallCoeff__type_", "wallCoeff__value_", "flow__type_", "flow__value__value_", "flow__value__observedBy_", "velocity__type_", "velocity__value__value_", "velocity__value__observedBy_", "quality__type_", "quality__value__value_", "quality__value__observedBy_" 2 | "74azsty-70d4l-4da9-b7d0-3340ef655nnb", "Pipe", "Text", "OPEN", "Text", "OPEN", "Number", "52.9", "Number", "203.0", "Number", "72.4549", "Number", "72.4549", "Text", "DMA1", "Text", "Free Text", "Text", "63fe7d79-0d4c-4da9-b7d0-3340efa0656a", "Text", "1863179e-3768-4480-9167-ff21f870dd19", "Number", "72.4549", "Number", "72.4549", "StructuredValue", "20", "device-9845A", "StructuredValue", "2", "device-9845A", "StructuredValue", "0.5", "device-9845A" -------------------------------------------------------------------------------- /Pipe/examples/example-normalized.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "id": "urn:ngsi-ld:Pipe:74azsty-70d4l-4da9-b7d0-3340ef655nnb", 3 | "type": "Pipe", 4 | "bulkCoeff": { 5 | "type": "Property", 6 | "value": 72.4549, 7 | "unitCode": "E91" 8 | }, 9 | "description": { 10 | "type": "Property", 11 | "value": "Free Text" 12 | }, 13 | "diameter": { 14 | "type": "Property", 15 | "value": 203.0, 16 | "unitCode": "MMT" 17 | }, 18 | "endsAt": { 19 | "type": "Relationship", 20 | "object": "urn:ngsi-ld:Reservoir:1863179e-3768-4480-9167-ff21f870dd19" 21 | }, 22 | "flow": { 23 | "type": "Property", 24 | "value": { 25 | "type": "Property", 26 | "value": 20, 27 | "unitCode": "G51" 28 | }, 29 | "observedBy": { 30 | "type": "Relationship", 31 | "object": "urn:ngsi-ld:Device:device-9845A" 32 | } 33 | }, 34 | "initialStatus": { 35 | "type": "Property", 36 | "value": "OPEN" 37 | }, 38 | "length": { 39 | "type": "Property", 40 | "value": 52.9, 41 | "unitCode": "MTR" 42 | }, 43 | "minorLoss": { 44 | "type": "Property", 45 | "value": 72.4549, 46 | "unitCode": "C62" 47 | }, 48 | "quality": { 49 | "type": "Property", 50 | "value": { 51 | "type": "Property", 52 | "value": 0.5, 53 | "unitCode": "F27" 54 | }, 55 | "observedBy": { 56 | "type": "Relationship", 57 | "object": "urn:ngsi-ld:Device:device-9845A" 58 | } 59 | }, 60 | "roughness": { 61 | "type": "Property", 62 | "value": 72.4549, 63 | "unitCode": "C62" 64 | }, 65 | "startsAt": { 66 | "type": "Relationship", 67 | "object": "urn:ngsi-ld:Junction:63fe7d79-0d4c-4da9-b7d0-3340efa0656a" 68 | }, 69 | "status": { 70 | "type": "Property", 71 | "value": "OPEN" 72 | }, 73 | "tag": { 74 | "type": "Property", 75 | "value": "DMA1" 76 | }, 77 | "velocity": { 78 | "type": "Property", 79 | "value": { 80 | "type": "Property", 81 | "value": 2, 82 | "unitCode": "MTS" 83 | }, 84 | "observedBy": { 85 | "type": "Relationship", 86 | "object": "urn:ngsi-ld:Device:device-9845A" 87 | } 88 | }, 89 | "vertices": { 90 | "type": "GeoProperty", 91 | "value": { 92 | "type": "MultiPoint", 93 | "coordinates": [ 94 | [ 95 | 24.40623, 96 | 60.17966 97 | ], 98 | [ 99 | 24.50623, 100 | 60.27966 101 | ] 102 | ] 103 | } 104 | }, 105 | "wallCoeff": { 106 | "type": "Property", 107 | "value": 72.4549, 108 | "unitCode": "RRC" 109 | }, 110 | "@context": [ 111 | "https://raw.githubusercontent.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/master/context.jsonld" 112 | ] 113 | } -------------------------------------------------------------------------------- /Pipe/examples/example-normalized.jsonld.csv: -------------------------------------------------------------------------------- 1 | "id_", "type_", "bulkCoeff__type_", "bulkCoeff__value_", "bulkCoeff__unitCode_", "description__type_", "description__value_", "diameter__type_", "diameter__value_", "diameter__unitCode_", "endsAt__type_", "endsAt__object_", "flow__type_", "flow__value__type_", "flow__value__value_", "flow__value__unitCode_", "flow__observedBy__type_", "flow__observedBy__object_", "initialStatus__type_", "initialStatus__value_", "length__type_", "length__value_", "length__unitCode_", "minorLoss__type_", "minorLoss__value_", "minorLoss__unitCode_", "quality__type_", "quality__value__type_", "quality__value__value_", "quality__value__unitCode_", "quality__observedBy__type_", "quality__observedBy__object_", "roughness__type_", "roughness__value_", "roughness__unitCode_", "startsAt__type_", "startsAt__object_", "status__type_", "status__value_", "tag__type_", "tag__value_", "velocity__type_", "velocity__value__type_", "velocity__value__value_", "velocity__value__unitCode_", "velocity__observedBy__type_", "velocity__observedBy__object_", "vertices__type_", "vertices__value__type_", "vertices__value__coordinates__0__0_", "vertices__value__coordinates__0__1_", "vertices__value__coordinates__1__0_", "vertices__value__coordinates__1__1_", "wallCoeff__type_", "wallCoeff__value_", "wallCoeff__unitCode_", "@context__0_" 2 | "urn:ngsi-ld:Pipe:74azsty-70d4l-4da9-b7d0-3340ef655nnb", "Pipe", "Property", "72.4549", "E91", "Property", "Free Text", "Property", "203.0", "MMT", "Relationship", "urn:ngsi-ld:Reservoir:1863179e-3768-4480-9167-ff21f870dd19", "Property", "Property", "20", "G51", "Relationship", "urn:ngsi-ld:Device:device-9845A", "Property", "OPEN", "Property", "52.9", "MTR", "Property", "72.4549", "C62", "Property", "Property", "0.5", "F27", "Relationship", "urn:ngsi-ld:Device:device-9845A", "Property", "72.4549", "C62", "Relationship", "urn:ngsi-ld:Junction:63fe7d79-0d4c-4da9-b7d0-3340efa0656a", "Property", "OPEN", "Property", "DMA1", "Property", "Property", "2", "MTS", "Relationship", "urn:ngsi-ld:Device:device-9845A", "GeoProperty", "MultiPoint", "24.40623", "60.17966", "24.50623", "60.27966", "Property", "72.4549", "RRC", "https://raw.githubusercontent.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/master/context.jsonld" -------------------------------------------------------------------------------- /Pipe/examples/example.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "74azsty-70d4l-4da9-b7d0-3340ef655nnb", 3 | "type": "Pipe", 4 | "initialStatus": "OPEN", 5 | "status": "OPEN", 6 | "length": 52.9, 7 | "diameter": 203.0, 8 | "roughness": 72.4549, 9 | "minorLoss": 72.4549, 10 | "tag": "DMA1", 11 | "description": "Free Text", 12 | "startsAt": "ngsi:63fe7d79-0d4c-4da9-b7d0-3340efa0656a", 13 | "endsAt": "ngsi:1863179e-3768-4480-9167-ff21f870dd19", 14 | "bulkCoeff": 72.4549, 15 | "wallCoeff": 72.4549 16 | } -------------------------------------------------------------------------------- /Pipe/examples/example.json.csv: -------------------------------------------------------------------------------- 1 | "id_", "type_", "initialStatus_", "status_", "length_", "diameter_", "roughness_", "minorLoss_", "tag_", "description_", "startsAt_", "endsAt_", "bulkCoeff_", "wallCoeff_" 2 | "74azsty-70d4l-4da9-b7d0-3340ef655nnb", "Pipe", "OPEN", "OPEN", "52.9", "203.0", "72.4549", "72.4549", "DMA1", "Free Text", "ngsi:63fe7d79-0d4c-4da9-b7d0-3340efa0656a", "ngsi:1863179e-3768-4480-9167-ff21f870dd19", "72.4549", "72.4549" -------------------------------------------------------------------------------- /Pipe/examples/example.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "id": "urn:ngsi-ld:Pipe:74azsty-70d4l-4da9-b7d0-3340ef655nnb", 3 | "type": "Pipe", 4 | "bulkCoeff": 72.4549, 5 | "description": "Free Text", 6 | "diameter": 203.0, 7 | "endsAt": "urn:ngsi-ld:Reservoir:1863179e-3768-4480-9167-ff21f870dd19", 8 | "initialStatus": "OPEN", 9 | "length": 52.9, 10 | "minorLoss": 72.4549, 11 | "roughness": 72.4549, 12 | "startsAt": "urn:ngsi-ld:Junction:63fe7d79-0d4c-4da9-b7d0-3340efa0656a", 13 | "status": "OPEN", 14 | "tag": "DMA1", 15 | "wallCoeff": 72.4549, 16 | "@context": [ 17 | "https://raw.githubusercontent.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/master/context.jsonld" 18 | ] 19 | } -------------------------------------------------------------------------------- /Pipe/examples/example.jsonld.csv: -------------------------------------------------------------------------------- 1 | "id_", "type_", "bulkCoeff_", "createdAt_", "description_", "diameter_", "endsAt_", "initialStatus_", "length_", "minorLoss_", "modifiedAt_", "roughness_", "startsAt_", "status_", "tag_", "wallCoeff_", "@context__0_" 2 | "urn:ngsi-ld:Pipe:74azsty-70d4l-4da9-b7d0-3340ef655nnb", "Pipe", "72.4549", "2020-02-20T15:42:00Z", "Free Text", "203.0", "urn:ngsi-ld:Reservoir:1863179e-3768-4480-9167-ff21f870dd19", "OPEN", "52.9", "72.4549", "2020-02-20T15:45:00Z", "72.4549", "urn:ngsi-ld:Junction:63fe7d79-0d4c-4da9-b7d0-3340efa0656a", "OPEN", "DMA1", "72.4549", "https://raw.githubusercontent.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/master/context.jsonld" -------------------------------------------------------------------------------- /Pipe/notes.yaml: -------------------------------------------------------------------------------- 1 | notesHeader: 2 | 3 | notesMiddle: 4 | 5 | notesFooter: 6 | -------------------------------------------------------------------------------- /Pipe/schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://json-schema.org/draft/2020-12/schema", 3 | "modelTags": "FIWARE4WATER", 4 | "$schemaVersion": "0.0.1", 5 | "$id": "https://smart-data-models.github.io/dataModel.WaterDistributionManagementEPANET/Pipe/schema.json", 6 | "title": "Smart Data Models. WaterNetworkManagementEPANET - Pipe", 7 | "description": "This entity contains a harmonised description of a generic pipe made for the Water Network Management domain. This entity is primarily associated with the water management vertical and related IoT applications.", 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 | "Pipe" 22 | ], 23 | "description": "Property. NGSI-LD Entity Type. It has to be Pipe" 24 | }, 25 | "tag": { 26 | "$ref": "https://raw.githubusercontent.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/master/WaterNetworkManagement-schema.json#/definitions/tag" 27 | }, 28 | "initialStatus": { 29 | "$ref": "https://raw.githubusercontent.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/master/WaterNetworkManagement-schema.json#/definitions/initialStatus" 30 | }, 31 | "length": { 32 | "type": "number", 33 | "description": "Property. Model:'https://schema.org/Number'. Units:'Metre'. The actual length of the pipe. All units are accepted in [CEFACT](https://www.unece.org/cefact.html) code" 34 | }, 35 | "diameter": { 36 | "type": "number", 37 | "description": "Property. Model:'https://schema.org/Number'. Units:'Millimetre'. The pipe diameter" 38 | }, 39 | "roughness": { 40 | "type": "number", 41 | "description": "Property. Model:'https://schema.org/Number'. Units:'No unit'. The roughness coefficient of the Pipe" 42 | }, 43 | "minorLoss": { 44 | "type": "number", 45 | "description": "Property. Model:'https://schema.org/Number'. Units:'No unit'. Unitless minor loss coefficient associated with bends, fittings, etc" 46 | }, 47 | "status": { 48 | "$ref": "https://raw.githubusercontent.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/master/WaterNetworkManagement-schema.json#/definitions/status" 49 | }, 50 | "startsAt": { 51 | "type": "string", 52 | "format": "uri", 53 | "description": "Relationship. The ID of the node where the pipe begins" 54 | }, 55 | "endsAt": { 56 | "type": "string", 57 | "format": "uri", 58 | "description": "Relationship. The ID of the node where the pipe ends" 59 | }, 60 | "wallCoeff": { 61 | "type": "number", 62 | "description": "Property. Model:'https://schema.org/Number'. Units:'mg/m\u00b2/day'. The wall reaction coefficient for the pipe. Use a positive value for growth and a negative value for decay. All units are accepted in [CEFACT](https://www.unece.org/cefact.html) code" 63 | }, 64 | "bulkCoeff": { 65 | "type": "number", 66 | "description": "Property. Model:'https://schema.org/Number'. Units:'reciprocal day' The bulk reaction coefficient for the pipe. Use a positive value for growth and a negative value for decay. All units are accepted in [CEFACT](https://www.unece.org/cefact.html) code" 67 | }, 68 | "vertices": { 69 | "oneOf": [ 70 | { 71 | "$ref": "https://geojson.org/schema/MultiPoint.json" 72 | }, 73 | { 74 | "$ref": "https://geojson.org/schema/Point.json" 75 | } 76 | ], 77 | "description": "Geoproperty. Coordinates of all vertices in the pipe, ordered from the startsAt node to the endsAt node and encoded as a GeoJSON " 78 | }, 79 | "flow": { 80 | "$ref": "https://raw.githubusercontent.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/master/WaterNetworkManagement-schema.json#/definitions/flow" 81 | }, 82 | "velocity": { 83 | "$ref": "https://raw.githubusercontent.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/master/WaterNetworkManagement-schema.json#/definitions/velocity" 84 | }, 85 | "quality": { 86 | "$ref": "https://raw.githubusercontent.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/master/WaterNetworkManagement-schema.json#/definitions/quality" 87 | } 88 | } 89 | } 90 | ], 91 | "required": [ 92 | "id", 93 | "type" 94 | ] 95 | } -------------------------------------------------------------------------------- /Pipe/schema.sql: -------------------------------------------------------------------------------- 1 | /* (Beta) Export of data model Pipe of the subject dataModel.WaterDistributionManagementEPANET for a PostgreSQL database. Pending translation of enumerations and multityped attributes */ 2 | CREATE TYPE initialStatus_type AS ENUM ('OPEN','CLOSED','CV');CREATE TYPE status_type AS ENUM ('OPEN','CLOSED','CV');CREATE TYPE Pipe_type AS ENUM ('Pipe'); 3 | CREATE TABLE Pipe (address JSON, alternateName TEXT, areaServed TEXT, bulkCoeff NUMERIC, dataProvider TEXT, dateCreated TIMESTAMP, dateModified TIMESTAMP, description TEXT, diameter NUMERIC, endsAt TEXT, flow JSON, id TEXT PRIMARY KEY, initialStatus initialStatus_type, length NUMERIC, location JSON, minorLoss NUMERIC, name TEXT, owner JSON, quality JSON, roughness NUMERIC, seeAlso JSON, source TEXT, startsAt TEXT, status status_type, tag TEXT, type Pipe_type, velocity JSON, vertices JSON, wallCoeff NUMERIC); -------------------------------------------------------------------------------- /Pipe/swagger.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | # Copyleft (c) 2022 Contributors to Smart Data Models initiative 3 | # 4 | 5 | 6 | components: 7 | schemas: 8 | Pipe: 9 | $ref: "https://smart-data-models.github.io/dataModel.WaterDistributionManagementEPANET/Pipe/model.yaml#/Pipe" 10 | info: 11 | description: | 12 | This entity contains a harmonised description of a generic pipe made for the Water Network Management domain. This entity is primarily associated with the water management vertical and related IoT applications. 13 | title: Pipe 14 | version: "0.0.1" 15 | openapi: "3.0.0" 16 | 17 | paths: 18 | /ngsi-ld/v1/entities: 19 | get: 20 | description: "Retrieve a set of entities which matches a specific query from an NGSI-LD system" 21 | parameters: 22 | - 23 | in: query 24 | name: type 25 | required: true 26 | schema: 27 | enum: 28 | - Pipe 29 | type: string 30 | responses: 31 | ? "200" 32 | : 33 | content: 34 | application/ld+json: 35 | examples: 36 | keyvalues: 37 | summary: "Key-Values Pairs" 38 | value: 39 | - 40 | $ref: "https://smart-data-models.github.io/dataModel.WaterDistributionManagementEPANET/Pipe/examples/example.json" 41 | normalized: 42 | summary: "Normalized NGSI-LD" 43 | value: 44 | - 45 | $ref: "https://smart-data-models.github.io/dataModel.WaterDistributionManagementEPANET/Pipe/examples/example-normalized.jsonld" 46 | description: OK 47 | tags: 48 | - ngsi-ld 49 | tags: 50 | - 51 | description: "NGSI-LD Linked-data Format" 52 | name: ngsi-ld 53 | -------------------------------------------------------------------------------- /Pump/ADOPTERS.yaml: -------------------------------------------------------------------------------- 1 | description: This is a compilation list of the current adopters of the data model Pump of the Subject dataModel.WaterNetworkManagementEPANET. All fields are non mandatory. More info at https://smart-data-models.github.io/data-models/templates/dataModel/CURRENT_ADOPTERS.yaml 2 | currentAdopters: 3 | - 4 | adopter: 5 | description: 6 | mail: 7 | organization: 8 | project: 9 | comments: 10 | startDate: 11 | -------------------------------------------------------------------------------- /Pump/README.md: -------------------------------------------------------------------------------- 1 | [![Smart Data Models](https://smartdatamodels.org/wp-content/uploads/2022/01/SmartDataModels_logo.png "Logo")](https://smartdatamodels.org) 2 | # Pump 3 | Version: 0.0.1 4 | 5 | ## Description 6 | 7 | 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. 8 | ### Specification 9 | 10 | Link to the [interactive specification](https://swagger.lab.fiware.org/?url=https://smart-data-models.github.io/dataModel.WaterDistributionManagementEPANET/Pump/swagger.yaml) 11 | 12 | Link to the [specification](https://github.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/blob/master/Pump/doc/spec.md) 13 | 14 | Enlace a la [Especificación en español](https://github.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/blob/master/Pump/doc/spec_ES.md) 15 | 16 | Lien vers le [spécification en français](https://github.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/blob/master/Pump/doc/spec_FR.md) 17 | 18 | Link zur [deutschen Spezifikation](https://github.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/blob/master/Pump/doc/spec_DE.md) 19 | 20 | Link alla [specifica](https://github.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/blob/master/Pump/doc/spec_IT.md) 21 | 22 | [仕様へのリンク](https://github.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/blob/master/Pump/doc/spec_JA.md) 23 | 24 | [链接到规范](https://github.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/blob/master/Pump/doc/spec_ZH.md) 25 | 26 | [사양 링크](https://github.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/blob/master/Pump/doc/spec_KO.md) 27 | ### Examples 28 | 29 | Link to the [example](https://smart-data-models.github.io/dataModel.WaterDistributionManagementEPANET/Pump/examples/example.json) (keyvalues) for NGSI v2 30 | 31 | Link to the [example](https://smart-data-models.github.io/dataModel.WaterDistributionManagementEPANET/Pump/examples/example.jsonld) (keyvalues) for NGSI-LD 32 | 33 | Link to the [example](https://smart-data-models.github.io/dataModel.WaterDistributionManagementEPANET/Pump/examples/example-normalized.json) (normalized) for NGSI-V2 34 | 35 | Link to the [example](https://smart-data-models.github.io/dataModel.WaterDistributionManagementEPANET/Pump/examples/example-normalized.jsonld) (normalized) for NGSI-LD 36 | 37 | Link to the [example](https://github.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/blob/master/Pump/examples/example.json.csv) (keyvalues) for NGSI v2 in CSV format 38 | 39 | Link to the [example](https://github.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/blob/master/Pump/examples/example.jsonld.csv) (keyvalues) for NGSI-LD in CSV format 40 | 41 | Link to the [example](https://github.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/blob/master/Pump/examples/example-normalized.json.csv) (normalized) for NGSI-V2 in CSV format 42 | 43 | Link to the [example](https://github.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/blob/master/Pump/examples/example-normalized.jsonld.csv) (normalized) for NGSI-LD in CSV format 44 | ### Dynamic Examples generation 45 | 46 | Link to the [Generator](https://smartdatamodels.org/extra/ngsi-ld_generator.php?schemaUrl=https://raw.githubusercontent.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/master/Pump/schema.json&email=info@smartdatamodels.org) of NGSI-LD normalized payloads compliant with this data model. Refresh for new values 47 | 48 | Link to the [Generator](https://smartdatamodels.org/extra/ngsi-ld_generator_keyvalues.php?schemaUrl=https://raw.githubusercontent.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/master/Pump/schema.json&email=info@smartdatamodels.org) of NGSI-LD keyvalues payloads compliant with this data model. Refresh for new values 49 | 50 | Link to the [Generator](https://smartdatamodels.org/extra/geojson_features_generator.php?schemaUrl=https://raw.githubusercontent.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/master/Pump/schema.json&email=info@smartdatamodels.org) of geojson feature format payloads compliant with this data model. Refresh for new values 51 | ### PostgreSQL schema 52 | 53 | Link to the [PostgreSQL schema](https://github.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/blob/master/Pump/schema.sql) of this data model 54 | ### Contribution 55 | 56 | If you have any issue on this data model you can raise an [issue](https://github.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/issues) or contribute with a [PR](https://github.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/pulls) 57 | 58 | If you wish to develop your own data model you can start from [contribution manual](https://bit.ly/contribution_manual). Several services have been developed to help with: 59 | - [Test data model repository](https://smartdatamodels.org/index.php/data-models-contribution-api/) including the schema and example payloads, etc 60 | - [Generate PostgreSQL schema](https://smartdatamodels.org/index.php/sql-service/) to help create a table, create type, etc -------------------------------------------------------------------------------- /Pump/SmartDataModelBadge.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/886407c9fda629bcf73e1656c71eb12ff6157721/Pump/SmartDataModelBadge.png -------------------------------------------------------------------------------- /Pump/code/README.md: -------------------------------------------------------------------------------- 1 | # Pump 2 | 3 | ### List of code samples 4 | 5 | 6 | 7 | 8 | [code_for_using_dataModel.WaterDistributionManagementEPANET_Pump.py](https://github.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/blob/master/Pump/code/code_for_using_dataModel.WaterDistributionManagementEPANET_Pump.py) 9 | 10 | 11 | 12 | 13 | ### Contribution 14 | You can raise an [issue](https://github.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/issues) or submit your [PR](https://github.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/pulls) on existing data models 15 | -------------------------------------------------------------------------------- /Pump/examples/example-normalized.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "85zhnf58-0d4c-h4g854g-b7d0-3310klm", 3 | "type": "Pump", 4 | "initialStatus": { 5 | "type": "Text", 6 | "value": "OPEN" 7 | }, 8 | "status": { 9 | "type": "Text", 10 | "value": "OPEN" 11 | }, 12 | "power": { 13 | "type": "Number", 14 | "value": 100 15 | }, 16 | "speed": { 17 | "type": "Number", 18 | "value": 1.2 19 | }, 20 | "startsAt": { 21 | "type": "Text", 22 | "value": "63fe7d79-0d4c-4da9-b7d0-3340efa0656a" 23 | }, 24 | "endsAt": { 25 | "type": "Text", 26 | "value": "1863179e-3768-4480-9167-ff21f870dd19" 27 | }, 28 | "tag": { 29 | "type": "Text", 30 | "value": "DMA1" 31 | }, 32 | "pumpPattern": { 33 | "type": "Text", 34 | "value": "fbcb5fc8-8ca3-4533-a2eb-34bc89262190" 35 | }, 36 | "efficCurve": { 37 | "type": "Text", 38 | "value": "fbcb5fc8-8ca3-4533-a2eb-34bc89262190" 39 | }, 40 | "energyPrice": { 41 | "type": "Number", 42 | "value": 0.8 43 | }, 44 | "energyPattern": { 45 | "type": "Text", 46 | "value": "fbcb5fc8-8ca3-4533-a2eb-34bc89262190" 47 | }, 48 | "flow": { 49 | "type": "StructuredValue", 50 | "value": { 51 | "value": 20, 52 | "observedBy": "device-9845A" 53 | } 54 | }, 55 | "velocity": { 56 | "type": "StructuredValue", 57 | "value": { 58 | "value": 2, 59 | "observedBy": "device-9845A" 60 | } 61 | }, 62 | "quality": { 63 | "type": "StructuredValue", 64 | "value": { 65 | "value": 0.5, 66 | "observedBy": "device-9845A" 67 | } 68 | }, 69 | "energyUse": { 70 | "type": "StructuredValue", 71 | "value": { 72 | "value": 50, 73 | "observedBy": "device-9845A" 74 | } 75 | } 76 | } -------------------------------------------------------------------------------- /Pump/examples/example-normalized.json.csv: -------------------------------------------------------------------------------- 1 | "id_", "type_", "initialStatus__type_", "initialStatus__value_", "status__type_", "status__value_", "power__type_", "power__value_", "speed__type_", "speed__value_", "startsAt__type_", "startsAt__value_", "endsAt__type_", "endsAt__value_", "tag__type_", "tag__value_", "pumpPattern__type_", "pumpPattern__value_", "efficCurve__type_", "efficCurve__value_", "energyPrice__type_", "energyPrice__value_", "energyPattern__type_", "energyPattern__value_", "flow__type_", "flow__value__value_", "flow__value__observedBy_", "velocity__type_", "velocity__value__value_", "velocity__value__observedBy_", "quality__type_", "quality__value__value_", "quality__value__observedBy_", "energyUse__type_", "energyUse__value__value_", "energyUse__value__observedBy_" 2 | "85zhnf58-0d4c-h4g854g-b7d0-3310klm", "Pump", "Text", "OPEN", "Text", "OPEN", "Number", "100", "Number", "1.2", "Text", "63fe7d79-0d4c-4da9-b7d0-3340efa0656a", "Text", "1863179e-3768-4480-9167-ff21f870dd19", "Text", "DMA1", "Text", "fbcb5fc8-8ca3-4533-a2eb-34bc89262190", "Text", "fbcb5fc8-8ca3-4533-a2eb-34bc89262190", "Number", "0.8", "Text", "fbcb5fc8-8ca3-4533-a2eb-34bc89262190", "StructuredValue", "20", "device-9845A", "StructuredValue", "2", "device-9845A", "StructuredValue", "0.5", "device-9845A", "StructuredValue", "50", "device-9845A" -------------------------------------------------------------------------------- /Pump/examples/example-normalized.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "id": "urn:ngsi-ld:Pump:85zhnf58-0d4c-h4g854g-b7d0-3310klm", 3 | "type": "Pump", 4 | "efficCurve": { 5 | "type": "Relationship", 6 | "object": "urn:ngsi-ld:Curve:fbcb5fc8-8ca3-4533-a2eb-34bc89262190" 7 | }, 8 | "endsAt": { 9 | "type": "Relationship", 10 | "object": "urn:ngsi-ld:Reservoir:1863179e-3768-4480-9167-ff21f870dd19" 11 | }, 12 | "energyPattern": { 13 | "type": "Relationship", 14 | "object": "urn:ngsi-ld:Pattern:fbcb5fc8-8ca3-4533-a2eb-34bc89262190" 15 | }, 16 | "energyPrice": { 17 | "type": "Property", 18 | "value": 0.8, 19 | "unitCode": "C62" 20 | }, 21 | "energyUse": { 22 | "type": "Property", 23 | "value": { 24 | "type": "Property", 25 | "value": 50, 26 | "unitCode": "KWT" 27 | }, 28 | "observedBy": { 29 | "type": "Relationship", 30 | "object": "urn:ngsi-ld:Device:device-9845A" 31 | } 32 | }, 33 | "flow": { 34 | "type": "Property", 35 | "value": { 36 | "value": 20, 37 | "unitCode": "G51" 38 | }, 39 | "observedBy": { 40 | "object": "urn:ngsi-ld:Device:device-9845A", 41 | "type": "Relationship" 42 | } 43 | }, 44 | "initialStatus": { 45 | "type": "Property", 46 | "value": "OPEN" 47 | }, 48 | "power": { 49 | "type": "Property", 50 | "value": 100, 51 | "unitCode": "KWT" 52 | }, 53 | "pumpPattern": { 54 | "type": "Relationship", 55 | "object": "urn:ngsi-ld:Pattern:fbcb5fc8-8ca3-4533-a2eb-34bc89262190" 56 | }, 57 | "quality": { 58 | "type": "Property", 59 | "value": { 60 | "type": "Property", 61 | "value": 0.5, 62 | "unitCode": "F27" 63 | }, 64 | "observedBy": { 65 | "type": "Relationship", 66 | "object": "urn:ngsi-ld:Device:device-9845A" 67 | } 68 | }, 69 | "speed": { 70 | "type": "Property", 71 | "value": 1.2, 72 | "unitCode": "MTS" 73 | }, 74 | "startsAt": { 75 | "type": "Relationship", 76 | "object": "urn:ngsi-ld:Junction:63fe7d79-0d4c-4da9-b7d0-3340efa0656a" 77 | }, 78 | "status": { 79 | "type": "Property", 80 | "value": "OPEN" 81 | }, 82 | "tag": { 83 | "type": "Property", 84 | "value": "DMA1" 85 | }, 86 | "velocity": { 87 | "type": "Property", 88 | "value": { 89 | "type": "Property", 90 | "value": 2, 91 | "unitCode": "MTS" 92 | }, 93 | "observedBy": { 94 | "type": "Relationship", 95 | "object": "urn:ngsi-ld:Device:device-9845A" 96 | } 97 | }, 98 | "vertices": { 99 | "type": "GeoProperty", 100 | "value": { 101 | "type": "MultiPoint", 102 | "coordinates": [ 103 | [ 104 | 24.40623, 105 | 60.17966 106 | ], 107 | [ 108 | 24.50623, 109 | 60.27966 110 | ] 111 | ] 112 | } 113 | }, 114 | "@context": [ 115 | "https://raw.githubusercontent.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/master/context.jsonld" 116 | ] 117 | } -------------------------------------------------------------------------------- /Pump/examples/example-normalized.jsonld.csv: -------------------------------------------------------------------------------- 1 | "id_", "type_", "efficCurve__type_", "efficCurve__object_", "endsAt__type_", "endsAt__object_", "energyPattern__type_", "energyPattern__object_", "energyPrice__type_", "energyPrice__value_", "energyPrice__unitCode_", "energyUse__type_", "energyUse__value__type_", "energyUse__value__value_", "energyUse__value__unitCode_", "energyUse__observedBy__type_", "energyUse__observedBy__object_", "flow__type_", "flow__value__value_", "flow__value__unitCode_", "flow__observedBy__object_", "flow__observedBy__type_", "initialStatus__type_", "initialStatus__value_", "power__type_", "power__value_", "power__unitCode_", "pumpPattern__type_", "pumpPattern__object_", "quality__type_", "quality__value__type_", "quality__value__value_", "quality__value__unitCode_", "quality__observedBy__type_", "quality__observedBy__object_", "speed__type_", "speed__value_", "speed__unitCode_", "startsAt__type_", "startsAt__object_", "status__type_", "status__value_", "tag__type_", "tag__value_", "velocity__type_", "velocity__value__type_", "velocity__value__value_", "velocity__value__unitCode_", "velocity__observedBy__type_", "velocity__observedBy__object_", "vertices__type_", "vertices__value__type_", "vertices__value__coordinates__0__0_", "vertices__value__coordinates__0__1_", "vertices__value__coordinates__1__0_", "vertices__value__coordinates__1__1_", "@context__0_" 2 | "urn:ngsi-ld:Pump:85zhnf58-0d4c-h4g854g-b7d0-3310klm", "Pump", "Relationship", "urn:ngsi-ld:Curve:fbcb5fc8-8ca3-4533-a2eb-34bc89262190", "Relationship", "urn:ngsi-ld:Reservoir:1863179e-3768-4480-9167-ff21f870dd19", "Relationship", "urn:ngsi-ld:Pattern:fbcb5fc8-8ca3-4533-a2eb-34bc89262190", "Property", "0.8", "C62", "Property", "Property", "50", "KWT", "Relationship", "urn:ngsi-ld:Device:device-9845A", "Property", "20", "G51", "urn:ngsi-ld:Device:device-9845A", "Relationship", "Property", "OPEN", "Property", "100", "KWT", "Relationship", "urn:ngsi-ld:Pattern:fbcb5fc8-8ca3-4533-a2eb-34bc89262190", "Property", "Property", "0.5", "F27", "Relationship", "urn:ngsi-ld:Device:device-9845A", "Property", "1.2", "MTS", "Relationship", "urn:ngsi-ld:Junction:63fe7d79-0d4c-4da9-b7d0-3340efa0656a", "Property", "OPEN", "Property", "DMA1", "Property", "Property", "2", "MTS", "Relationship", "urn:ngsi-ld:Device:device-9845A", "GeoProperty", "MultiPoint", "24.40623", "60.17966", "24.50623", "60.27966", "https://raw.githubusercontent.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/master/context.jsonld" -------------------------------------------------------------------------------- /Pump/examples/example.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "85zhnf58-0d4c-h4g854g-b7d0-3310klm", 3 | "type": "Pump", 4 | "initialStatus": "OPEN", 5 | "status": "OPEN", 6 | "power": 100, 7 | "speed": 1.2, 8 | "startsAt": "63fe7d79-0d4c-4da9-b7d0-3340efa0656a", 9 | "endsAt": "1863179e-3768-4480-9167-ff21f870dd19", 10 | "tag": "DMA1", 11 | "pumpPattern": "fbcb5fc8-8ca3-4533-a2eb-34bc89262190", 12 | "efficCurve": "fbcb5fc8-8ca3-4533-a2eb-34bc89262190", 13 | "energyPrice": 0.8, 14 | "energyPattern": "fbcb5fc8-8ca3-4533-a2eb-34bc89262190" 15 | } -------------------------------------------------------------------------------- /Pump/examples/example.json.csv: -------------------------------------------------------------------------------- 1 | "id_", "type_", "initialStatus_", "status_", "power_", "speed_", "startsAt_", "endsAt_", "tag_", "pumpPattern_", "efficCurve_", "energyPrice_", "energyPattern_" 2 | "85zhnf58-0d4c-h4g854g-b7d0-3310klm", "Pump", "OPEN", "OPEN", "100", "1.2", "63fe7d79-0d4c-4da9-b7d0-3340efa0656a", "1863179e-3768-4480-9167-ff21f870dd19", "DMA1", "fbcb5fc8-8ca3-4533-a2eb-34bc89262190", "fbcb5fc8-8ca3-4533-a2eb-34bc89262190", "0.8", "fbcb5fc8-8ca3-4533-a2eb-34bc89262190" -------------------------------------------------------------------------------- /Pump/examples/example.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "id": "urn:ngsi-ld:Pump:85zhnf58-0d4c-h4g854g-b7d0-3310klm", 3 | "type": "Pump", 4 | "efficCurve": "urn:ngsi-ld:Curve:fbcb5fc8-8ca3-4533-a2eb-34bc89262190", 5 | "endsAt": "urn:ngsi-ld:Reservoir:1863179e-3768-4480-9167-ff21f870dd19", 6 | "energyPattern": "urn:ngsi-ld:Pattern:fbcb5fc8-8ca3-4533-a2eb-34bc89262190", 7 | "energyPrice": 0.8, 8 | "initialStatus": "OPEN", 9 | "power": 100, 10 | "pumpPattern": "urn:ngsi-ld:Pattern:fbcb5fc8-8ca3-4533-a2eb-34bc89262190", 11 | "speed": 1.2, 12 | "startsAt": "urn:ngsi-ld:Junction:63fe7d79-0d4c-4da9-b7d0-3340efa0656a", 13 | "status": "OPEN", 14 | "tag": "DMA1", 15 | "@context": [ 16 | "https://raw.githubusercontent.com/smart-data-models/data-models/master/context.jsonld", 17 | "https://raw.githubusercontent.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/master/context.jsonld" 18 | ] 19 | } -------------------------------------------------------------------------------- /Pump/examples/example.jsonld.csv: -------------------------------------------------------------------------------- 1 | "id_", "type_", "createdAt_", "efficCurve_", "endsAt_", "energyPattern_", "energyPrice_", "initialStatus_", "modifiedAt_", "power_", "pumpPattern_", "speed_", "startsAt_", "status_", "tag_", "@context__0_", "@context__1_" 2 | "urn:ngsi-ld:Pump:85zhnf58-0d4c-h4g854g-b7d0-3310klm", "Pump", "2020-03-02T15:42:00Z", "urn:ngsi-ld:Curve:fbcb5fc8-8ca3-4533-a2eb-34bc89262190", "urn:ngsi-ld:Reservoir:1863179e-3768-4480-9167-ff21f870dd19", "urn:ngsi-ld:Pattern:fbcb5fc8-8ca3-4533-a2eb-34bc89262190", "0.8", "OPEN", "2020-03-02T15:45:00Z", "100", "urn:ngsi-ld:Pattern:fbcb5fc8-8ca3-4533-a2eb-34bc89262190", "1.2", "urn:ngsi-ld:Junction:63fe7d79-0d4c-4da9-b7d0-3340efa0656a", "OPEN", "DMA1", "https://raw.githubusercontent.com/smart-data-models/data-models/master/context.jsonld", "https://raw.githubusercontent.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/master/context.jsonld" -------------------------------------------------------------------------------- /Pump/notes.yaml: -------------------------------------------------------------------------------- 1 | notesHeader: 2 | 3 | notesMiddle: 4 | 5 | notesFooter: 6 | -------------------------------------------------------------------------------- /Pump/schema.sql: -------------------------------------------------------------------------------- 1 | /* (Beta) Export of data model Pump of the subject dataModel.WaterDistributionManagementEPANET for a PostgreSQL database. Pending translation of enumerations and multityped attributes */ 2 | CREATE TYPE initialStatus_type AS ENUM ('OPEN','CLOSED','CV');CREATE TYPE status_type AS ENUM ('OPEN','CLOSED','CV');CREATE TYPE Pump_type AS ENUM ('Pump'); 3 | CREATE TABLE Pump (address JSON, alternateName TEXT, areaServed TEXT, dataProvider TEXT, dateCreated TIMESTAMP, dateModified TIMESTAMP, description TEXT, energyPrice NUMERIC, energyUse JSON, flow JSON, headCurve TEXT, id TEXT PRIMARY KEY, initialStatus initialStatus_type, location JSON, name TEXT, owner JSON, power NUMERIC, quality JSON, seeAlso JSON, source TEXT, speed NUMERIC, status status_type, tag TEXT, type Pump_type, velocity JSON, vertices JSON); -------------------------------------------------------------------------------- /Pump/swagger.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | # Copyleft (c) 2022 Contributors to Smart Data Models initiative 3 | # 4 | 5 | 6 | components: 7 | schemas: 8 | Pump: 9 | $ref: "https://smart-data-models.github.io/dataModel.WaterDistributionManagementEPANET/Pump/model.yaml#/Pump" 10 | info: 11 | description: | 12 | 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. 13 | title: Pump 14 | version: "0.0.1" 15 | openapi: "3.0.0" 16 | 17 | paths: 18 | /ngsi-ld/v1/entities: 19 | get: 20 | description: "Retrieve a set of entities which matches a specific query from an NGSI-LD system" 21 | parameters: 22 | - 23 | in: query 24 | name: type 25 | required: true 26 | schema: 27 | enum: 28 | - Pump 29 | type: string 30 | responses: 31 | ? "200" 32 | : 33 | content: 34 | application/ld+json: 35 | examples: 36 | keyvalues: 37 | summary: "Key-Values Pairs" 38 | value: 39 | - 40 | $ref: "https://smart-data-models.github.io/dataModel.WaterDistributionManagementEPANET/Pump/examples/example.json" 41 | normalized: 42 | summary: "Normalized NGSI-LD" 43 | value: 44 | - 45 | $ref: "https://smart-data-models.github.io/dataModel.WaterDistributionManagementEPANET/Pump/examples/example-normalized.jsonld" 46 | description: OK 47 | tags: 48 | - ngsi-ld 49 | tags: 50 | - 51 | description: "NGSI-LD Linked-data Format" 52 | name: ngsi-ld 53 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # dataModel.WaterDistributionManagementEPANET 2 | These data models describe entities useful for dealing with Water WaterNetwork Management data. These entities are primarily derived from the EPANET platform. 3 | 4 | ### List of data models 5 | 6 | The following entity types are available: 7 | - [Curve](https://github.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/blob/master/Curve/README.md). This entity contains a harmonised description of a generic curve made for the Water Network Management domain. This entity is primarily associated with the water management vertical and related IoT applications. 8 | 9 | - [Junction](https://github.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/blob/master/Junction/README.md). This entity contains a harmonised description of a generic junction made for the Water Network Management domain. This entity is primarily associated with the water network management vertical and related IoT applications. 10 | 11 | - [Pattern](https://github.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/blob/master/Pattern/README.md). This entity contains a harmonised description of a generic pattern made for the Water Network Management domain. This entity is primarily associated with the water management vertical and related IoT applications. 12 | 13 | - [Pipe](https://github.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/blob/master/Pipe/README.md). This entity contains a harmonised description of a generic pipe made for the Water Network Management domain. This entity is primarily associated with the water management vertical and related IoT applications. 14 | 15 | - [Pump](https://github.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/blob/master/Pump/README.md). 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. 16 | 17 | - [Reservoir](https://github.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/blob/master/Reservoir/README.md). This entity contains a harmonised description of a generic Reservoir made for the Water Network Management domain. This entity is primarily associated with the water management vertical and related IoT applications. 18 | 19 | - [SimulationResult](https://github.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/blob/master/SimulationResult/README.md). This entity contains a harmonised description of a generic simulation result made for the Water Network Management domain. This entity is primarily associated with the water network management vertical and related IoT applications. 20 | 21 | - [SimulationScenario](https://github.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/blob/master/SimulationScenario/README.md). This entity contains a harmonised description of a generic simulation scenario made for the Water Network Management domain. This entity is primarily associated with the water network management vertical and related IoT applications. 22 | 23 | - [Tank](https://github.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/blob/master/Tank/README.md). This entity contains a harmonised description of a generic tank made for the Water Network Management domain. This entity is primarily associated with the water management vertical and related IoT applications. 24 | 25 | - [Valve](https://github.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/blob/master/Valve/README.md). This entity contains a harmonised description of a generic Valve made for the Water Network Management domain. This entity is primarily associated with the water management vertical and related IoT applications. 26 | 27 | - [WaterNetwork](https://github.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/blob/master/WaterNetwork/README.md). This entity contains a harmonised description of a generic network made for the Water Network Management domain. This entity is primarily associated with the water network management vertical and related IoT applications. 28 | 29 | 30 | 31 | ### Contributors 32 | [Link](https://github.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/blob/master/CONTRIBUTORS.yaml) to the 5 current contributors of the data models of this Subject. 33 | 34 | 35 | ### Contribution 36 | You can raise an [issue](https://github.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/issues) or submit your [PR](https://github.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/pulls) on existing data models 37 | 38 | 39 | -------------------------------------------------------------------------------- /Reservoir/ADOPTERS.yaml: -------------------------------------------------------------------------------- 1 | description: This is a compilation list of the current adopters of the data model Reservoir of the Subject dataModel.WaterNetworkManagementEPANET. All fields are non mandatory. More info at https://smart-data-models.github.io/data-models/templates/dataModel/CURRENT_ADOPTERS.yaml 2 | currentAdopters: 3 | - 4 | adopter: 5 | description: 6 | mail: 7 | organization: 8 | project: 9 | comments: 10 | startDate: 11 | -------------------------------------------------------------------------------- /Reservoir/SmartDataModelBadge.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/886407c9fda629bcf73e1656c71eb12ff6157721/Reservoir/SmartDataModelBadge.png -------------------------------------------------------------------------------- /Reservoir/code/README.md: -------------------------------------------------------------------------------- 1 | # Reservoir 2 | 3 | ### List of code samples 4 | 5 | 6 | 7 | 8 | [code_for_using_dataModel.WaterDistributionManagementEPANET_Reservoir.py](https://github.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/blob/master/Reservoir/code/code_for_using_dataModel.WaterDistributionManagementEPANET_Reservoir.py) 9 | 10 | 11 | 12 | 13 | ### Contribution 14 | You can raise an [issue](https://github.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/issues) or submit your [PR](https://github.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/pulls) on existing data models 15 | -------------------------------------------------------------------------------- /Reservoir/examples/example-geojsonfeature.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "urn:ngsi-ld:Reservoir:1863179e-3768-4480-9167-ff21f870dd19", 3 | "type": "Feature", 4 | "geometry": { 5 | "coordinates": [ 6 | 24.30623, 7 | 60.07966 8 | ], 9 | "type": "Point" 10 | }, 11 | "properties": { 12 | "@context": [ 13 | "https://smartdatamodels.org/context.jsonld" 14 | ], 15 | "createdAt": "2020-03-02T15:42:00Z", 16 | "description": "This entity contains a harmonised description of a Reservoir", 17 | "elevation": 105.8, 18 | "headPattern": "urn:ngsi-ld:Pattern:fbcb5fc8-8ca3-4533", 19 | "initialQuality": 0.5, 20 | "location": { 21 | "coordinates": [ 22 | 24.30623, 23 | 60.07966 24 | ], 25 | "type": "Point" 26 | }, 27 | "modifiedAt": "2020-03-02T15:45:00Z", 28 | "reservoirHead": 59.0, 29 | "sourceCategory": "CategroyX", 30 | "tag": "DMA1", 31 | "type": "Reservoir" 32 | } 33 | } -------------------------------------------------------------------------------- /Reservoir/examples/example-geojsonfeature.json.csv: -------------------------------------------------------------------------------- 1 | "id_", "type_", "geometry__coordinates__0_", "geometry__coordinates__1_", "geometry__type_", "properties__@context__0_", "properties__createdAt_", "properties__description_", "properties__elevation_", "properties__headPattern_", "properties__initialQuality_", "properties__location__coordinates__0_", "properties__location__coordinates__1_", "properties__location__type_", "properties__modifiedAt_", "properties__reservoirHead_", "properties__sourceCategory_", "properties__tag_", "properties__type_" 2 | "urn:ngsi-ld:Reservoir:1863179e-3768-4480-9167-ff21f870dd19", "Feature", "24.30623", "60.07966", "Point", "https://smartdatamodels.org/context.jsonld", "2020-03-02T15:42:00Z", "This entity contains a harmonised description of a Reservoir", "105.8", "urn:ngsi-ld:Pattern:fbcb5fc8-8ca3-4533", "0.5", "24.30623", "60.07966", "Point", "2020-03-02T15:45:00Z", "59.0", "CategroyX", "DMA1", "Reservoir" -------------------------------------------------------------------------------- /Reservoir/examples/example-normalized.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "1863179e-3768-4480-9167-ff21f870dd19", 3 | "type": "Reservoir", 4 | "location": { 5 | "type": "geo:json", 6 | "value": { 7 | "type": "Point", 8 | "coordinates": [ 9 | 24.30623, 10 | 60.07966 11 | ] 12 | } 13 | }, 14 | "reservoirHead": { 15 | "type": "Number", 16 | "value": 59.0 17 | }, 18 | "headPattern": { 19 | "type": "Text", 20 | "value": "fbcb5fc8-8ca3-4533" 21 | }, 22 | "elevation": { 23 | "type": "Number", 24 | "value": 105.8 25 | }, 26 | "description": { 27 | "type": "Text", 28 | "value": "This entity contains a harmonised description of a Reservoir" 29 | }, 30 | "initialQuality": { 31 | "type": "StructuredValue", 32 | "value": { 33 | "observedBy": "device-9845A", 34 | "value": 0.5 35 | } 36 | }, 37 | "sourceCategory": { 38 | "type": "StructuredValue", 39 | "value": { 40 | "value": "CategoryX", 41 | "sourceType": "MASS", 42 | "sourceQuality": 1.2, 43 | "sourcePattern": "fbcb5fc8-8ca3-4533-a2eb-34bc89262190" 44 | } 45 | }, 46 | "tag": { 47 | "type": "Text", 48 | "value": "DMA1" 49 | }, 50 | "pressure": { 51 | "type": "StructuredValue", 52 | "value": { 53 | "value": 20, 54 | "observedBy": "device-9845A" 55 | } 56 | }, 57 | "supply": { 58 | "type": "StructuredValue", 59 | "value": { 60 | "value": 150, 61 | "observedBy": "device-9845A" 62 | } 63 | }, 64 | "head": { 65 | "type": "StructuredValue", 66 | "value": { 67 | "value": 20, 68 | "observedBy": "device-9845A" 69 | } 70 | }, 71 | "quality": { 72 | "type": "StructuredValue", 73 | "value": { 74 | "value": 0.5, 75 | "observedBy": "device-9845A" 76 | } 77 | }, 78 | "sourceMassInflow": { 79 | "type": "StructuredValue", 80 | "value": { 81 | "value": 100, 82 | "observedBy": "device-9845A" 83 | } 84 | } 85 | } -------------------------------------------------------------------------------- /Reservoir/examples/example-normalized.json.csv: -------------------------------------------------------------------------------- 1 | "id_", "type_", "location__type_", "location__value__type_", "location__value__coordinates__0_", "location__value__coordinates__1_", "reservoirHead__type_", "reservoirHead__value_", "headPattern__type_", "headPattern__value_", "elevation__type_", "elevation__value_", "description__type_", "description__value_", "initialQuality__type_", "initialQuality__value__observedBy_", "initialQuality__value__value_", "sourceCategory__type_", "sourceCategory__value__value_", "sourceCategory__value__sourceType_", "sourceCategory__value__sourceQuality_", "sourceCategory__value__sourcePattern_", "tag__type_", "tag__value_", "pressure__type_", "pressure__value__value_", "pressure__value__observedBy_", "supply__type_", "supply__value__value_", "supply__value__observedBy_", "head__type_", "head__value__value_", "head__value__observedBy_", "quality__type_", "quality__value__value_", "quality__value__observedBy_", "sourceMassInflow__type_", "sourceMassInflow__value__value_", "sourceMassInflow__value__observedBy_" 2 | "1863179e-3768-4480-9167-ff21f870dd19", "Reservoir", "geo:json", "Point", "24.30623", "60.07966", "Number", "59.0", "Text", "fbcb5fc8-8ca3-4533", "Number", "105.8", "Text", "This entity contains a harmonised description of a Reservoir", "StructuredValue", "device-9845A", "0.5", "StructuredValue", "CategoryX", "MASS", "1.2", "fbcb5fc8-8ca3-4533-a2eb-34bc89262190", "Text", "DMA1", "StructuredValue", "20", "device-9845A", "StructuredValue", "150", "device-9845A", "StructuredValue", "20", "device-9845A", "StructuredValue", "0.5", "device-9845A", "StructuredValue", "100", "device-9845A" -------------------------------------------------------------------------------- /Reservoir/examples/example-normalized.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "id": "urn:ngsi-ld:Reservoir:1863179e-3768-4480-9167-ff21f870dd19", 3 | "type": "Reservoir", 4 | "description": { 5 | "type": "Property", 6 | "value": "This entity contains a harmonised description of a Reservoir" 7 | }, 8 | "elevation": { 9 | "type": "Property", 10 | "value": 105.8, 11 | "unitCode": "MTR" 12 | }, 13 | "head": { 14 | "type": "Property", 15 | "value": { 16 | "type": "Property", 17 | "value": 20, 18 | "unitCode": "MTR" 19 | }, 20 | "observedBy": { 21 | "type": "Relationship", 22 | "object": "urn:ngsi-ld:Device:device-9845A" 23 | } 24 | }, 25 | "headPattern": { 26 | "type": "Relationship", 27 | "object": "urn:ngsi-ld:Pattern:fbcb5fc8-8ca3-4533" 28 | }, 29 | "initialQuality": { 30 | "type": "Property", 31 | "value": 0.5, 32 | "unitCode": "M1" 33 | }, 34 | "location": { 35 | "type": "GeoProperty", 36 | "value": { 37 | "type": "Point", 38 | "coordinates": [ 39 | 24.30623, 40 | 60.07966 41 | ] 42 | } 43 | }, 44 | "pressure": { 45 | "type": "Property", 46 | "value": { 47 | "type": "Property", 48 | "value": 20, 49 | "unitCode": "MTR" 50 | }, 51 | "observedBy": { 52 | "type": "Relationship", 53 | "object": "urn:ngsi-ld:Device:device-9845A" 54 | } 55 | }, 56 | "quality": { 57 | "type": "Property", 58 | "value": { 59 | "type": "Property", 60 | "value": 0.5, 61 | "unitCode": "M1" 62 | }, 63 | "observedBy": { 64 | "type": "Relationship", 65 | "object": "urn:ngsi-ld:Device:device-9845A" 66 | } 67 | }, 68 | "reservoirHead": { 69 | "type": "Property", 70 | "value": 59.0, 71 | "unitCode": "MTR" 72 | }, 73 | "sourceCategory": { 74 | "type": "Property", 75 | "value": { 76 | "type": "Property", 77 | "value": "CategoryX" 78 | }, 79 | "sourceType": { 80 | "type": "Property", 81 | "value": "MASS" 82 | }, 83 | "sourceQuality": { 84 | "type": "Property", 85 | "value": 1.2, 86 | "unitCode": "M1" 87 | }, 88 | "sourcePattern": { 89 | "type": "Relationship", 90 | "object": "urn:ngsi-ld:Pattern:fbcb5fc8-8ca3-4533-a2eb-34bc89262190" 91 | } 92 | }, 93 | "sourceMassInflow": { 94 | "type": "Property", 95 | "value": { 96 | "type": "Property", 97 | "value": 100, 98 | "unitCode": "F27" 99 | }, 100 | "observedBy": { 101 | "type": "Relationship", 102 | "object": "urn:ngsi-ld:Device:device-9845A" 103 | } 104 | }, 105 | "supply": { 106 | "type": "Property", 107 | "value": { 108 | "type": "Property", 109 | "value": 150, 110 | "unitCode": "LTR" 111 | }, 112 | "observedBy": { 113 | "type": "Relationship", 114 | "object": "urn:ngsi-ld:Device:device-9845A" 115 | } 116 | }, 117 | "tag": { 118 | "type": "Property", 119 | "value": "DMA1" 120 | }, 121 | "@context": [ 122 | "https://raw.githubusercontent.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/master/context.jsonld" 123 | ] 124 | } -------------------------------------------------------------------------------- /Reservoir/examples/example-normalized.jsonld.csv: -------------------------------------------------------------------------------- 1 | "id_", "type_", "description__type_", "description__value_", "elevation__type_", "elevation__value_", "elevation__unitCode_", "head__type_", "head__value__type_", "head__value__value_", "head__value__unitCode_", "head__observedBy__type_", "head__observedBy__object_", "headPattern__type_", "headPattern__object_", "initialQuality__type_", "initialQuality__value_", "initialQuality__unitCode_", "location__type_", "location__value__type_", "location__value__coordinates__0_", "location__value__coordinates__1_", "pressure__type_", "pressure__value__type_", "pressure__value__value_", "pressure__value__unitCode_", "pressure__observedBy__type_", "pressure__observedBy__object_", "quality__type_", "quality__value__type_", "quality__value__value_", "quality__value__unitCode_", "quality__observedBy__type_", "quality__observedBy__object_", "reservoirHead__type_", "reservoirHead__value_", "reservoirHead__unitCode_", "sourceCategory__type_", "sourceCategory__value__type_", "sourceCategory__value__value_", "sourceCategory__sourceType__type_", "sourceCategory__sourceType__value_", "sourceCategory__sourceQuality__type_", "sourceCategory__sourceQuality__value_", "sourceCategory__sourceQuality__unitCode_", "sourceCategory__sourcePattern__type_", "sourceCategory__sourcePattern__object_", "sourceMassInflow__type_", "sourceMassInflow__value__type_", "sourceMassInflow__value__value_", "sourceMassInflow__value__unitCode_", "sourceMassInflow__observedBy__type_", "sourceMassInflow__observedBy__object_", "supply__type_", "supply__value__type_", "supply__value__value_", "supply__value__unitCode_", "supply__observedBy__type_", "supply__observedBy__object_", "tag__type_", "tag__value_", "@context__0_" 2 | "urn:ngsi-ld:Reservoir:1863179e-3768-4480-9167-ff21f870dd19", "Reservoir", "Property", "This entity contains a harmonised description of a Reservoir", "Property", "105.8", "MTR", "Property", "Property", "20", "MTR", "Relationship", "urn:ngsi-ld:Device:device-9845A", "Relationship", "urn:ngsi-ld:Pattern:fbcb5fc8-8ca3-4533", "Property", "0.5", "M1", "GeoProperty", "Point", "24.30623", "60.07966", "Property", "Property", "20", "MTR", "Relationship", "urn:ngsi-ld:Device:device-9845A", "Property", "Property", "0.5", "M1", "Relationship", "urn:ngsi-ld:Device:device-9845A", "Property", "59.0", "MTR", "Property", "Property", "CategoryX", "Property", "MASS", "Property", "1.2", "M1", "Relationship", "urn:ngsi-ld:Pattern:fbcb5fc8-8ca3-4533-a2eb-34bc89262190", "Property", "Property", "100", "F27", "Relationship", "urn:ngsi-ld:Device:device-9845A", "Property", "Property", "150", "LTR", "Relationship", "urn:ngsi-ld:Device:device-9845A", "Property", "DMA1", "https://raw.githubusercontent.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/master/context.jsonld" -------------------------------------------------------------------------------- /Reservoir/examples/example.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "1863179e-3768-4480-9167-ff21f870dd19", 3 | "type": "Reservoir", 4 | "location": { 5 | "type": "Point", 6 | "coordinates": [ 7 | 24.30623, 8 | 60.07966 9 | ] 10 | }, 11 | "reservoirHead": 59.0, 12 | "headPattern": "fbcb5fc8-8ca3-4533", 13 | "elevation": 105.8, 14 | "description": "This entity contains a harmonised description of a Reservoir", 15 | "initialQuality": { 16 | "value": 0.5 17 | }, 18 | "sourceCategory": { 19 | "value": "CategoryX", 20 | "sourceType": "MASS", 21 | "sourceQuality": 1.2, 22 | "sourcePattern": "fbcb5fc8-8ca3-4533-a2eb-34bc89262190" 23 | }, 24 | "tag": "DMA1" 25 | } -------------------------------------------------------------------------------- /Reservoir/examples/example.json.csv: -------------------------------------------------------------------------------- 1 | "id_", "type_", "location__type_", "location__coordinates__0_", "location__coordinates__1_", "reservoirHead_", "headPattern_", "elevation_", "description_", "initialQuality__value_", "sourceCategory__value_", "sourceCategory__sourceType_", "sourceCategory__sourceQuality_", "sourceCategory__sourcePattern_", "tag_" 2 | "1863179e-3768-4480-9167-ff21f870dd19", "Reservoir", "Point", "24.30623", "60.07966", "59.0", "fbcb5fc8-8ca3-4533", "105.8", "This entity contains a harmonised description of a Reservoir", "0.5", "CategoryX", "MASS", "1.2", "fbcb5fc8-8ca3-4533-a2eb-34bc89262190", "DMA1" -------------------------------------------------------------------------------- /Reservoir/examples/example.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "id": "urn:ngsi-ld:Reservoir:1863179e-3768-4480-9167-ff21f870dd19", 3 | "type": "Reservoir", 4 | "description": "This entity contains a harmonised description of a Reservoir", 5 | "elevation": 105.8, 6 | "headPattern": "urn:ngsi-ld:Pattern:fbcb5fc8-8ca3-4533", 7 | "initialQuality": { 8 | "value": 0.5 9 | }, 10 | "location": { 11 | "coordinates": [ 12 | 24.30623, 13 | 60.07966 14 | ], 15 | "type": "Point" 16 | }, 17 | "reservoirHead": 59.0, 18 | "sourceCategory": { 19 | "value": "CategoryX", 20 | "sourceType": "MASS", 21 | "sourceQuality": 1.2, 22 | "sourcePattern": "fbcb5fc8-8ca3-4533-a2eb-34bc89262190" 23 | }, 24 | "tag": "DMA1", 25 | "@context": [ 26 | "https://raw.githubusercontent.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/master/context.jsonld" 27 | ] 28 | } -------------------------------------------------------------------------------- /Reservoir/examples/example.jsonld.csv: -------------------------------------------------------------------------------- 1 | "id_", "type_", "createdAt_", "description_", "elevation_", "headPattern_", "initialQuality__value_", "location__coordinates__0_", "location__coordinates__1_", "location__type_", "modifiedAt_", "reservoirHead_", "sourceCategory__value_", "sourceCategory__sourceType_", "sourceCategory__sourceQuality_", "sourceCategory__sourcePattern_", "tag_", "@context__0_" 2 | "urn:ngsi-ld:Reservoir:1863179e-3768-4480-9167-ff21f870dd19", "Reservoir", "2020-03-02T15:42:00Z", "This entity contains a harmonised description of a Reservoir", "105.8", "urn:ngsi-ld:Pattern:fbcb5fc8-8ca3-4533", "0.5", "24.30623", "60.07966", "Point", "2020-03-02T15:45:00Z", "59.0", "CategoryX", "MASS", "1.2", "fbcb5fc8-8ca3-4533-a2eb-34bc89262190", "DMA1", "https://raw.githubusercontent.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/master/context.jsonld" -------------------------------------------------------------------------------- /Reservoir/notes.yaml: -------------------------------------------------------------------------------- 1 | notesHeader: 2 | 3 | notesMiddle: 4 | 5 | notesFooter: 6 | -------------------------------------------------------------------------------- /Reservoir/schema.sql: -------------------------------------------------------------------------------- 1 | /* (Beta) Export of data model Reservoir of the subject dataModel.WaterDistributionManagementEPANET for a PostgreSQL database. Pending translation of enumerations and multityped attributes */ 2 | CREATE TYPE Reservoir_type AS ENUM ('Reservoir'); 3 | CREATE TABLE Reservoir (address JSON, alternateName TEXT, areaServed TEXT, dataProvider TEXT, dateCreated TIMESTAMP, dateModified TIMESTAMP, description TEXT, elevation NUMERIC, head JSON, id TEXT PRIMARY KEY, initialQuality JSON, location JSON, name TEXT, owner JSON, pressure JSON, quality JSON, reservoirHead NUMERIC, seeAlso JSON, source TEXT, sourceCategory JSON, sourceMassInflow JSON, supply JSON, tag TEXT, type Reservoir_type); -------------------------------------------------------------------------------- /Reservoir/swagger.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | # Copyleft (c) 2022 Contributors to Smart Data Models initiative 3 | # 4 | 5 | 6 | components: 7 | schemas: 8 | Reservoir: 9 | $ref: "https://smart-data-models.github.io/dataModel.WaterDistributionManagementEPANET/Reservoir/model.yaml#/Reservoir" 10 | info: 11 | description: | 12 | This entity contains a harmonised description of a generic Reservoir made for the Water Network Management domain. This entity is primarily associated with the water management vertical and related IoT applications. 13 | title: Reservoir 14 | version: "0.0.1" 15 | openapi: "3.0.0" 16 | 17 | paths: 18 | /ngsi-ld/v1/entities: 19 | get: 20 | description: "Retrieve a set of entities which matches a specific query from an NGSI-LD system" 21 | parameters: 22 | - 23 | in: query 24 | name: type 25 | required: true 26 | schema: 27 | enum: 28 | - Reservoir 29 | type: string 30 | responses: 31 | ? "200" 32 | : 33 | content: 34 | application/ld+json: 35 | examples: 36 | keyvalues: 37 | summary: "Key-Values Pairs" 38 | value: 39 | - 40 | $ref: "https://smart-data-models.github.io/dataModel.WaterDistributionManagementEPANET/Reservoir/examples/example.json" 41 | normalized: 42 | summary: "Normalized NGSI-LD" 43 | value: 44 | - 45 | $ref: "https://smart-data-models.github.io/dataModel.WaterDistributionManagementEPANET/Reservoir/examples/example-normalized.jsonld" 46 | description: OK 47 | tags: 48 | - ngsi-ld 49 | tags: 50 | - 51 | description: "NGSI-LD Linked-data Format" 52 | name: ngsi-ld 53 | -------------------------------------------------------------------------------- /SimulationResult/ADOPTERS.yaml: -------------------------------------------------------------------------------- 1 | description: This is a compilation list of the current adopters of the data model SimulationResult of the Subject dataModel.WaterNetworkManagementEPANET. All fields are non mandatory. More info at https://smart-data-models.github.io/data-models/templates/dataModel/CURRENT_ADOPTERS.yaml 2 | currentAdopters: 3 | - 4 | adopter: 5 | description: 6 | mail: 7 | organization: 8 | project: 9 | comments: 10 | startDate: 11 | -------------------------------------------------------------------------------- /SimulationResult/SmartDataModelBadge.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/886407c9fda629bcf73e1656c71eb12ff6157721/SimulationResult/SmartDataModelBadge.png -------------------------------------------------------------------------------- /SimulationResult/code/README.md: -------------------------------------------------------------------------------- 1 | # SimulationResult 2 | 3 | ### List of code samples 4 | 5 | 6 | 7 | 8 | [code_for_using_dataModel.WaterDistributionManagementEPANET_SimulationResult.py](https://github.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/blob/master/SimulationResult/code/code_for_using_dataModel.WaterDistributionManagementEPANET_SimulationResult.py) 9 | 10 | 11 | 12 | 13 | ### Contribution 14 | You can raise an [issue](https://github.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/issues) or submit your [PR](https://github.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/pulls) on existing data models 15 | -------------------------------------------------------------------------------- /SimulationResult/examples/example-normalized.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "urn:ngsi-ld:SimulationResult:01", 3 | "type": "SimulationResult", 4 | "description": { 5 | "type": "Text", 6 | "value": "Free Text" 7 | }, 8 | "hasInputNetwork": { 9 | "type": "Text", 10 | "value": "urn:ngsi-ld:WaterNetwork:01" 11 | }, 12 | "refSimulationScenario": { 13 | "type": "Text", 14 | "value": "urn:ngsi-ld:Simulation:01" 15 | }, 16 | "outputParameters": { 17 | "type": "StructuredValue", 18 | "value": [ 19 | { 20 | "parameter": "waterLevel", 21 | "value": 50, 22 | "targetURI": "urn:ngsi-ld:Valve:V1" 23 | }, 24 | { 25 | "parameter": "initialQuality", 26 | "value": 2, 27 | "targetURI": "urn:ngsi-ld:Tank:T1" 28 | } 29 | ] 30 | } 31 | } -------------------------------------------------------------------------------- /SimulationResult/examples/example-normalized.json.csv: -------------------------------------------------------------------------------- 1 | "id_", "type_", "description__type_", "description__value_", "hasInputNetwork__type_", "hasInputNetwork__value_", "refSimulationScenario__type_", "refSimulationScenario__value_", "outputParameters__type_", "outputParameters__value__0__parameter_", "outputParameters__value__0__value_", "outputParameters__value__0__targetURI_", "outputParameters__value__1__parameter_", "outputParameters__value__1__value_", "outputParameters__value__1__targetURI_" 2 | "urn:ngsi-ld:SimulationResult:01", "SimulationResult", "Text", "Free Text", "Text", "urn:ngsi-ld:WaterNetwork:01", "Text", "urn:ngsi-ld:Simulation:01", "StructuredValue", "waterLevel", "50", "urn:ngsi-ld:Valve:V1", "initialQuality", "2", "urn:ngsi-ld:Tank:T1" -------------------------------------------------------------------------------- /SimulationResult/examples/example-normalized.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "id": "urn:ngsi-ld:SimulationResult:01", 3 | "type": "SimulationResult", 4 | "description": { 5 | "type": "Property", 6 | "value": "Free Text" 7 | }, 8 | "hasInputNetwork": { 9 | "type": "Relationship", 10 | "object": "urn:ngsi-ld:WaterNetwork:01" 11 | }, 12 | "outputFile": [ 13 | { 14 | "type": "Relationship", 15 | "object": "c://epanetsimulations/simulationResult.bin" 16 | } 17 | ], 18 | "refSimulationScenario": { 19 | "type": "Relationship", 20 | "object": "urn:ngsi-ld:Simulation:01" 21 | }, 22 | "@context": [ 23 | "https://raw.githubusercontent.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/master/context.jsonld" 24 | ] 25 | } -------------------------------------------------------------------------------- /SimulationResult/examples/example-normalized.jsonld.csv: -------------------------------------------------------------------------------- 1 | "id_", "type_", "description__type_", "description__value_", "hasInputNetwork__type_", "hasInputNetwork__object_", "outputFile__0__type_", "outputFile__0__object_", "refSimulationScenario__type_", "refSimulationScenario__object_", "@context__0_" 2 | "urn:ngsi-ld:SimulationResult:01", "SimulationResult", "Property", "Free Text", "Relationship", "urn:ngsi-ld:WaterNetwork:01", "Relationship", "c://epanetsimulations/simulationResult.bin", "Relationship", "urn:ngsi-ld:Simulation:01", "https://raw.githubusercontent.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/master/context.jsonld" -------------------------------------------------------------------------------- /SimulationResult/examples/example.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "urn:ngsi-ld:SimulationResult:01", 3 | "type": "SimulationResult", 4 | "description": "Free Text", 5 | "hasInputNetwork": "urn:ngsi-ld:WaterNetwork:01", 6 | "refSimulationScenario": "urn:ngsi-ld:Simulation:01", 7 | "outputParameters": [ 8 | { 9 | "parameter": "waterLevel", 10 | "value": 50, 11 | "targetURI": "urn:ngsi-ld:Valve:V1" 12 | }, 13 | { 14 | "parameter": "initialQuality", 15 | "value": 2, 16 | "targetURI": "urn:ngsi-ld:Tank:T1" 17 | } 18 | ] 19 | } -------------------------------------------------------------------------------- /SimulationResult/examples/example.json.csv: -------------------------------------------------------------------------------- 1 | "id_", "type_", "description_", "hasInputNetwork_", "refSimulationScenario_", "outputParameters__0__parameter_", "outputParameters__0__value_", "outputParameters__0__targetURI_", "outputParameters__1__parameter_", "outputParameters__1__value_", "outputParameters__1__targetURI_" 2 | "urn:ngsi-ld:SimulationResult:01", "SimulationResult", "Free Text", "urn:ngsi-ld:WaterNetwork:01", "urn:ngsi-ld:Simulation:01", "waterLevel", "50", "urn:ngsi-ld:Valve:V1", "initialQuality", "2", "urn:ngsi-ld:Tank:T1" -------------------------------------------------------------------------------- /SimulationResult/examples/example.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "id": "urn:ngsi-ld:SimulationResult:01", 3 | "type": "SimulationResult", 4 | "description": "Free Text", 5 | "hasInputNetwork": "urn:ngsi-ld:WaterNetwork:01", 6 | "outputFile": "c://epanetsimulations/simulationResult.bin", 7 | "outputParameters": [ 8 | { 9 | "parameter": "waterLevel", 10 | "value": 50, 11 | "targetURI": "urn:ngsi-ld:Valve:V1" 12 | }, 13 | { 14 | "parameter": "initialQuality", 15 | "value": 2, 16 | "targetURI": "urn:ngsi-ld:Tank:T1" 17 | } 18 | ], 19 | "refSimulationScenario": "urn:ngsi-ld:Simulation:01", 20 | "@context": [ 21 | "https://raw.githubusercontent.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/master/context.jsonld" 22 | ] 23 | } -------------------------------------------------------------------------------- /SimulationResult/examples/example.jsonld.csv: -------------------------------------------------------------------------------- 1 | "id_", "type_", "description_", "hasInputNetwork_", "outputFile_", "outputParameters__0__parameter_", "outputParameters__0__value_", "outputParameters__0__targetURI_", "outputParameters__1__parameter_", "outputParameters__1__value_", "outputParameters__1__targetURI_", "refSimulationScenario_", "@context__0_" 2 | "urn:ngsi-ld:SimulationResult:01", "SimulationResult", "Free Text", "urn:ngsi-ld:WaterNetwork:01", "c://epanetsimulations/simulationResult.bin", "waterLevel", "50", "urn:ngsi-ld:Valve:V1", "initialQuality", "2", "urn:ngsi-ld:Tank:T1", "urn:ngsi-ld:Simulation:01", "https://raw.githubusercontent.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/master/context.jsonld" -------------------------------------------------------------------------------- /SimulationResult/notes.yaml: -------------------------------------------------------------------------------- 1 | notesHeader: 2 | 3 | notesMiddle: 4 | 5 | notesFooter: 6 | -------------------------------------------------------------------------------- /SimulationResult/resources/SimulationDataModel.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/886407c9fda629bcf73e1656c71eb12ff6157721/SimulationResult/resources/SimulationDataModel.jpg -------------------------------------------------------------------------------- /SimulationResult/schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://json-schema.org/draft/2020-12/schema", 3 | "modelTags": "FIWARE4WATER", 4 | "$id": "https://smart-data-models.github.io/dataModel.WaterDistributionManagementEPANET/Result/schema.json", 5 | "$schemaVersion": "0.0.2", 6 | "title": "WaterNetwork - SimulationResult", 7 | "description": "This entity contains a harmonised description of a generic simulation result made for the Water Network Management domain. This entity is primarily associated with the water network management vertical and related IoT applications.", 8 | "type": "object", 9 | "allOf": [ 10 | { 11 | "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/Location-Commons" 12 | }, 13 | { 14 | "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/GSMA-Commons" 15 | }, 16 | { 17 | "$ref": "https://raw.githubusercontent.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/master/WaterNetworkManagement-schema.json" 18 | }, 19 | { 20 | "properties": { 21 | "type": { 22 | "type": "string", 23 | "enum": [ 24 | "SimulationResult" 25 | ], 26 | "description": "Property. NGSI-LD Entity Type. It has to be SimulationResult" 27 | }, 28 | "hasInputNetwork": { 29 | "anyOf": [ 30 | { 31 | "type": "string", 32 | "minLength": 1, 33 | "maxLength": 256, 34 | "pattern": "^[\\w\\-\\.\\{\\}\\$\\+\\*\\[\\]`|~^@!,:\\\\]+$" 35 | }, 36 | { 37 | "type": "string", 38 | "format": "uri" 39 | } 40 | ], 41 | "description": "Relationship. Model:'https://schema.org/URL'. The ID of the network used in the simulation" 42 | }, 43 | "refSimulationScenario": { 44 | "anyOf": [ 45 | { 46 | "type": "string", 47 | "minLength": 1, 48 | "maxLength": 256, 49 | "pattern": "^[\\w\\-\\.\\{\\}\\$\\+\\*\\[\\]`|~^@!,:\\\\]+$" 50 | }, 51 | { 52 | "type": "string", 53 | "format": "uri" 54 | } 55 | ], 56 | "description": "Relationship. Model:'https://schema.org/URL'. The ID of the simulation scenario" 57 | }, 58 | "outputParameters": { 59 | "type": "array", 60 | "description": "Property. Description of the set of results of applied simulation to the network", 61 | "items": { 62 | "type": "object", 63 | "properties": { 64 | "parameter": { 65 | "type": "string", 66 | "enum": [ 67 | "demand", 68 | "energyUse", 69 | "flow", 70 | "head", 71 | "initialQuality", 72 | "level", 73 | "pressure", 74 | "quality", 75 | "sourceMassInflow", 76 | "supply", 77 | "velocity", 78 | "waterLevel" 79 | ] 80 | }, 81 | "value": { 82 | "anyOf": [ 83 | { 84 | "type": "string" 85 | }, 86 | { 87 | "type": "number" 88 | }, 89 | { 90 | "type": "boolean" 91 | } 92 | ] 93 | }, 94 | "targetURI": { 95 | "anyOf": [ 96 | { 97 | "type": "string", 98 | "minLength": 1, 99 | "maxLength": 256, 100 | "pattern": "^[\\w\\-\\.\\{\\}\\$\\+\\*\\[\\]`|~^@!,:\\\\]+$" 101 | }, 102 | { 103 | "type": "string", 104 | "format": "uri" 105 | } 106 | ] 107 | } 108 | } 109 | } 110 | }, 111 | "outputFile": { 112 | "type": "string", 113 | "format": "uri", 114 | "description": "Property. Link to binary file containing results of applied simulation to the network" 115 | } 116 | } 117 | } 118 | ], 119 | "required": [ 120 | "id", 121 | "type", 122 | "refSimulationScenario" 123 | ] 124 | } -------------------------------------------------------------------------------- /SimulationResult/schema.sql: -------------------------------------------------------------------------------- 1 | /* (Beta) Export of data model SimulationResult of the subject dataModel.WaterDistributionManagementEPANET for a PostgreSQL database. Pending translation of enumerations and multityped attributes */ 2 | CREATE TYPE initialStatus_type AS ENUM ('OPEN','CLOSED','CV');CREATE TYPE status_type AS ENUM ('OPEN','CLOSED','CV');CREATE TYPE SimulationResult_type AS ENUM ('SimulationResult');CREATE TYPE valveType_type AS ENUM ('FCV','GPV','PBV','PRV','PSV','TCV'); 3 | CREATE TABLE SimulationResult (address JSON, alternateName TEXT, areaServed TEXT, dataProvider TEXT, dateCreated TIMESTAMP, dateModified TIMESTAMP, demandCategory JSON, description TEXT, energyUse JSON, flow JSON, head JSON, id TEXT PRIMARY KEY, initialQuality JSON, initialStatus initialStatus_type, level JSON, location JSON, name TEXT, outputFile TEXT, outputParameters JSON, owner JSON, pressure JSON, quality JSON, seeAlso JSON, source TEXT, sourceCategory JSON, sourceMassInflow JSON, status status_type, supply JSON, tag TEXT, type SimulationResult_type, valveType valveType_type, velocity JSON); -------------------------------------------------------------------------------- /SimulationResult/swagger.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | # Copyleft (c) 2022 Contributors to Smart Data Models initiative 3 | # 4 | 5 | 6 | components: 7 | schemas: 8 | SimulationResult: 9 | $ref: "https://smart-data-models.github.io/dataModel.WaterDistributionManagementEPANET/SimulationResult/model.yaml#/SimulationResult" 10 | info: 11 | description: | 12 | This entity contains a harmonised description of a generic simulation result made for the Water Network Management domain. This entity is primarily associated with the water network management vertical and related IoT applications. 13 | title: SimulationResult 14 | version: "0.0.2" 15 | openapi: "3.0.0" 16 | 17 | paths: 18 | /ngsi-ld/v1/entities: 19 | get: 20 | description: "Retrieve a set of entities which matches a specific query from an NGSI-LD system" 21 | parameters: 22 | - 23 | in: query 24 | name: type 25 | required: true 26 | schema: 27 | enum: 28 | - SimulationResult 29 | type: string 30 | responses: 31 | ? "200" 32 | : 33 | content: 34 | application/ld+json: 35 | examples: 36 | keyvalues: 37 | summary: "Key-Values Pairs" 38 | value: 39 | - 40 | $ref: "https://smart-data-models.github.io/dataModel.WaterDistributionManagementEPANET/SimulationResult/examples/example.json" 41 | normalized: 42 | summary: "Normalized NGSI-LD" 43 | value: 44 | - 45 | $ref: "https://smart-data-models.github.io/dataModel.WaterDistributionManagementEPANET/SimulationResult/examples/example-normalized.jsonld" 46 | description: OK 47 | tags: 48 | - ngsi-ld 49 | tags: 50 | - 51 | description: "NGSI-LD Linked-data Format" 52 | name: ngsi-ld 53 | -------------------------------------------------------------------------------- /SimulationScenario/ADOPTERS.yaml: -------------------------------------------------------------------------------- 1 | description: This is a compilation list of the current adopters of the data model SimulationScenario of the Subject dataModel.WaterNetworkManagementEPANET. All fields are non mandatory. More info at https://smart-data-models.github.io/data-models/templates/dataModel/CURRENT_ADOPTERS.yaml 2 | currentAdopters: 3 | - 4 | adopter: 5 | description: 6 | mail: 7 | organization: 8 | project: 9 | comments: 10 | startDate: 11 | -------------------------------------------------------------------------------- /SimulationScenario/SmartDataModelBadge.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/886407c9fda629bcf73e1656c71eb12ff6157721/SimulationScenario/SmartDataModelBadge.png -------------------------------------------------------------------------------- /SimulationScenario/code/README.md: -------------------------------------------------------------------------------- 1 | # SimulationScenario 2 | 3 | ### List of code samples 4 | 5 | 6 | 7 | 8 | [code_for_using_dataModel.WaterDistributionManagementEPANET_SimulationScenario.py](https://github.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/blob/master/SimulationScenario/code/code_for_using_dataModel.WaterDistributionManagementEPANET_SimulationScenario.py) 9 | 10 | 11 | 12 | 13 | ### Contribution 14 | You can raise an [issue](https://github.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/issues) or submit your [PR](https://github.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/pulls) on existing data models 15 | -------------------------------------------------------------------------------- /SimulationScenario/examples/example-normalized.json.csv: -------------------------------------------------------------------------------- 1 | "id_", "type_", "description__type_", "description__value_", "createdBy__type_", "createdBy__value_", "hasInputNetwork__type_", "hasInputNetwork__value_", "hasSimulationResult__type_", "hasSimulationResult__value_", "duration__type_", "duration__value_", "hydraulicTimeStep__type_", "hydraulicTimeStep__value_", "flowUnits__type_", "flowUnits__value_", "headlossFormula__type_", "headlossFormula__value_", "startClockTime__type_", "startClockTime__value_", "reportStep__type_", "reportStep__value_", "reportStart__type_", "reportStart__value_", "ruleTimeStep__type_", "ruleTimeStep__value_", "statistic__type_", "statistic__value_", "trials__type_", "trials__value_", "accuracy__type_", "accuracy__value_", "tolerance__type_", "tolerance__value_", "emitterExponent__type_", "emitterExponent__value_", "headError__type_", "headError__value_", "flowChange__type_", "flowChange__value_", "demandCharge__type_", "demandCharge__value_", "demandModel__type_", "demandModel__value_", "minimumPressure__type_", "minimumPressure__value_", "requiredPressure__type_", "requiredPressure__value_", "pressureExponent__type_", "pressureExponent__value_", "viscosity__type_", "viscosity__value_", "unbalanced__type_", "unbalanced__value_", "unbalancedN__type_", "unbalancedN__value_", "checkFrequency__type_", "checkFrequency__value_", "maxCheck__type_", "maxCheck__value_", "dampLimit__type_", "dampLimit__value_", "diffusivity__type_", "diffusivity__value_", "bulkOrder__type_", "bulkOrder__value_", "wallOrder__type_", "wallOrder__value_", "tankOrder__type_", "tankOrder__value_", "concentrationLimit__type_", "concentrationLimit__value_", "qualityType__type_", "qualityType__value_", "chemicalName__type_", "chemicalName__value_", "chemicalUnits__type_", "chemicalUnits__value_", "specificGravity__type_", "specificGravity__value_", "qualityTimeStep__type_", "qualityTimeStep__value_", "operationalControl__type_", "operationalControl__value__0__controlType_", "operationalControl__value__0__controlledLink_", "operationalControl__value__0__monitoredNode_", "operationalControl__value__0__setting_", "operationalControl__value__0__triggerLevel_", "operationalControl__value__0__type_", "operationalControl__value__1__controlType_", "operationalControl__value__1__controlledLink_", "operationalControl__value__1__monitoredNode_", "operationalControl__value__1__setting_", "operationalControl__value__1__triggerLevel_", "operationalControl__value__1__type_", "inputParameters__type_", "inputParameters__value__0__setting_", "inputParameters__value__0__targetURI_", "inputParameters__value__0__type_", "inputParameters__value__1__initialQuality_", "inputParameters__value__1__targetURI_", "inputParameters__value__1__type_", "inputParameters__value__2__efficCurve_", "inputParameters__value__2__targetURI_", "inputParameters__value__2__type_", "inputParameters__value__3__baseDemand_", "inputParameters__value__3__demandCategory_", "inputParameters__value__3__demandPattern_", "inputParameters__value__3__targetURI_", "inputParameters__value__3__type_", "inputParameters__value__4__baseDemand_", "inputParameters__value__4__demandCategory_", "inputParameters__value__4__demandPattern_", "inputParameters__value__4__targetURI_", "inputParameters__value__4__type_" 2 | "urn:ngsi-ld:SimulationScenario:01", "SimulationScenario", "Text", "Free Text", "Text", "urn:ngsi-ld:User:u1", "Text", "urn:ngsi-ld:WaterNetwork:01", "Text", "urn:ngsi-ld:SimulationResult:01", "Number", "86400", "Number", "3600", "Text", "LPS", "Text", "H-W", "Boolean", "False", "Number", "3600", "Boolean", "False", "Number", "900", "Text", "none", "Number", "40", "Number", "0.001", "Number", "0.01", "Number", "0.5", "Boolean", "False", "Number", "0.01", "Number", "2", "Text", "PDA", "Boolean", "False", "Number", "20", "Number", "0.5", "Boolean", "True", "Text", "continue_N", "Number", "20", "Number", "2", "Number", "10", "Boolean", "False", "Boolean", "True", "Boolean", "True", "Boolean", "True", "Boolean", "True", "Boolean", "False", "Text", "chem", "Text", "Chlorine", "Text", "mg/l", "Boolean", "True", "Number", "60", "StructuredValue", "HILEVEL", "urn:ngsi-ld:Tank:T1", "urn:ngsi-ld:Pump:P1", "0", "30", "Operational Control 1", "LOWLEVEL", "urn:ngsi-ld:Pump:P1", "urn:ngsi-ld:Tank:T1", "1", "10", "Operational Control 2", "StructuredValue", "50", "urn:ngsi-ld:Valve:V1", "Property 1", "2", "urn:ngsi-ld:Tank:T1", "Property 2", "urn:ngsi-ld:Curve:C1", "urn:ngsi-ld:Pump:P1", "Property 1", "1.1", "agriculture demand", "urn:ngsi-ld:Pattern:Agriculture", "urn:ngsi-ld:Junction:J1", "demand Category 1", "1.7", "residential demand", "urn:ngsi-ld:Pattern:Residential", "urn:ngsi-ld:Junction:J1", "demand Category 2" -------------------------------------------------------------------------------- /SimulationScenario/examples/example.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "urn:ngsi-ld:SimulationScenario:01", 3 | "type": "SimulationScenario", 4 | "description": "Free Text", 5 | "createdBy": "urn:ngsi-ld:User:u1", 6 | "hasInputNetwork": "urn:ngsi-ld:WaterNetwork:01", 7 | "hasSimulationResult": "urn:ngsi-ld:SimulationResult:01", 8 | "duration": 86400, 9 | "hydraulicTimeStep": 3600, 10 | "flowUnits": "LPS", 11 | "headlossFormula": "H-W", 12 | "startClockTime": 0, 13 | "reportStep": 3600, 14 | "reportStart": 0, 15 | "ruleTimeStep": 900, 16 | "statistic": "none", 17 | "trials": 40, 18 | "accuracy": 0.001, 19 | "tolerance": 0.01, 20 | "emitterExponent": 0.5, 21 | "headError": 0, 22 | "flowChange": 0.01, 23 | "demandCharge": 2, 24 | "demandModel": "PDA", 25 | "minimumPressure": 0, 26 | "requiredPressure": 20, 27 | "pressureExponent": 0.5, 28 | "viscosity": 1, 29 | "unbalanced": "continue_N", 30 | "unbalancedN": 20, 31 | "checkFrequency": 2, 32 | "maxCheck": 10, 33 | "dampLimit": 0, 34 | "diffusivity": 1, 35 | "bulkOrder": 1, 36 | "wallOrder": 1, 37 | "tankOrder": 1, 38 | "concentrationLimit": 0, 39 | "qualityType": "chem", 40 | "chemicalName": "Chlorine", 41 | "chemicalUnits": "mg/l", 42 | "specificGravity": 1, 43 | "qualityTimeStep": 60, 44 | "operationalControl": [ 45 | { 46 | "type": "Operational Control 1", 47 | "setting": 0, 48 | "triggerLevel": 30, 49 | "controlType": "HILEVEL", 50 | "controlledLink": "urn:ngsi-ld:Tank:T1", 51 | "monitoredNode": "urn:ngsi-ld:Pump:P1" 52 | }, 53 | { 54 | "type": "Operational Control 2", 55 | "triggerLevel": 10, 56 | "setting": 1, 57 | "controlType": "LOWLEVEL", 58 | "monitoredNode": "urn:ngsi-ld:Tank:T1", 59 | "controlledLink": "urn:ngsi-ld:Pump:P1" 60 | } 61 | ], 62 | "inputParameters": [ 63 | { 64 | "type": "Property 1", 65 | "setting": 50, 66 | "targetURI": "urn:ngsi-ld:Valve:V1" 67 | }, 68 | { 69 | "type": "Property 2", 70 | "initialQuality": 2, 71 | "targetURI": "urn:ngsi-ld:Tank:T1" 72 | }, 73 | { 74 | "type": "Property 1", 75 | "efficCurve": "urn:ngsi-ld:Curve:C1", 76 | "targetURI": "urn:ngsi-ld:Pump:P1" 77 | }, 78 | { 79 | "type": "demand Category 1", 80 | "demandCategory": "agriculture demand", 81 | "baseDemand": 1.1, 82 | "demandPattern": "urn:ngsi-ld:Pattern:Agriculture", 83 | "targetURI": "urn:ngsi-ld:Junction:J1" 84 | }, 85 | { 86 | "type": "demand Category 2", 87 | "demandCategory": "residential demand", 88 | "baseDemand": 1.7, 89 | "demandPattern": "urn:ngsi-ld:Pattern:Residential", 90 | "targetURI": "urn:ngsi-ld:Junction:J1" 91 | } 92 | ] 93 | } -------------------------------------------------------------------------------- /SimulationScenario/examples/example.json.csv: -------------------------------------------------------------------------------- 1 | "id_", "type_", "description_", "createdBy_", "hasInputNetwork_", "hasSimulationResult_", "duration_", "hydraulicTimeStep_", "flowUnits_", "headlossFormula_", "startClockTime_", "reportStep_", "reportStart_", "ruleTimeStep_", "statistic_", "trials_", "accuracy_", "tolerance_", "emitterExponent_", "headError_", "flowChange_", "demandCharge_", "demandModel_", "minimumPressure_", "requiredPressure_", "pressureExponent_", "viscosity_", "unbalanced_", "unbalancedN_", "checkFrequency_", "maxCheck_", "dampLimit_", "diffusivity_", "bulkOrder_", "wallOrder_", "tankOrder_", "concentrationLimit_", "qualityType_", "chemicalName_", "chemicalUnits_", "specificGravity_", "qualityTimeStep_", "operationalControl__0__type_", "operationalControl__0__setting_", "operationalControl__0__triggerLevel_", "operationalControl__0__controlType_", "operationalControl__0__controlledLink_", "operationalControl__0__monitoredNode_", "operationalControl__1__type_", "operationalControl__1__triggerLevel_", "operationalControl__1__setting_", "operationalControl__1__controlType_", "operationalControl__1__monitoredNode_", "operationalControl__1__controlledLink_", "inputParameters__0__type_", "inputParameters__0__setting_", "inputParameters__0__targetURI_", "inputParameters__1__type_", "inputParameters__1__initialQuality_", "inputParameters__1__targetURI_", "inputParameters__2__type_", "inputParameters__2__efficCurve_", "inputParameters__2__targetURI_", "inputParameters__3__type_", "inputParameters__3__demandCategory_", "inputParameters__3__baseDemand_", "inputParameters__3__demandPattern_", "inputParameters__3__targetURI_", "inputParameters__4__type_", "inputParameters__4__demandCategory_", "inputParameters__4__baseDemand_", "inputParameters__4__demandPattern_", "inputParameters__4__targetURI_" 2 | "urn:ngsi-ld:SimulationScenario:01", "SimulationScenario", "Free Text", "urn:ngsi-ld:User:u1", "urn:ngsi-ld:WaterNetwork:01", "urn:ngsi-ld:SimulationResult:01", "86400", "3600", "LPS", "H-W", "0", "3600", "0", "900", "none", "40", "0.001", "0.01", "0.5", "0", "0.01", "2", "PDA", "0", "20", "0.5", "1", "continue_N", "20", "2", "10", "0", "1", "1", "1", "1", "0", "chem", "Chlorine", "mg/l", "1", "60", "Operational Control 1", "0", "30", "HILEVEL", "urn:ngsi-ld:Tank:T1", "urn:ngsi-ld:Pump:P1", "Operational Control 2", "10", "1", "LOWLEVEL", "urn:ngsi-ld:Tank:T1", "urn:ngsi-ld:Pump:P1", "Property 1", "50", "urn:ngsi-ld:Valve:V1", "Property 2", "2", "urn:ngsi-ld:Tank:T1", "Property 1", "urn:ngsi-ld:Curve:C1", "urn:ngsi-ld:Pump:P1", "demand Category 1", "agriculture demand", "1.1", "urn:ngsi-ld:Pattern:Agriculture", "urn:ngsi-ld:Junction:J1", "demand Category 2", "residential demand", "1.7", "urn:ngsi-ld:Pattern:Residential", "urn:ngsi-ld:Junction:J1" -------------------------------------------------------------------------------- /SimulationScenario/examples/example.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "id": "urn:ngsi-ld:SimulationScenario:01", 3 | "type": "SimulationScenario", 4 | "accuracy": 0.001, 5 | "bulkOrder": 1, 6 | "checkFrequency": 2, 7 | "chemicalName": "Chlorine", 8 | "chemicalUnits": "mg/l", 9 | "concentrationLimit": 0, 10 | "createdBy": "urn:ngsi-ld:User:u1", 11 | "dampLimit": 0, 12 | "demandCharge": 2, 13 | "demandModel": "PDA", 14 | "description": "Free Text", 15 | "diffusivity": 1, 16 | "duration": 86400, 17 | "emitterExponent": 0.5, 18 | "flowChange": 0.01, 19 | "flowUnits": "LPS", 20 | "hasInputNetwork": "urn:ngsi-ld:WaterNetwork:01", 21 | "hasSimulationResult": "urn:ngsi-ld:SimulationResult:01", 22 | "headError": 0, 23 | "headlossFormula": "H-W", 24 | "hydraulicTimeStep": 3600, 25 | "inputParameters": [ 26 | { 27 | "type": "Property 1", 28 | "setting": 50, 29 | "targetURI": "urn:ngsi-ld:Valve:V1" 30 | }, 31 | { 32 | "type": "Property 2", 33 | "initialQuality": 2, 34 | "targetURI": "urn:ngsi-ld:Tank:T1" 35 | }, 36 | { 37 | "type": "Property 1", 38 | "efficCurve": "urn:ngsi-ld:Curve:C1", 39 | "targetURI": "urn:ngsi-ld:Pump:P1" 40 | }, 41 | { 42 | "type": "demand Category 1", 43 | "demandCategory": "agriculture demand", 44 | "baseDemand": 1.1, 45 | "demandPattern": "urn:ngsi-ld:Pattern:Agriculture", 46 | "targetURI": "urn:ngsi-ld:Junction:J1" 47 | }, 48 | { 49 | "type": "demand Category 2", 50 | "demandCategory": "residential demand", 51 | "baseDemand": 1.7, 52 | "demandPattern": "urn:ngsi-ld:Pattern:Residential", 53 | "targetURI": "urn:ngsi-ld:Junction:J1" 54 | } 55 | ], 56 | "maxCheck": 10, 57 | "minimumPressure": 0, 58 | "operationalControl": [ 59 | { 60 | "type": "Operational Control 1", 61 | "setting": 0, 62 | "triggerLevel": 30, 63 | "controlType": "HILEVEL", 64 | "controlledLink": "urn:ngsi-ld:Tank:T1", 65 | "monitoredNode": "urn:ngsi-ld:Pump:P1" 66 | }, 67 | { 68 | "type": "Operational Control 2", 69 | "triggerLevel": 10, 70 | "setting": 1, 71 | "controlType": "LOWLEVEL", 72 | "monitoredNode": "urn:ngsi-ld:Tank:T1", 73 | "controlledLink": "urn:ngsi-ld:Pump:P1" 74 | } 75 | ], 76 | "pressureExponent": 0.5, 77 | "qualityTimeStep": 60, 78 | "qualityType": "chem", 79 | "reportStart": 0, 80 | "reportStep": 3600, 81 | "requiredPressure": 20, 82 | "ruleTimeStep": 900, 83 | "specificGravity": 1, 84 | "startClockTime": 0, 85 | "statistic": "none", 86 | "tankOrder": 1, 87 | "tolerance": 0.01, 88 | "trials": 40, 89 | "unbalanced": "continue_N", 90 | "unbalancedN": 20, 91 | "viscosity": 1, 92 | "wallOrder": 1, 93 | "@context": [ 94 | "https://raw.githubusercontent.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/master/context.jsonld" 95 | ] 96 | } -------------------------------------------------------------------------------- /SimulationScenario/examples/example.jsonld.csv: -------------------------------------------------------------------------------- 1 | "id_", "type_", "accuracy_", "bulkOrder_", "checkFrequency_", "chemicalName_", "chemicalUnits_", "concentrationLimit_", "createdBy_", "dampLimit_", "demandCharge_", "demandModel_", "description_", "diffusivity_", "duration_", "emitterExponent_", "flowChange_", "flowUnits_", "hasInputNetwork_", "hasSimulationResult_", "headError_", "headlossFormula_", "hydraulicTimeStep_", "inputParameters__0__type_", "inputParameters__0__setting_", "inputParameters__0__targetURI_", "inputParameters__1__type_", "inputParameters__1__initialQuality_", "inputParameters__1__targetURI_", "inputParameters__2__type_", "inputParameters__2__efficCurve_", "inputParameters__2__targetURI_", "inputParameters__3__type_", "inputParameters__3__demandCategory_", "inputParameters__3__baseDemand_", "inputParameters__3__demandPattern_", "inputParameters__3__targetURI_", "inputParameters__4__type_", "inputParameters__4__demandCategory_", "inputParameters__4__baseDemand_", "inputParameters__4__demandPattern_", "inputParameters__4__targetURI_", "maxCheck_", "minimumPressure_", "operationalControl__0__type_", "operationalControl__0__setting_", "operationalControl__0__triggerLevel_", "operationalControl__0__controlType_", "operationalControl__0__controlledLink_", "operationalControl__0__monitoredNode_", "operationalControl__1__type_", "operationalControl__1__triggerLevel_", "operationalControl__1__setting_", "operationalControl__1__controlType_", "operationalControl__1__monitoredNode_", "operationalControl__1__controlledLink_", "pressureExponent_", "qualityTimeStep_", "qualityType_", "reportStart_", "reportStep_", "requiredPressure_", "ruleTimeStep_", "specificGravity_", "startClockTime_", "statistic_", "tankOrder_", "tolerance_", "trials_", "unbalanced_", "unbalancedN_", "viscosity_", "wallOrder_", "@context__0_" 2 | "urn:ngsi-ld:SimulationScenario:01", "SimulationScenario", "0.001", "1", "2", "Chlorine", "mg/l", "0", "urn:ngsi-ld:User:u1", "0", "2", "PDA", "Free Text", "1", "86400", "0.5", "0.01", "LPS", "urn:ngsi-ld:WaterNetwork:01", "urn:ngsi-ld:SimulationResult:01", "0", "H-W", "3600", "Property 1", "50", "urn:ngsi-ld:Valve:V1", "Property 2", "2", "urn:ngsi-ld:Tank:T1", "Property 1", "urn:ngsi-ld:Curve:C1", "urn:ngsi-ld:Pump:P1", "demand Category 1", "agriculture demand", "1.1", "urn:ngsi-ld:Pattern:Agriculture", "urn:ngsi-ld:Junction:J1", "demand Category 2", "residential demand", "1.7", "urn:ngsi-ld:Pattern:Residential", "urn:ngsi-ld:Junction:J1", "10", "0", "Operational Control 1", "0", "30", "HILEVEL", "urn:ngsi-ld:Tank:T1", "urn:ngsi-ld:Pump:P1", "Operational Control 2", "10", "1", "LOWLEVEL", "urn:ngsi-ld:Tank:T1", "urn:ngsi-ld:Pump:P1", "0.5", "60", "chem", "0", "3600", "20", "900", "1", "0", "none", "1", "0.01", "40", "continue_N", "20", "1", "1", "https://raw.githubusercontent.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/master/context.jsonld" -------------------------------------------------------------------------------- /SimulationScenario/notes.yaml: -------------------------------------------------------------------------------- 1 | notesHeader: 2 | 3 | notesMiddle: 4 | 5 | notesFooter: 6 | -------------------------------------------------------------------------------- /SimulationScenario/resources/SimulationDataModel.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/886407c9fda629bcf73e1656c71eb12ff6157721/SimulationScenario/resources/SimulationDataModel.jpg -------------------------------------------------------------------------------- /SimulationScenario/schema.sql: -------------------------------------------------------------------------------- 1 | /* (Beta) Export of data model SimulationScenario of the subject dataModel.WaterDistributionManagementEPANET for a PostgreSQL database. Pending translation of enumerations and multityped attributes */ 2 | CREATE TYPE demandModel_type AS ENUM ('DDA','PDA');CREATE TYPE flowUnits_type AS ENUM ('AFD','CFS','CMD','CMH','GPM','IMGD','LPS','LPM','MLD','MGD');CREATE TYPE headlossFormula_type AS ENUM ('H-W','D-W','C-M');CREATE TYPE initialStatus_type AS ENUM ('OPEN','CLOSED','CV');CREATE TYPE qualityType_type AS ENUM ('age','chem','none','trace');CREATE TYPE statistic_type AS ENUM ('averaged','maximum','minimum','none','range');CREATE TYPE status_type AS ENUM ('OPEN','CLOSED','CV');CREATE TYPE SimulationScenario_type AS ENUM ('SimulationScenario');CREATE TYPE unbalanced_type AS ENUM ('stop','continue','continue_N');CREATE TYPE valveType_type AS ENUM ('FCV','GPV','PBV','PRV','PSV','TCV'); 3 | CREATE TABLE SimulationScenario (accuracy NUMERIC, address JSON, alternateName TEXT, areaServed TEXT, bulkOrder NUMERIC, checkFrequency NUMERIC, chemicalName TEXT, chemicalUnits TEXT, concentrationLimit NUMERIC, dampLimit NUMERIC, dataProvider TEXT, dateCreated TIMESTAMP, dateModified TIMESTAMP, demandCategory JSON, demandCharge NUMERIC, demandModel demandModel_type, description TEXT, diffusivity NUMERIC, duration NUMERIC, emitterExponent NUMERIC, energyUse JSON, flow JSON, flowChange NUMERIC, flowUnits flowUnits_type, head JSON, headError NUMERIC, headlossFormula headlossFormula_type, hydraulicTimeStep NUMERIC, id TEXT PRIMARY KEY, initialQuality JSON, initialStatus initialStatus_type, inputParameter JSON, level JSON, location JSON, maxCheck NUMERIC, minimumPressure NUMERIC, name TEXT, operationalControl JSON, owner JSON, patternStart TIMESTAMP, patternStep NUMERIC, pressure JSON, pressureExponent NUMERIC, quality JSON, qualityTimeStep NUMERIC, qualityType qualityType_type, reportStart NUMERIC, reportStep NUMERIC, requiredPressure NUMERIC, ruleTimeStep NUMERIC, seeAlso JSON, source TEXT, sourceCategory JSON, sourceMassInflow JSON, specificGravity NUMERIC, startClockTime NUMERIC, statistic statistic_type, status status_type, supply JSON, tag TEXT, tankOrder NUMERIC, tolerance NUMERIC, trials NUMERIC, type SimulationScenario_type, unbalanced unbalanced_type, unbalancedN NUMERIC, valveType valveType_type, velocity JSON, viscosity NUMERIC, wallOrder NUMERIC); -------------------------------------------------------------------------------- /SimulationScenario/swagger.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | # Copyleft (c) 2022 Contributors to Smart Data Models initiative 3 | # 4 | 5 | 6 | components: 7 | schemas: 8 | SimulationScenario: 9 | $ref: "https://smart-data-models.github.io/dataModel.WaterDistributionManagementEPANET/SimulationScenario/model.yaml#/SimulationScenario" 10 | info: 11 | description: | 12 | This entity contains a harmonised description of a generic simulation scenario made for the Water Network Management domain. This entity is primarily associated with the water network management vertical and related IoT applications. 13 | title: SimulationScenario 14 | version: "0.0.1" 15 | openapi: "3.0.0" 16 | 17 | paths: 18 | /ngsi-ld/v1/entities: 19 | get: 20 | description: "Retrieve a set of entities which matches a specific query from an NGSI-LD system" 21 | parameters: 22 | - 23 | in: query 24 | name: type 25 | required: true 26 | schema: 27 | enum: 28 | - SimulationScenario 29 | type: string 30 | responses: 31 | ? "200" 32 | : 33 | content: 34 | application/ld+json: 35 | examples: 36 | keyvalues: 37 | summary: "Key-Values Pairs" 38 | value: 39 | - 40 | $ref: "https://smart-data-models.github.io/dataModel.WaterDistributionManagementEPANET/SimulationScenario/examples/example.json" 41 | normalized: 42 | summary: "Normalized NGSI-LD" 43 | value: 44 | - 45 | $ref: "https://smart-data-models.github.io/dataModel.WaterDistributionManagementEPANET/SimulationScenario/examples/example-normalized.jsonld" 46 | description: OK 47 | tags: 48 | - ngsi-ld 49 | tags: 50 | - 51 | description: "NGSI-LD Linked-data Format" 52 | name: ngsi-ld 53 | -------------------------------------------------------------------------------- /Tank/ADOPTERS.yaml: -------------------------------------------------------------------------------- 1 | description: This is a compilation list of the current adopters of the data model Tank of the Subject dataModel.WaterNetworkManagementEPANET. All fields are non mandatory. More info at https://smart-data-models.github.io/data-models/templates/dataModel/CURRENT_ADOPTERS.yaml 2 | currentAdopters: 3 | - 4 | adopter: 5 | description: 6 | mail: 7 | organization: 8 | project: 9 | comments: 10 | startDate: 11 | -------------------------------------------------------------------------------- /Tank/SmartDataModelBadge.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/886407c9fda629bcf73e1656c71eb12ff6157721/Tank/SmartDataModelBadge.png -------------------------------------------------------------------------------- /Tank/code/README.md: -------------------------------------------------------------------------------- 1 | # Tank 2 | 3 | ### List of code samples 4 | 5 | 6 | 7 | 8 | [code_for_using_dataModel.WaterDistributionManagementEPANET_Tank.py](https://github.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/blob/master/Tank/code/code_for_using_dataModel.WaterDistributionManagementEPANET_Tank.py) 9 | 10 | 11 | 12 | 13 | ### Contribution 14 | You can raise an [issue](https://github.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/issues) or submit your [PR](https://github.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/pulls) on existing data models 15 | -------------------------------------------------------------------------------- /Tank/examples/example-geojsonfeature.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "urn:ngsi-ld:Tank:1863179e-3968-4493-9167-ee21f880cc02", 3 | "type": "Feature", 4 | "geometry": { 5 | "coordinates": [ 6 | 24.30623, 7 | 60.07966 8 | ], 9 | "type": "Point" 10 | }, 11 | "properties": { 12 | "@context": [ 13 | "https://smartdatamodels.org/context.jsonld" 14 | ], 15 | "bulkReactionCoefficient": 0.7, 16 | "createdAt": "2020-03-13T15:42:00Z", 17 | "description": "Free Text", 18 | "elevation": 112.9, 19 | "initLevel": 3, 20 | "initialQuality": 0.5, 21 | "location": { 22 | "coordinates": [ 23 | 24.30623, 24 | 60.07966 25 | ], 26 | "type": "Point" 27 | }, 28 | "maxLevel": 6.75, 29 | "minLevel": 0, 30 | "minVolume": 0, 31 | "mixingFraction": 0.7, 32 | "mixingModel": "MIXED", 33 | "modifiedAt": "2020-03-13T15:45:00Z", 34 | "nominalDiameter": 13.73, 35 | "sourceCategory": "category1", 36 | "tag": "DMA1", 37 | "type": "Tank", 38 | "volumeCurve": "urn:ngsi-ld:Curve:fAM-8ca3-4533-a2eb-12015" 39 | } 40 | } -------------------------------------------------------------------------------- /Tank/examples/example-geojsonfeature.json.csv: -------------------------------------------------------------------------------- 1 | "id_", "type_", "geometry__coordinates__0_", "geometry__coordinates__1_", "geometry__type_", "properties__@context__0_", "properties__bulkReactionCoefficient_", "properties__createdAt_", "properties__description_", "properties__elevation_", "properties__initLevel_", "properties__initialQuality_", "properties__location__coordinates__0_", "properties__location__coordinates__1_", "properties__location__type_", "properties__maxLevel_", "properties__minLevel_", "properties__minVolume_", "properties__mixingFraction_", "properties__mixingModel_", "properties__modifiedAt_", "properties__nominalDiameter_", "properties__sourceCategory_", "properties__tag_", "properties__type_", "properties__volumeCurve_" 2 | "urn:ngsi-ld:Tank:1863179e-3968-4493-9167-ee21f880cc02", "Feature", "24.30623", "60.07966", "Point", "https://smartdatamodels.org/context.jsonld", "0.7", "2020-03-13T15:42:00Z", "Free Text", "112.9", "3", "0.5", "24.30623", "60.07966", "Point", "6.75", "0", "0", "0.7", "MIXED", "2020-03-13T15:45:00Z", "13.73", "category1", "DMA1", "Tank", "urn:ngsi-ld:Curve:fAM-8ca3-4533-a2eb-12015" -------------------------------------------------------------------------------- /Tank/examples/example-normalized.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "1863179e-3968-4493-9167-ee21f880cc02", 3 | "type": "Tank", 4 | "location": { 5 | "type": "geo:json", 6 | "value": { 7 | "type": "Point", 8 | "coordinates": [ 9 | 24.30623, 10 | 60.07966 11 | ] 12 | } 13 | }, 14 | "elevation": { 15 | "type": "Number", 16 | "value": 112.9 17 | }, 18 | "initLevel": { 19 | "type": "Number", 20 | "value": 3 21 | }, 22 | "minLevel": { 23 | "type": "Boolean", 24 | "value": false 25 | }, 26 | "maxLevel": { 27 | "type": "Number", 28 | "value": 6.75 29 | }, 30 | "minVolume": { 31 | "type": "Boolean", 32 | "value": false 33 | }, 34 | "nominalDiameter": { 35 | "type": "Number", 36 | "value": 13.73 37 | }, 38 | "description": { 39 | "type": "Text", 40 | "value": "Free Text" 41 | }, 42 | "initialQuality": { 43 | "type": "Number", 44 | "value": 0.5 45 | }, 46 | "sourceCategory": { 47 | "type": "StructuredValue", 48 | "value": { 49 | "value": "category1", 50 | "sourceType": "MASS", 51 | "sourceQuality": 1.2, 52 | "sourcePattern": "fbcb5fc8-8ca3-4533-a2eb-34bc89262190" 53 | } 54 | }, 55 | "mixingModel": { 56 | "type": "Text", 57 | "value": "MIXED" 58 | }, 59 | "volumeCurve": { 60 | "type": "Text", 61 | "value": "fAM-8ca3-4533-a2eb-12015" 62 | }, 63 | "mixingFraction": { 64 | "type": "Number", 65 | "value": 0.7 66 | }, 67 | "bulkReactionCoefficient": { 68 | "type": "Number", 69 | "value": 0.7 70 | }, 71 | "tag": { 72 | "type": "Text", 73 | "value": "DMA1" 74 | }, 75 | "level": { 76 | "type": "StructuredValue", 77 | "value": { 78 | "value": 20, 79 | "observedBy": "device-9845A" 80 | } 81 | }, 82 | "pressure": { 83 | "type": "StructuredValue", 84 | "value": { 85 | "value": 20, 86 | "observedBy": "device-9845A" 87 | } 88 | }, 89 | "supply": { 90 | "type": "StructuredValue", 91 | "value": { 92 | "value": 150, 93 | "observedBy": "device-9845A" 94 | } 95 | }, 96 | "head": { 97 | "type": "StructuredValue", 98 | "value": { 99 | "value": 20, 100 | "observedBy": "device-9845A" 101 | } 102 | }, 103 | "quality": { 104 | "type": "StructuredValue", 105 | "value": { 106 | "value": 0.5, 107 | "observedBy": "device-9845A" 108 | } 109 | }, 110 | "sourceMassInflow": { 111 | "type": "StructuredValue", 112 | "value": { 113 | "value": 100, 114 | "observedBy": "device-9845A" 115 | } 116 | } 117 | } -------------------------------------------------------------------------------- /Tank/examples/example-normalized.json.csv: -------------------------------------------------------------------------------- 1 | "id_", "type_", "location__type_", "location__value__type_", "location__value__coordinates__0_", "location__value__coordinates__1_", "elevation__type_", "elevation__value_", "initLevel__type_", "initLevel__value_", "minLevel__type_", "minLevel__value_", "maxLevel__type_", "maxLevel__value_", "minVolume__type_", "minVolume__value_", "nominalDiameter__type_", "nominalDiameter__value_", "description__type_", "description__value_", "initialQuality__type_", "initialQuality__value_", "sourceCategory__type_", "sourceCategory__value__value_", "sourceCategory__value__sourceType_", "sourceCategory__value__sourceQuality_", "sourceCategory__value__sourcePattern_", "mixingModel__type_", "mixingModel__value_", "volumeCurve__type_", "volumeCurve__value_", "mixingFraction__type_", "mixingFraction__value_", "bulkReactionCoefficient__type_", "bulkReactionCoefficient__value_", "tag__type_", "tag__value_", "level__type_", "level__value__value_", "level__value__observedBy_", "pressure__type_", "pressure__value__value_", "pressure__value__observedBy_", "supply__type_", "supply__value__value_", "supply__value__observedBy_", "head__type_", "head__value__value_", "head__value__observedBy_", "quality__type_", "quality__value__value_", "quality__value__observedBy_", "sourceMassInflow__type_", "sourceMassInflow__value__value_", "sourceMassInflow__value__observedBy_" 2 | "1863179e-3968-4493-9167-ee21f880cc02", "Tank", "geo:json", "Point", "24.30623", "60.07966", "Number", "112.9", "Number", "3", "Boolean", "False", "Number", "6.75", "Boolean", "False", "Number", "13.73", "Text", "Free Text", "Number", "0.5", "StructuredValue", "category1", "MASS", "1.2", "fbcb5fc8-8ca3-4533-a2eb-34bc89262190", "Text", "MIXED", "Text", "fAM-8ca3-4533-a2eb-12015", "Number", "0.7", "Number", "0.7", "Text", "DMA1", "StructuredValue", "20", "device-9845A", "StructuredValue", "20", "device-9845A", "StructuredValue", "150", "device-9845A", "StructuredValue", "20", "device-9845A", "StructuredValue", "0.5", "device-9845A", "StructuredValue", "100", "device-9845A" -------------------------------------------------------------------------------- /Tank/examples/example-normalized.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "id": "urn:ngsi-ld:Tank:1863179e-3968-4493-9167-ee21f880cc02", 3 | "type": "Tank", 4 | "bulkReactionCoefficient": { 5 | "type": "Property", 6 | "value": 0.7, 7 | "unitCode": "E91" 8 | }, 9 | "description": { 10 | "type": "Property", 11 | "value": "Free Text" 12 | }, 13 | "elevation": { 14 | "type": "Property", 15 | "value": 112.9, 16 | "unitCode": "MTR" 17 | }, 18 | "head": { 19 | "type": "Property", 20 | "value": { 21 | "type": "Property", 22 | "value": 20, 23 | "unitCode": "MTR" 24 | }, 25 | "observedBy": { 26 | "type": "Relationship", 27 | "object": "urn:ngsi-ld:Device:device-9845A" 28 | } 29 | }, 30 | "initLevel": { 31 | "type": "Property", 32 | "value": 3, 33 | "unitCode": "MTR" 34 | }, 35 | "initialQuality": { 36 | "type": "Property", 37 | "value": 0.5, 38 | "unitCode": "M1" 39 | }, 40 | "level": { 41 | "type": "Property", 42 | "value": { 43 | "type": "Property", 44 | "value": 20, 45 | "unitCode": "MTR" 46 | }, 47 | "observedBy": { 48 | "type": "Relationship", 49 | "object": "urn:ngsi-ld:Device:device-9845A" 50 | } 51 | }, 52 | "location": { 53 | "type": "GeoProperty", 54 | "value": { 55 | "type": "Point", 56 | "coordinates": [ 57 | 24.30623, 58 | 60.07966 59 | ] 60 | } 61 | }, 62 | "maxLevel": { 63 | "type": "Property", 64 | "value": 6.75, 65 | "unitCode": "MTR" 66 | }, 67 | "minLevel": { 68 | "type": "Property", 69 | "value": 0, 70 | "unitCode": "MTR" 71 | }, 72 | "minVolume": { 73 | "type": "Property", 74 | "value": 0, 75 | "unitCode": "MTQ" 76 | }, 77 | "mixingFraction": { 78 | "type": "Property", 79 | "value": 0.7, 80 | "unitCode": "C62" 81 | }, 82 | "mixingModel": { 83 | "type": "Property", 84 | "value": "MIXED" 85 | }, 86 | "nominalDiameter": { 87 | "type": "Property", 88 | "value": 13.73, 89 | "unitCode": "MTR" 90 | }, 91 | "pressure": { 92 | "type": "Property", 93 | "value": { 94 | "type": "Property", 95 | "value": 20, 96 | "unitCode": "MTR" 97 | }, 98 | "observedBy": { 99 | "type": "Relationship", 100 | "object": "urn:ngsi-ld:Device:device-9845A" 101 | } 102 | }, 103 | "quality": { 104 | "type": "Property", 105 | "value": { 106 | "type": "Property", 107 | "value": 0.5, 108 | "unitCode": "M1" 109 | }, 110 | "observedBy": { 111 | "type": "Relationship", 112 | "object": "urn:ngsi-ld:Device:device-9845A" 113 | } 114 | }, 115 | "sourceCategory": { 116 | "type": "Property", 117 | "value": { 118 | "type": "Property", 119 | "value": "category1" 120 | }, 121 | "sourceType": { 122 | "type": "Property", 123 | "value": "MASS" 124 | }, 125 | "sourceQuality": { 126 | "type": "Property", 127 | "value": 1.2, 128 | "unitCode": "M1" 129 | }, 130 | "sourcePattern": { 131 | "type": "Relationship", 132 | "object": "urn:ngsi-ld:Pattern:fbcb5fc8-8ca3-4533-a2eb-34bc89262190" 133 | } 134 | }, 135 | "sourceMassInflow": { 136 | "type": "Property", 137 | "value": { 138 | "type": "Property", 139 | "value": 100, 140 | "unitCode": "F27" 141 | }, 142 | "observedBy": { 143 | "type": "Relationship", 144 | "object": "urn:ngsi-ld:Device:device-9845A" 145 | } 146 | }, 147 | "supply": { 148 | "type": "Property", 149 | "value": { 150 | "type": "Property", 151 | "value": 150, 152 | "unitCode": "LTR" 153 | }, 154 | "observedBy": { 155 | "type": "Relationship", 156 | "object": "urn:ngsi-ld:Device:device-9845A" 157 | } 158 | }, 159 | "tag": { 160 | "type": "Property", 161 | "value": "DMA1" 162 | }, 163 | "volumeCurve": { 164 | "type": "Relationship", 165 | "object": "urn:ngsi-ld:Curve:fAM-8ca3-4533-a2eb-12015" 166 | }, 167 | "@context": [ 168 | "https://raw.githubusercontent.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/master/context.jsonld" 169 | ] 170 | } -------------------------------------------------------------------------------- /Tank/examples/example-normalized.jsonld.csv: -------------------------------------------------------------------------------- 1 | "id_", "type_", "bulkReactionCoefficient__type_", "bulkReactionCoefficient__value_", "bulkReactionCoefficient__unitCode_", "description__type_", "description__value_", "elevation__type_", "elevation__value_", "elevation__unitCode_", "head__type_", "head__value__type_", "head__value__value_", "head__value__unitCode_", "head__observedBy__type_", "head__observedBy__object_", "initLevel__type_", "initLevel__value_", "initLevel__unitCode_", "initialQuality__type_", "initialQuality__value_", "initialQuality__unitCode_", "level__type_", "level__value__type_", "level__value__value_", "level__value__unitCode_", "level__observedBy__type_", "level__observedBy__object_", "location__type_", "location__value__type_", "location__value__coordinates__0_", "location__value__coordinates__1_", "maxLevel__type_", "maxLevel__value_", "maxLevel__unitCode_", "minLevel__type_", "minLevel__value_", "minLevel__unitCode_", "minVolume__type_", "minVolume__value_", "minVolume__unitCode_", "mixingFraction__type_", "mixingFraction__value_", "mixingFraction__unitCode_", "mixingModel__type_", "mixingModel__value_", "nominalDiameter__type_", "nominalDiameter__value_", "nominalDiameter__unitCode_", "pressure__type_", "pressure__value__type_", "pressure__value__value_", "pressure__value__unitCode_", "pressure__observedBy__type_", "pressure__observedBy__object_", "quality__type_", "quality__value__type_", "quality__value__value_", "quality__value__unitCode_", "quality__observedBy__type_", "quality__observedBy__object_", "sourceCategory__type_", "sourceCategory__value__type_", "sourceCategory__value__value_", "sourceCategory__sourceType__type_", "sourceCategory__sourceType__value_", "sourceCategory__sourceQuality__type_", "sourceCategory__sourceQuality__value_", "sourceCategory__sourceQuality__unitCode_", "sourceCategory__sourcePattern__type_", "sourceCategory__sourcePattern__object_", "sourceMassInflow__type_", "sourceMassInflow__value__type_", "sourceMassInflow__value__value_", "sourceMassInflow__value__unitCode_", "sourceMassInflow__observedBy__type_", "sourceMassInflow__observedBy__object_", "supply__type_", "supply__value__type_", "supply__value__value_", "supply__value__unitCode_", "supply__observedBy__type_", "supply__observedBy__object_", "tag__type_", "tag__value_", "volumeCurve__type_", "volumeCurve__object_", "@context__0_" 2 | "urn:ngsi-ld:Tank:1863179e-3968-4493-9167-ee21f880cc02", "Tank", "Property", "0.7", "E91", "Property", "Free Text", "Property", "112.9", "MTR", "Property", "Property", "20", "MTR", "Relationship", "urn:ngsi-ld:Device:device-9845A", "Property", "3", "MTR", "Property", "0.5", "M1", "Property", "Property", "20", "MTR", "Relationship", "urn:ngsi-ld:Device:device-9845A", "GeoProperty", "Point", "24.30623", "60.07966", "Property", "6.75", "MTR", "Property", "0", "MTR", "Property", "0", "MTQ", "Property", "0.7", "C62", "Property", "MIXED", "Property", "13.73", "MTR", "Property", "Property", "20", "MTR", "Relationship", "urn:ngsi-ld:Device:device-9845A", "Property", "Property", "0.5", "M1", "Relationship", "urn:ngsi-ld:Device:device-9845A", "Property", "Property", "category1", "Property", "MASS", "Property", "1.2", "M1", "Relationship", "urn:ngsi-ld:Pattern:fbcb5fc8-8ca3-4533-a2eb-34bc89262190", "Property", "Property", "100", "F27", "Relationship", "urn:ngsi-ld:Device:device-9845A", "Property", "Property", "150", "LTR", "Relationship", "urn:ngsi-ld:Device:device-9845A", "Property", "DMA1", "Relationship", "urn:ngsi-ld:Curve:fAM-8ca3-4533-a2eb-12015", "https://raw.githubusercontent.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/master/context.jsonld" -------------------------------------------------------------------------------- /Tank/examples/example.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "1863179e-3968-4493-9167-ee21f880cc02", 3 | "type": "Tank", 4 | "location": { 5 | "type": "Point", 6 | "coordinates": [ 7 | 24.30623, 8 | 60.07966 9 | ] 10 | }, 11 | "elevation": 112.9, 12 | "initLevel": 3, 13 | "minLevel": 0, 14 | "maxLevel": 6.75, 15 | "minVolume": 0, 16 | "nominalDiameter": 13.73, 17 | "description": "Free Text", 18 | "initialQuality": 0.5, 19 | "sourceCategory": { 20 | "value": "category1", 21 | "sourceType": "MASS", 22 | "sourceQuality": 1.2, 23 | "sourcePattern": "fbcb5fc8-8ca3-4533-a2eb-34bc89262190" 24 | }, 25 | "mixingModel": "MIXED", 26 | "volumeCurve": "fAM-8ca3-4533-a2eb-12015", 27 | "mixingFraction": 0.7, 28 | "bulkReactionCoefficient": 0.7, 29 | "tag": "DMA1" 30 | } -------------------------------------------------------------------------------- /Tank/examples/example.json.csv: -------------------------------------------------------------------------------- 1 | "id_", "type_", "location__type_", "location__coordinates__0_", "location__coordinates__1_", "elevation_", "initLevel_", "minLevel_", "maxLevel_", "minVolume_", "nominalDiameter_", "description_", "initialQuality_", "sourceCategory__value_", "sourceCategory__sourceType_", "sourceCategory__sourceQuality_", "sourceCategory__sourcePattern_", "mixingModel_", "volumeCurve_", "mixingFraction_", "bulkReactionCoefficient_", "tag_" 2 | "1863179e-3968-4493-9167-ee21f880cc02", "Tank", "Point", "24.30623", "60.07966", "112.9", "3", "0", "6.75", "0", "13.73", "Free Text", "0.5", "category1", "MASS", "1.2", "fbcb5fc8-8ca3-4533-a2eb-34bc89262190", "MIXED", "fAM-8ca3-4533-a2eb-12015", "0.7", "0.7", "DMA1" -------------------------------------------------------------------------------- /Tank/examples/example.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "id": "urn:ngsi-ld:Tank:1863179e-3968-4493-9167-ee21f880cc02", 3 | "type": "Tank", 4 | "bulkReactionCoefficient": 0.7, 5 | "description": "Free Text", 6 | "elevation": 112.9, 7 | "initLevel": 3, 8 | "initialQuality": 0.5, 9 | "location": { 10 | "coordinates": [ 11 | 24.30623, 12 | 60.07966 13 | ], 14 | "type": "Point" 15 | }, 16 | "maxLevel": 6.75, 17 | "minLevel": 0, 18 | "minVolume": 0, 19 | "mixingFraction": 0.7, 20 | "mixingModel": "MIXED", 21 | "nominalDiameter": 13.73, 22 | "sourceCategory": { 23 | "value": "category1", 24 | "sourceType": "MASS", 25 | "sourceQuality": 1.2, 26 | "sourcePattern": "fbcb5fc8-8ca3-4533-a2eb-34bc89262190" 27 | }, 28 | "tag": "DMA1", 29 | "volumeCurve": "urn:ngsi-ld:Curve:fAM-8ca3-4533-a2eb-12015", 30 | "@context": [ 31 | "https://raw.githubusercontent.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/master/context.jsonld" 32 | ] 33 | } -------------------------------------------------------------------------------- /Tank/examples/example.jsonld.csv: -------------------------------------------------------------------------------- 1 | "id_", "type_", "bulkReactionCoefficient_", "createdAt_", "description_", "elevation_", "initLevel_", "initialQuality_", "location__coordinates__0_", "location__coordinates__1_", "location__type_", "maxLevel_", "minLevel_", "minVolume_", "mixingFraction_", "mixingModel_", "modifiedAt_", "nominalDiameter_", "sourceCategory__value_", "sourceCategory__sourceType_", "sourceCategory__sourceQuality_", "sourceCategory__sourcePattern_", "tag_", "volumeCurve_", "@context__0_" 2 | "urn:ngsi-ld:Tank:1863179e-3968-4493-9167-ee21f880cc02", "Tank", "0.7", "2020-03-13T15:42:00Z", "Free Text", "112.9", "3", "0.5", "24.30623", "60.07966", "Point", "6.75", "0", "0", "0.7", "MIXED", "2020-03-13T15:45:00Z", "13.73", "category1", "MASS", "1.2", "fbcb5fc8-8ca3-4533-a2eb-34bc89262190", "DMA1", "urn:ngsi-ld:Curve:fAM-8ca3-4533-a2eb-12015", "https://raw.githubusercontent.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/master/context.jsonld" -------------------------------------------------------------------------------- /Tank/notes.yaml: -------------------------------------------------------------------------------- 1 | notesHeader: 2 | 3 | notesMiddle: 4 | 5 | notesFooter: 6 | -------------------------------------------------------------------------------- /Tank/schema.sql: -------------------------------------------------------------------------------- 1 | /* (Beta) Export of data model Tank of the subject dataModel.WaterDistributionManagementEPANET for a PostgreSQL database. Pending translation of enumerations and multityped attributes */ 2 | CREATE TYPE mixingModel_type AS ENUM ('2COMP','FIFO','LIFO','MIXED');CREATE TYPE Tank_type AS ENUM ('Tank'); 3 | CREATE TABLE Tank (address JSON, alternateName TEXT, areaServed TEXT, bulkReactionCoefficient NUMERIC, dataProvider TEXT, dateCreated TIMESTAMP, dateModified TIMESTAMP, description TEXT, elevation NUMERIC, hasInlet TEXT, hasOutlet TEXT, head JSON, id TEXT PRIMARY KEY, initLevel NUMERIC, initialQuality NUMERIC, level JSON, location JSON, maxLevel NUMERIC, minLevel NUMERIC, minVolume NUMERIC, mixingFraction NUMERIC, mixingModel mixingModel_type, name TEXT, nominalDiameter NUMERIC, owner JSON, pressure JSON, quality JSON, seeAlso JSON, source TEXT, sourceCategory JSON, sourceMassInflow JSON, supply JSON, tag TEXT, type Tank_type); -------------------------------------------------------------------------------- /Tank/swagger.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | # Copyleft (c) 2022 Contributors to Smart Data Models initiative 3 | # 4 | 5 | 6 | components: 7 | schemas: 8 | Tank: 9 | $ref: "https://smart-data-models.github.io/dataModel.WaterDistributionManagementEPANET/Tank/model.yaml#/Tank" 10 | info: 11 | description: | 12 | This entity contains a harmonised description of a generic tank made for the Water Network Management domain. This entity is primarily associated with the water management vertical and related IoT applications. 13 | title: Tank 14 | version: "0.0.1" 15 | openapi: "3.0.0" 16 | 17 | paths: 18 | /ngsi-ld/v1/entities: 19 | get: 20 | description: "Retrieve a set of entities which matches a specific query from an NGSI-LD system" 21 | parameters: 22 | - 23 | in: query 24 | name: type 25 | required: true 26 | schema: 27 | enum: 28 | - Tank 29 | type: string 30 | responses: 31 | ? "200" 32 | : 33 | content: 34 | application/ld+json: 35 | examples: 36 | keyvalues: 37 | summary: "Key-Values Pairs" 38 | value: 39 | - 40 | $ref: "https://smart-data-models.github.io/dataModel.WaterDistributionManagementEPANET/Tank/examples/example.json" 41 | normalized: 42 | summary: "Normalized NGSI-LD" 43 | value: 44 | - 45 | $ref: "https://smart-data-models.github.io/dataModel.WaterDistributionManagementEPANET/Tank/examples/example-normalized.jsonld" 46 | description: OK 47 | tags: 48 | - ngsi-ld 49 | tags: 50 | - 51 | description: "NGSI-LD Linked-data Format" 52 | name: ngsi-ld 53 | -------------------------------------------------------------------------------- /Valve/ADOPTERS.yaml: -------------------------------------------------------------------------------- 1 | description: This is a compilation list of the current adopters of the data model Valve of the Subject dataModel.WaterNetworkManagementEPANET. All fields are non mandatory. More info at https://smart-data-models.github.io/data-models/templates/dataModel/CURRENT_ADOPTERS.yaml 2 | currentAdopters: 3 | - 4 | adopter: 5 | description: 6 | mail: 7 | organization: 8 | project: 9 | comments: 10 | startDate: 11 | -------------------------------------------------------------------------------- /Valve/SmartDataModelBadge.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/886407c9fda629bcf73e1656c71eb12ff6157721/Valve/SmartDataModelBadge.png -------------------------------------------------------------------------------- /Valve/code/README.md: -------------------------------------------------------------------------------- 1 | # Valve 2 | 3 | ### List of code samples 4 | 5 | 6 | 7 | 8 | [code_for_using_dataModel.WaterDistributionManagementEPANET_Valve.py](https://github.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/blob/master/Valve/code/code_for_using_dataModel.WaterDistributionManagementEPANET_Valve.py) 9 | 10 | 11 | 12 | 13 | ### Contribution 14 | You can raise an [issue](https://github.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/issues) or submit your [PR](https://github.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/pulls) on existing data models 15 | -------------------------------------------------------------------------------- /Valve/examples/example-normalized.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "87fe7d79-0d4c-4da9-b7d0-3340efa0656awytsd", 3 | "type": "Valve", 4 | "initialStatus": { 5 | "type": "Text", 6 | "value": "OPEN" 7 | }, 8 | "status": { 9 | "type": "Text", 10 | "value": "OPEN" 11 | }, 12 | "openStatus": { 13 | "type": "Number", 14 | "value": 0.3 15 | }, 16 | "diameter": { 17 | "type": "Number", 18 | "value": 203.2 19 | }, 20 | "valveType": { 21 | "type": "Text", 22 | "value": "PRV" 23 | }, 24 | "setting": { 25 | "type": "Number", 26 | "value": 40.0 27 | }, 28 | "minorLoss": { 29 | "type": "Boolean", 30 | "value": false 31 | }, 32 | "tag": { 33 | "type": "Text", 34 | "value": "DMA1" 35 | }, 36 | "startsAt": { 37 | "type": "Text", 38 | "value": "63fe7d79-0d4c-4da9-b7d0-3340efa0656a" 39 | }, 40 | "endsAt": { 41 | "type": "Text", 42 | "value": "1863179e-3768-4480-9167-ff21f870dd19" 43 | }, 44 | "flow": { 45 | "type": "StructuredValue", 46 | "value": { 47 | "value": 20, 48 | "observedBy": "device-9845A" 49 | } 50 | }, 51 | "velocity": { 52 | "type": "StructuredValue", 53 | "value": { 54 | "value": 2, 55 | "observedBy": "device-9845A" 56 | } 57 | }, 58 | "quality": { 59 | "type": "StructuredValue", 60 | "value": { 61 | "value": 0.5, 62 | "observedBy": "device-9845A" 63 | } 64 | } 65 | } -------------------------------------------------------------------------------- /Valve/examples/example-normalized.json.csv: -------------------------------------------------------------------------------- 1 | "id_", "type_", "initialStatus__type_", "initialStatus__value_", "status__type_", "status__value_", "openStatus__type_", "openStatus__value_", "diameter__type_", "diameter__value_", "valveType__type_", "valveType__value_", "setting__type_", "setting__value_", "minorLoss__type_", "minorLoss__value_", "tag__type_", "tag__value_", "startsAt__type_", "startsAt__value_", "endsAt__type_", "endsAt__value_", "flow__type_", "flow__value__value_", "flow__value__observedBy_", "velocity__type_", "velocity__value__value_", "velocity__value__observedBy_", "quality__type_", "quality__value__value_", "quality__value__observedBy_" 2 | "87fe7d79-0d4c-4da9-b7d0-3340efa0656awytsd", "Valve", "Text", "OPEN", "Text", "OPEN", "Number", "0.3", "Number", "203.2", "Text", "PRV", "Number", "40.0", "Boolean", "False", "Text", "DMA1", "Text", "63fe7d79-0d4c-4da9-b7d0-3340efa0656a", "Text", "1863179e-3768-4480-9167-ff21f870dd19", "StructuredValue", "20", "device-9845A", "StructuredValue", "2", "device-9845A", "StructuredValue", "0.5", "device-9845A" -------------------------------------------------------------------------------- /Valve/examples/example-normalized.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "id": "urn:ngsi-ld:Valve:87fe7d79-0d4c-4da9-b7d0-3340efa0656awytsd", 3 | "type": "Valve", 4 | "createdAt": "2020-03-02T15:42:00Z", 5 | "diameter": { 6 | "type": "Property", 7 | "value": 203.2, 8 | "unitCode": "MMT" 9 | }, 10 | "endsAt": { 11 | "type": "Relationship", 12 | "object": "urn:ngsi-ld:Reservoir:1863179e-3768-4480-9167-ff21f870dd19" 13 | }, 14 | "initiaStatus": { 15 | "type": "Property", 16 | "value": "OPEN" 17 | }, 18 | "minorLoss": { 19 | "type": "Property", 20 | "value": 0.0, 21 | "unitCode": "C62" 22 | }, 23 | "modifiedAt": "2020-03-02T15:45:00Z", 24 | "openStatus": { 25 | "type": "Property", 26 | "value": 0.3 27 | }, 28 | "setting": { 29 | "type": "Property", 30 | "value": 40.0, 31 | "unitCode": "C62" 32 | }, 33 | "startsAt": { 34 | "type": "Relationship", 35 | "object": "urn:ngsi-ld:Junction:63fe7d79-0d4c-4da9-b7d0-3340efa0656a" 36 | }, 37 | "status": { 38 | "type": "Property", 39 | "value": "OPEN" 40 | }, 41 | "tag": { 42 | "type": "Property", 43 | "value": "DMA1" 44 | }, 45 | "valveType": { 46 | "type": "Property", 47 | "value": "PRV" 48 | }, 49 | "vertices": { 50 | "type": "GeoProperty", 51 | "value": { 52 | "type": "MultiPoint", 53 | "coordinates": [ 54 | [ 55 | 24.40623, 56 | 60.17966 57 | ], 58 | [ 59 | 24.50623, 60 | 60.27966 61 | ] 62 | ] 63 | } 64 | }, 65 | "@context": [ 66 | "https://raw.githubusercontent.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/master/context.jsonld" 67 | ] 68 | } -------------------------------------------------------------------------------- /Valve/examples/example-normalized.jsonld.csv: -------------------------------------------------------------------------------- 1 | "id_", "type_", "createdAt_", "diameter__type_", "diameter__value_", "diameter__unitCode_", "endsAt__type_", "endsAt__object_", "initiaStatus__type_", "initiaStatus__value_", "minorLoss__type_", "minorLoss__value_", "minorLoss__unitCode_", "modifiedAt_", "openStatus__type_", "openStatus__value_", "setting__type_", "setting__value_", "setting__unitCode_", "startsAt__type_", "startsAt__object_", "status__type_", "status__value_", "tag__type_", "tag__value_", "valveType__type_", "valveType__value_", "vertices__type_", "vertices__value__type_", "vertices__value__coordinates__0__0_", "vertices__value__coordinates__0__1_", "vertices__value__coordinates__1__0_", "vertices__value__coordinates__1__1_", "@context__0_" 2 | "urn:ngsi-ld:Valve:87fe7d79-0d4c-4da9-b7d0-3340efa0656awytsd", "Valve", "2020-03-02T15:42:00Z", "Property", "203.2", "MMT", "Relationship", "urn:ngsi-ld:Reservoir:1863179e-3768-4480-9167-ff21f870dd19", "Property", "OPEN", "Property", "0.0", "C62", "2020-03-02T15:45:00Z", "Property", "0.3", "Property", "40.0", "C62", "Relationship", "urn:ngsi-ld:Junction:63fe7d79-0d4c-4da9-b7d0-3340efa0656a", "Property", "OPEN", "Property", "DMA1", "Property", "PRV", "GeoProperty", "MultiPoint", "24.40623", "60.17966", "24.50623", "60.27966", "https://raw.githubusercontent.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/master/context.jsonld" -------------------------------------------------------------------------------- /Valve/examples/example.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "87fe7d79-0d4c-4da9-b7d0-3340efa0656awytsd", 3 | "type": "Valve", 4 | "initialStatus": "OPEN", 5 | "openStatus": 0.3, 6 | "status": "OPEN", 7 | "diameter": 203.2, 8 | "valveType": "PRV", 9 | "setting": 40.0, 10 | "minorLoss": 0.0, 11 | "tag": "DMA1", 12 | "startsAt": "uri:63fe7d79.0d4c-4da9-b7d0-3340efa0656a", 13 | "endsAt": "uri:1863179e-3768-4480-9167-ff21f870dd19" 14 | } -------------------------------------------------------------------------------- /Valve/examples/example.json.csv: -------------------------------------------------------------------------------- 1 | "id_", "type_", "initialStatus_", "openStatus_", "status_", "diameter_", "valveType_", "setting_", "minorLoss_", "tag_", "startsAt_", "endsAt_" 2 | "87fe7d79-0d4c-4da9-b7d0-3340efa0656awytsd", "Valve", "OPEN", "0.3", "OPEN", "203.2", "PRV", "40.0", "0.0", "DMA1", "uri:63fe7d79.0d4c-4da9-b7d0-3340efa0656a", "uri:1863179e-3768-4480-9167-ff21f870dd19" -------------------------------------------------------------------------------- /Valve/examples/example.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "id": "87fe7d79-0d4c-4da9-b7d0-3340efa0656awytsd", 3 | "type": "Valve", 4 | "diameter": 203.2, 5 | "endsAt": "uri:1863179e-3768-4480-9167-ff21f870dd19", 6 | "initialStatus": "OPEN", 7 | "minorLoss": 0.0, 8 | "openStatus": 0.3, 9 | "setting": 40.0, 10 | "startsAt": "uri:63fe7d79.0d4c-4da9-b7d0-3340efa0656a", 11 | "status": "OPEN", 12 | "tag": "DMA1", 13 | "valveType": "PRV", 14 | "@context": [ 15 | "https://raw.githubusercontent.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/master/context.jsonld" 16 | ] 17 | } -------------------------------------------------------------------------------- /Valve/examples/example.jsonld.csv: -------------------------------------------------------------------------------- 1 | "id_", "type_", "diameter_", "endsAt_", "initialStatus_", "minorLoss_", "openStatus_", "setting_", "startsAt_", "status_", "tag_", "valveType_", "@context__0_" 2 | "87fe7d79-0d4c-4da9-b7d0-3340efa0656awytsd", "Valve", "203.2", "uri:1863179e-3768-4480-9167-ff21f870dd19", "OPEN", "0.0", "0.3", "40.0", "uri:63fe7d79.0d4c-4da9-b7d0-3340efa0656a", "OPEN", "DMA1", "PRV", "https://raw.githubusercontent.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/master/context.jsonld" -------------------------------------------------------------------------------- /Valve/notes.yaml: -------------------------------------------------------------------------------- 1 | notesHeader: 2 | 3 | notesMiddle: 4 | 5 | notesFooter: 6 | -------------------------------------------------------------------------------- /Valve/schema.sql: -------------------------------------------------------------------------------- 1 | /* (Beta) Export of data model Valve of the subject dataModel.WaterDistributionManagementEPANET for a PostgreSQL database. Pending translation of enumerations and multityped attributes */ 2 | CREATE TYPE initialStatus_type AS ENUM ('OPEN','CLOSED','CV');CREATE TYPE status_type AS ENUM ('OPEN','CLOSED','CV');CREATE TYPE Valve_type AS ENUM ('Valve');CREATE TYPE valveType_type AS ENUM ('FCV','GPV','PBV','PRV','PSV','TCV'); 3 | CREATE TABLE Valve (address JSON, alternateName TEXT, areaServed TEXT, dataProvider TEXT, dateCreated TIMESTAMP, dateModified TIMESTAMP, description TEXT, diameter NUMERIC, endsAt TEXT, flow JSON, id TEXT PRIMARY KEY, initialStatus initialStatus_type, location JSON, minorLoss NUMERIC, name TEXT, openStatus NUMERIC, owner JSON, quality JSON, seeAlso JSON, setting NUMERIC, source TEXT, startsAt TEXT, status status_type, tag TEXT, type Valve_type, valveCurve TEXT, valveType valveType_type, velocity JSON, vertices JSON); -------------------------------------------------------------------------------- /Valve/swagger.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | # Copyleft (c) 2022 Contributors to Smart Data Models initiative 3 | # 4 | 5 | 6 | components: 7 | schemas: 8 | Valve: 9 | $ref: "https://smart-data-models.github.io/dataModel.WaterDistributionManagementEPANET/Valve/model.yaml#/Valve" 10 | info: 11 | description: | 12 | This entity contains a harmonised description of a generic Valve made for the Water Network Management domain. This entity is primarily associated with the water management vertical and related IoT applications. 13 | title: Valve 14 | version: "0.1.0" 15 | openapi: "3.0.0" 16 | 17 | paths: 18 | /ngsi-ld/v1/entities: 19 | get: 20 | description: "Retrieve a set of entities which matches a specific query from an NGSI-LD system" 21 | parameters: 22 | - 23 | in: query 24 | name: type 25 | required: true 26 | schema: 27 | enum: 28 | - Valve 29 | type: string 30 | responses: 31 | ? "200" 32 | : 33 | content: 34 | application/ld+json: 35 | examples: 36 | keyvalues: 37 | summary: "Key-Values Pairs" 38 | value: 39 | - 40 | $ref: "https://smart-data-models.github.io/dataModel.WaterDistributionManagementEPANET/Valve/examples/example.json" 41 | normalized: 42 | summary: "Normalized NGSI-LD" 43 | value: 44 | - 45 | $ref: "https://smart-data-models.github.io/dataModel.WaterDistributionManagementEPANET/Valve/examples/example-normalized.jsonld" 46 | description: OK 47 | tags: 48 | - ngsi-ld 49 | tags: 50 | - 51 | description: "NGSI-LD Linked-data Format" 52 | name: ngsi-ld 53 | -------------------------------------------------------------------------------- /WaterNetwork/ADOPTERS.yaml: -------------------------------------------------------------------------------- 1 | description: This is a compilation list of the current adopters of the data model WaterNetwork of the Subject dataModel.WaterNetworkManagementEPANET. All fields are non mandatory. More info at https://smart-data-models.github.io/data-models/templates/dataModel/CURRENT_ADOPTERS.yaml 2 | currentAdopters: 3 | - 4 | adopter: 5 | description: 6 | mail: 7 | organization: 8 | project: 9 | comments: 10 | startDate: 11 | -------------------------------------------------------------------------------- /WaterNetwork/SmartDataModelBadge.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/886407c9fda629bcf73e1656c71eb12ff6157721/WaterNetwork/SmartDataModelBadge.png -------------------------------------------------------------------------------- /WaterNetwork/code/README.md: -------------------------------------------------------------------------------- 1 | # WaterNetwork 2 | 3 | ### List of code samples 4 | 5 | 6 | 7 | 8 | [code_for_using_dataModel.WaterDistributionManagementEPANET_WaterNetwork.py](https://github.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/blob/master/WaterNetwork/code/code_for_using_dataModel.WaterDistributionManagementEPANET_WaterNetwork.py) 9 | 10 | 11 | 12 | 13 | ### Contribution 14 | You can raise an [issue](https://github.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/issues) or submit your [PR](https://github.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/pulls) on existing data models 15 | -------------------------------------------------------------------------------- /WaterNetwork/examples/example-normalized.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "urn:ngsi-ld:WaterNetwork:01", 3 | "type": "WaterNetwork", 4 | "description": { 5 | "type": "Text", 6 | "value": "Free Text" 7 | }, 8 | "isComposedOf": { 9 | "type": "StructuredValue", 10 | "value": [ 11 | "urn:ngsi-ld:Tank:T1", 12 | "urn:ngsi-ld:Pipe:P1", 13 | "urn:ngsi-ld:Junction:J1" 14 | ] 15 | }, 16 | "hasSubNetwork": { 17 | "type": "StructuredValue", 18 | "value": [ 19 | "urn:ngsi-ld:Network:12-70d4l-4da9", 20 | "urn:ngsi-ld:Network:A14-14d4B-4vvc" 21 | ] 22 | } 23 | } -------------------------------------------------------------------------------- /WaterNetwork/examples/example-normalized.json.csv: -------------------------------------------------------------------------------- 1 | "id_", "type_", "description__type_", "description__value_", "isComposedOf__type_", "isComposedOf__value__0_", "isComposedOf__value__1_", "isComposedOf__value__2_", "hasSubNetwork__type_", "hasSubNetwork__value__0_", "hasSubNetwork__value__1_" 2 | "urn:ngsi-ld:WaterNetwork:01", "WaterNetwork", "Text", "Free Text", "StructuredValue", "urn:ngsi-ld:Tank:T1", "urn:ngsi-ld:Pipe:P1", "urn:ngsi-ld:Junction:J1", "StructuredValue", "urn:ngsi-ld:Network:12-70d4l-4da9", "urn:ngsi-ld:Network:A14-14d4B-4vvc" -------------------------------------------------------------------------------- /WaterNetwork/examples/example-normalized.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "id": "urn:ngsi-ld:WaterNetwork:01", 3 | "type": "WaterNetwork", 4 | "description": { 5 | "type": "Property", 6 | "value": "Free Text" 7 | }, 8 | "hasSubNetwork": [ 9 | { 10 | "type": "Relationship", 11 | "object": "urn:ngsi-ld:Network:12-70d4l-4da9", 12 | "datasetId": "urn:ngsi-ld:Dataset:NetworkN1" 13 | }, 14 | { 15 | "type": "Relationship", 16 | "object": "urn:ngsi-ld:Network:A14-14d4B-4vvc", 17 | "datasetId": "urn:ngsi-ld:Dataset:NetworkN2" 18 | } 19 | ], 20 | "isComposedOf": [ 21 | { 22 | "type": "Relationship", 23 | "object": "urn:ngsi-ld:Tank:T1", 24 | "datasetId": "urn:ngsi-ld:Dataset:TankT1" 25 | }, 26 | { 27 | "type": "Relationship", 28 | "object": "urn:ngsi-ld:Pipe:P1", 29 | "datasetId": "urn:ngsi-ld:Dataset:PipeP1" 30 | }, 31 | { 32 | "type": "Relationship", 33 | "object": "urn:ngsi-ld:Junction:J1", 34 | "datasetId": "urn:ngsi-ld:Dataset:JunctionJ1" 35 | } 36 | ], 37 | "@context": [ 38 | "https://raw.githubusercontent.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/master/context.jsonld" 39 | ] 40 | } -------------------------------------------------------------------------------- /WaterNetwork/examples/example-normalized.jsonld.csv: -------------------------------------------------------------------------------- 1 | "id_", "type_", "description__type_", "description__value_", "hasSubNetwork__0__type_", "hasSubNetwork__0__object_", "hasSubNetwork__0__datasetId_", "hasSubNetwork__1__type_", "hasSubNetwork__1__object_", "hasSubNetwork__1__datasetId_", "isComposedOf__0__type_", "isComposedOf__0__object_", "isComposedOf__0__datasetId_", "isComposedOf__1__type_", "isComposedOf__1__object_", "isComposedOf__1__datasetId_", "isComposedOf__2__type_", "isComposedOf__2__object_", "isComposedOf__2__datasetId_", "@context__0_" 2 | "urn:ngsi-ld:WaterNetwork:01", "WaterNetwork", "Property", "Free Text", "Relationship", "urn:ngsi-ld:Network:12-70d4l-4da9", "urn:ngsi-ld:Dataset:NetworkN1", "Relationship", "urn:ngsi-ld:Network:A14-14d4B-4vvc", "urn:ngsi-ld:Dataset:NetworkN2", "Relationship", "urn:ngsi-ld:Tank:T1", "urn:ngsi-ld:Dataset:TankT1", "Relationship", "urn:ngsi-ld:Pipe:P1", "urn:ngsi-ld:Dataset:PipeP1", "Relationship", "urn:ngsi-ld:Junction:J1", "urn:ngsi-ld:Dataset:JunctionJ1", "https://raw.githubusercontent.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/master/context.jsonld" -------------------------------------------------------------------------------- /WaterNetwork/examples/example.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "urn:ngsi-ld:WaterNetwork:01", 3 | "type": "WaterNetwork", 4 | "description": "Free Text", 5 | "isComposedOf": [ 6 | "urn:ngsi-ld:Tank:T1", 7 | "urn:ngsi-ld:Pipe:P1", 8 | "urn:ngsi-ld:Junction:J1" 9 | ], 10 | "hasSubNetwork": [ 11 | "urn:ngsi-ld:Network:12-70d4l-4da9", 12 | "urn:ngsi-ld:Network:A14-14d4B-4vvc" 13 | ] 14 | } -------------------------------------------------------------------------------- /WaterNetwork/examples/example.json.csv: -------------------------------------------------------------------------------- 1 | "id_", "type_", "description_", "isComposedOf__0_", "isComposedOf__1_", "isComposedOf__2_", "hasSubNetwork__0_", "hasSubNetwork__1_" 2 | "urn:ngsi-ld:WaterNetwork:01", "WaterNetwork", "Free Text", "urn:ngsi-ld:Tank:T1", "urn:ngsi-ld:Pipe:P1", "urn:ngsi-ld:Junction:J1", "urn:ngsi-ld:Network:12-70d4l-4da9", "urn:ngsi-ld:Network:A14-14d4B-4vvc" -------------------------------------------------------------------------------- /WaterNetwork/examples/example.jsonld: -------------------------------------------------------------------------------- 1 | { 2 | "id": "urn:ngsi-ld:WaterNetwork:01", 3 | "type": "WaterNetwork", 4 | "description": "Free Text", 5 | "hasSubNetwork": [ 6 | "urn:ngsi-ld:Network:12-70d4l-4da9", 7 | "urn:ngsi-ld:Network:A14-14d4B-4vvc" 8 | ], 9 | "isComposedOf": [ 10 | "urn:ngsi-ld:Tank:T1", 11 | "urn:ngsi-ld:Pipe:P1", 12 | "urn:ngsi-ld:Junction:J1" 13 | ], 14 | "@context": [ 15 | "https://raw.githubusercontent.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/master/context.jsonld" 16 | ] 17 | } -------------------------------------------------------------------------------- /WaterNetwork/examples/example.jsonld.csv: -------------------------------------------------------------------------------- 1 | "id_", "type_", "description_", "hasSubNetwork__0_", "hasSubNetwork__1_", "isComposedOf__0_", "isComposedOf__1_", "isComposedOf__2_", "@context__0_", "@context__1_" 2 | "urn:ngsi-ld:WaterNetwork:01", "WaterNetwork", "Free Text", "urn:ngsi-ld:Network:12-70d4l-4da9", "urn:ngsi-ld:Network:A14-14d4B-4vvc", "urn:ngsi-ld:Tank:T1", "urn:ngsi-ld:Pipe:P1", "urn:ngsi-ld:Junction:J1", "https://smart-data-models.github.io//data-models/context.jsonld", "https://raw.githubusercontent.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/master/context.jsonld" -------------------------------------------------------------------------------- /WaterNetwork/notes.yaml: -------------------------------------------------------------------------------- 1 | notesHeader: 2 | 3 | notesMiddle: 4 | 5 | notesFooter: 6 | -------------------------------------------------------------------------------- /WaterNetwork/resources/SimulationDataModel.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/886407c9fda629bcf73e1656c71eb12ff6157721/WaterNetwork/resources/SimulationDataModel.jpg -------------------------------------------------------------------------------- /WaterNetwork/resources/WaterNetworkdataModel-Example.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/886407c9fda629bcf73e1656c71eb12ff6157721/WaterNetwork/resources/WaterNetworkdataModel-Example.jpg -------------------------------------------------------------------------------- /WaterNetwork/schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://json-schema.org/draft/2020-12/schema", 3 | "modelTags": "FIWARE4WATER", 4 | "$id": "https://smart-data-models.github.io/dataModel.WaterDistributionManagementEPANET/Network/schema.json", 5 | "title": "WaterNetwork - Network", 6 | "description": "This entity contains a harmonised description of a generic network made for the Water Network Management domain. This entity is primarily associated with the water network management vertical and related IoT applications.", 7 | "type": "object", 8 | "$schemaVersion": "0.0.1", 9 | "allOf": [ 10 | { 11 | "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/Location-Commons" 12 | }, 13 | { 14 | "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/GSMA-Commons" 15 | }, 16 | { 17 | "properties": { 18 | "type": { 19 | "type": "string", 20 | "enum": [ 21 | "WaterNetwork" 22 | ], 23 | "description": "Property. NGSI-LD Entity Type. It has to be WaterNetwork. Enum:'WaterNetwork'" 24 | }, 25 | "isComposedOf": { 26 | "type": "array", 27 | "description": "Relationship. Reference to the water component entities of the network, of type `Node (Reservoir, Junction, Tank)` or `Link (Pipe, Valve, Pump)`", 28 | "items": { 29 | "anyOf": [ 30 | { 31 | "type": "string", 32 | "minLength": 1, 33 | "maxLength": 256, 34 | "pattern": "^[\\w\\-\\.\\{\\}\\$\\+\\*\\[\\]`|~^@!,:\\\\]+$" 35 | }, 36 | { 37 | "type": "string", 38 | "format": "uri" 39 | } 40 | ] 41 | } 42 | }, 43 | "hasSubNetwork": { 44 | "type": "array", 45 | "description": "Relationship. Reference to an entity of type `Network`. Model:'https://schema.org/Text'", 46 | "items": { 47 | "anyOf": [ 48 | { 49 | "type": "string", 50 | "minLength": 1, 51 | "maxLength": 256, 52 | "pattern": "^[\\w\\-\\.\\{\\}\\$\\+\\*\\[\\]`|~^@!,:\\\\]+$" 53 | }, 54 | { 55 | "type": "string", 56 | "format": "uri" 57 | } 58 | ] 59 | } 60 | } 61 | } 62 | } 63 | ], 64 | "required": [ 65 | "id", 66 | "type" 67 | ] 68 | } -------------------------------------------------------------------------------- /WaterNetwork/schema.sql: -------------------------------------------------------------------------------- 1 | /* (Beta) Export of data model WaterNetwork of the subject dataModel.WaterDistributionManagementEPANET for a PostgreSQL database. Pending translation of enumerations and multityped attributes */ 2 | CREATE TYPE WaterNetwork_type AS ENUM ('WaterNetwork'); 3 | CREATE TABLE WaterNetwork (address JSON, alternateName TEXT, areaServed TEXT, dataProvider TEXT, dateCreated TIMESTAMP, dateModified TIMESTAMP, description TEXT, hasSubNetwork JSON, id TEXT PRIMARY KEY, isComposedOf JSON, location JSON, name TEXT, owner JSON, seeAlso JSON, source TEXT, type WaterNetwork_type); -------------------------------------------------------------------------------- /WaterNetwork/swagger.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | # Copyleft (c) 2022 Contributors to Smart Data Models initiative 3 | # 4 | 5 | 6 | components: 7 | schemas: 8 | WaterNetwork: 9 | $ref: "https://smart-data-models.github.io/dataModel.WaterDistributionManagementEPANET/WaterNetwork/model.yaml#/WaterNetwork" 10 | info: 11 | description: | 12 | This entity contains a harmonised description of a generic network made for the Water Network Management domain. This entity is primarily associated with the water network management vertical and related IoT applications. 13 | title: WaterNetwork 14 | version: "0.0.1" 15 | openapi: "3.0.0" 16 | 17 | paths: 18 | /ngsi-ld/v1/entities: 19 | get: 20 | description: "Retrieve a set of entities which matches a specific query from an NGSI-LD system" 21 | parameters: 22 | - 23 | in: query 24 | name: type 25 | required: true 26 | schema: 27 | enum: 28 | - WaterNetwork 29 | type: string 30 | responses: 31 | ? "200" 32 | : 33 | content: 34 | application/ld+json: 35 | examples: 36 | keyvalues: 37 | summary: "Key-Values Pairs" 38 | value: 39 | - 40 | $ref: "https://smart-data-models.github.io/dataModel.WaterDistributionManagementEPANET/WaterNetwork/examples/example.json" 41 | normalized: 42 | summary: "Normalized NGSI-LD" 43 | value: 44 | - 45 | $ref: "https://smart-data-models.github.io/dataModel.WaterDistributionManagementEPANET/WaterNetwork/examples/example-normalized.jsonld" 46 | description: OK 47 | tags: 48 | - ngsi-ld 49 | tags: 50 | - 51 | description: "NGSI-LD Linked-data Format" 52 | name: ngsi-ld 53 | -------------------------------------------------------------------------------- /notes.yaml: -------------------------------------------------------------------------------- 1 | notesPrevious: 2 | These data models describe entities useful for dealing with Water WaterNetwork Management data. These entities are primarily derived from the EPANET platform. 3 | 4 | notesEnd: 5 | "" -------------------------------------------------------------------------------- /smartWaterManagement.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/886407c9fda629bcf73e1656c71eb12ff6157721/smartWaterManagement.jpg --------------------------------------------------------------------------------