From 2af9973d26d762b9b49bf946a4fa0dae3375703d Mon Sep 17 00:00:00 2001 From: Alberto Abella Date: Wed, 18 Sep 2024 01:19:55 +0200 Subject: [PATCH] updated $schema last version --- SimulationResult/schema.json | 228 +++++++++++++++++------------------ 1 file changed, 114 insertions(+), 114 deletions(-) diff --git a/SimulationResult/schema.json b/SimulationResult/schema.json index 33e773ac..063e36eb 100644 --- a/SimulationResult/schema.json +++ b/SimulationResult/schema.json @@ -1,124 +1,124 @@ { - "$schema": "http://json-schema.org/schema#", - "modelTags": "FIWARE4WATER", - "$id": "https://smart-data-models.github.io/dataModel.WaterDistributionManagementEPANET/Result/schema.json", - "$schemaVersion": "0.0.2", - "title": "WaterNetwork - SimulationResult", - "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.", - "type": "object", - "allOf": [ - { - "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/Location-Commons" + "$schema": "https://json-schema.org/draft/2020-12/schema", + "modelTags": "FIWARE4WATER", + "$id": "https://smart-data-models.github.io/dataModel.WaterDistributionManagementEPANET/Result/schema.json", + "$schemaVersion": "0.0.2", + "title": "WaterNetwork - SimulationResult", + "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.", + "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" + }, + { + "$ref": "https://raw.githubusercontent.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/master/WaterNetworkManagement-schema.json" + }, + { + "properties": { + "type": { + "type": "string", + "enum": [ + "SimulationResult" + ], + "description": "Property. NGSI-LD Entity Type. It has to be SimulationResult" }, - { - "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/GSMA-Commons" + "hasInputNetwork": { + "anyOf": [ + { + "type": "string", + "minLength": 1, + "maxLength": 256, + "pattern": "^[\\w\\-\\.\\{\\}\\$\\+\\*\\[\\]`|~^@!,:\\\\]+$" + }, + { + "type": "string", + "format": "uri" + } + ], + "description": "Relationship. Model:'https://schema.org/URL'. The ID of the network used in the simulation" }, - { - "$ref": "https://raw.githubusercontent.com/smart-data-models/dataModel.WaterDistributionManagementEPANET/master/WaterNetworkManagement-schema.json" + "refSimulationScenario": { + "anyOf": [ + { + "type": "string", + "minLength": 1, + "maxLength": 256, + "pattern": "^[\\w\\-\\.\\{\\}\\$\\+\\*\\[\\]`|~^@!,:\\\\]+$" + }, + { + "type": "string", + "format": "uri" + } + ], + "description": "Relationship. Model:'https://schema.org/URL'. The ID of the simulation scenario" }, - { + "outputParameters": { + "type": "array", + "description": "Property. Description of the set of results of applied simulation to the network", + "items": { + "type": "object", "properties": { - "type": { + "parameter": { + "type": "string", + "enum": [ + "demand", + "energyUse", + "flow", + "head", + "initialQuality", + "level", + "pressure", + "quality", + "sourceMassInflow", + "supply", + "velocity", + "waterLevel" + ] + }, + "value": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + } + ] + }, + "targetURI": { + "anyOf": [ + { "type": "string", - "enum": [ - "SimulationResult" - ], - "description": "Property. NGSI-LD Entity Type. It has to be SimulationResult" - }, - "hasInputNetwork": { - "anyOf": [ - { - "type": "string", - "minLength": 1, - "maxLength": 256, - "pattern": "^[\\w\\-\\.\\{\\}\\$\\+\\*\\[\\]`|~^@!,:\\\\]+$" - }, - { - "type": "string", - "format": "uri" - } - ], - "description": "Relationship. Model:'https://schema.org/URL'. The ID of the network used in the simulation" - }, - "refSimulationScenario": { - "anyOf": [ - { - "type": "string", - "minLength": 1, - "maxLength": 256, - "pattern": "^[\\w\\-\\.\\{\\}\\$\\+\\*\\[\\]`|~^@!,:\\\\]+$" - }, - { - "type": "string", - "format": "uri" - } - ], - "description": "Relationship. Model:'https://schema.org/URL'. The ID of the simulation scenario" - }, - "outputParameters": { - "type": "array", - "description": "Property. Description of the set of results of applied simulation to the network", - "items": { - "type": "object", - "properties": { - "parameter": { - "type": "string", - "enum": [ - "demand", - "energyUse", - "flow", - "head", - "initialQuality", - "level", - "pressure", - "quality", - "sourceMassInflow", - "supply", - "velocity", - "waterLevel" - ] - }, - "value": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "number" - }, - { - "type": "boolean" - } - ] - }, - "targetURI": { - "anyOf": [ - { - "type": "string", - "minLength": 1, - "maxLength": 256, - "pattern": "^[\\w\\-\\.\\{\\}\\$\\+\\*\\[\\]`|~^@!,:\\\\]+$" - }, - { - "type": "string", - "format": "uri" - } - ] - } - } - } - }, - "outputFile": { + "minLength": 1, + "maxLength": 256, + "pattern": "^[\\w\\-\\.\\{\\}\\$\\+\\*\\[\\]`|~^@!,:\\\\]+$" + }, + { "type": "string", - "format": "uri", - "description": "Property. Link to binary file containing results of applied simulation to the network" - } + "format": "uri" + } + ] + } } + } + }, + "outputFile": { + "type": "string", + "format": "uri", + "description": "Property. Link to binary file containing results of applied simulation to the network" } - ], - "required": [ - "id", - "type", - "refSimulationScenario" - ] + } + } + ], + "required": [ + "id", + "type", + "refSimulationScenario" + ] } \ No newline at end of file