{ "$schema": "http://json-schema.org/schema#", "modelTags": "", "$id": "https://smart-data-models.github.io/data-models.OpenChannelManagement/CrossSection/schema.json", "$schemaVersion": "0.0.1", "title": "Smart Data Models - CrossSection ", "description": "This entity contains a harmonised description of a generic Cross-Section made for Raw-Water (Open Channels) System Management domain. A CrossSection defines any point of the system where raw-water properties are monitored by a device and/or computed via simulation.", "type": "object", "allOf": [ { "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/GSMA-Commons" }, { "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/Location-Commons" }, { "properties": { "type": { "type": "string", "enum": [ "CrossSection" ], "description": "Property. NGSI-LD Entity Type. It has to be CrossSection." }, "attachedTo": { "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 channel where the cross-section 'lives in'. Reference to an entity of type Channel." }, "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'" }, "tag": { "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/tag" }, "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)." }, "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." } } }, "waterFlow": { "type": "number", "minimum": 0, "description": "Property. Water flow at the cross-section." }, "waterVelocity": { "type": "number", "minimum": 0, "description": "Property. Water Velocity at the cross-section." }, "waterTemperature": { "type": "number", "description": "Property. Water temperature at the cross-section." }, "turbidity": { "type": "number", "minimum": 0, "description": "Property. Water turbidity at the cross-section." }, "specificConductivity": { "type": "number", "minimum": 0, "description": "Property. Water conductivity at the cross-section." }, "waterLevel": { "type": "number", "minimum": 0, "description": "Property. Water level at the cross-section." }, "energyHead": { "type": "number", "description": "Property. The total energy head at the cross-section." }, "crossSectionGeometry": { "type": "string", "enum": [ "Circular", "Trapezoidal" ], "description": "Property. The geometry of the cross-section. Enum:'Circular, Trapezoidal'." }, "bottomSlope": { "type": "number", "minimum": 0, "description": "Property. The bottom slope of the channel where the cross-section 'lives in'. All units are accepted in CEFACT code." }, "leftSideSlope": { "type": "number", "minimum": 0, "description": "Property. The slope of the left bank of the cross-section (for 'Trapezoidal' geometry). All units are accepted in CEFACT code." }, "rightSideSlope": { "type": "number", "minimum": 0, "description": "Property. The slope of the right bank of the cross-section (for 'Trapezoidal' geometry). All units are accepted in CEFACT code." }, "bottomWidth": { "type": "number", "minimum": 0, "description": "Property. The bottom width of the cross-section (for 'Trapezoidal' geometry). All units are accepted in CEFACT code." }, "diameter": { "type": "number", "minimum": 0, "description": "Property. The diameter of a circular cross-section." }, "maxWaterDepth": { "type": "number", "minimum": 0, "description": "Property. The maximum allowable water depth at the cross-section. All units are accepted in CEFACT code." }, "inheritsFrom": { "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. URI of a Channel component from which the value of a property is obtained." } } } ], "required": [ "id", "type" ] }