Skip to content

Commit

Permalink
updated $schema last version
Browse files Browse the repository at this point in the history
  • Loading branch information
albertoabellagarcia committed Sep 17, 2024
1 parent e98c257 commit 2af9973
Showing 1 changed file with 114 additions and 114 deletions.
228 changes: 114 additions & 114 deletions SimulationResult/schema.json
Original file line number Diff line number Diff line change
@@ -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"
]
}

0 comments on commit 2af9973

Please sign in to comment.