{ "$schema": "http://json-schema.org/schema#", "$id": "https://smart-data-models.github.io/data-models.OpenChannelManagement/OpenChannelJunction/schema.json", "$schemaVersion": "0.0.1", "modelTags": "FIWARE4WATER", "title": "Open Channel Management - OpenChannelJunction", "description": "This entity contains a harmonised description of a generic Junction made for Raw-Water (Open Channels) System Management domain. A Junction defines a location where the characteristics of the channel changes, two or more channels come together or split apart, amounts of water are abstracted or inserted to the system etc.", "type": "object", "allOf": [ { "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/Location-Commons" }, { "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/GSMA-Commons" }, { "properties": { "type": { "type": "string", "enum": [ "OpenChannelJunction" ], "description": "Property. NGSI Entity Type. it has to be OpenChannelJunction" }, "position": { "type": "object", "description": "Property. Object providing information about the distance with the rest of the elements and a relationship with them.", "properties": { "distance": { "type": "number", "description": "Property. The distance between this Entity and a reference point (e.g., the most upstream point of the system). Units: 'Km'" }, "refPoint": { "anyOf": [ { "type": "string", "minLength": 1, "maxLength": 256, "pattern": "^[\\w\\-\\.\\{\\}\\$\\+\\*\\[\\]`|~^@!,:\\\\]+$", "description": "Property. Identifier format of any NGSI entity." }, { "type": "string", "format": "uri", "description": "Property. Identifier format of any NGSI entity." } ], "description": "Relationship. The reference point distance is measured from." } } }, "downstreamNode": { "anyOf": [ { "type": "string", "minLength": 1, "maxLength": 256, "pattern": "^[\\w\\-\\.\\{\\}\\$\\+\\*\\[\\]`|~^@!,:\\\\]+$", "description": "Property. Identifier format of any NGSI entity" }, { "type": "string", "format": "uri", "description": "Property. Identifier format of any NGSI entity" } ], "description": "Relationship. A relationship indicating the ID of the downstream node (e.g., Junction, Regulation Structure), where the channel ends." }, "upstreamNode": { "anyOf": [ { "type": "string", "minLength": 1, "maxLength": 256, "pattern": "^[\\w\\-\\.\\{\\}\\$\\+\\*\\[\\]`|~^@!,:\\\\]+$", "description": "Property. Identifier format of any NGSI entity" }, { "type": "string", "format": "uri", "description": "Property. Identifier format of any NGSI entity" } ], "description": "Relationship. A relationship indicating the ID of the upstream node (e.g., Junction, Regulation Structure), where the channel begins." }, "observedBy": { "anyOf": [ { "type": "string", "minLength": 1, "maxLength": 256, "pattern": "^[\\w\\-\\.\\{\\}\\$\\+\\*\\[\\]`|~^@!,:\\\\]+$", "description": "Property. Identifier format of any NGSI entity" }, { "type": "string", "format": "uri", "description": "Property. Identifier format of any NGSI entity" } ], "description": "Relationship. A relationship to the ID of the device that monitors raw-water properties. Model:'https://smart-data-models.github.io/dataModel.Device/device-schema.json'" }, "uniqueName": { "type": "string", "description": "Property. The name of the junction." }, "tag": { "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/tag" }, "waterOutflow": { "type": "number", "minimum": 0, "description": "Property. Water flow abstracted from the junction or diverted to another source. Units:'m3/s'" }, "waterInflow": { "type": "number", "minimum": 0, "description": "Property. Water flow inserted to the junction. Units:'m3/s'" } } } ], "required": [ "id", "type" ] }