From 1b49e45e6aaeda01d5401cd86a366599cd2d12af Mon Sep 17 00:00:00 2001 From: Alberto Abella Date: Wed, 18 Sep 2024 15:10:19 +0200 Subject: [PATCH] updated $schema last version --- Hazard/schema.json | 212 ++++++++++++++++++++++----------------------- 1 file changed, 106 insertions(+), 106 deletions(-) diff --git a/Hazard/schema.json b/Hazard/schema.json index 8471df5..6c27679 100644 --- a/Hazard/schema.json +++ b/Hazard/schema.json @@ -1,113 +1,113 @@ { - "$schema": "http://json-schema.org/schema#", - "$schemaVersion": "0.0.1", - "modelTags": "", - "$id": "https://raw.githubusercontent.com/smart-data-models/dataModel.RiskAssessment/master/Hazard/schema.json", - "title": "Smart Data Models - Risk Assessment - Hazard Entity", - "description": "This entity contains a harmonised description of a generic Hazard entity made for the Risk Assessment domain.", - "type": "object", - "allOf": [ - { - "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/GSMA-Commons" + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$schemaVersion": "0.0.1", + "modelTags": "", + "$id": "https://raw.githubusercontent.com/smart-data-models/dataModel.RiskAssessment/master/Hazard/schema.json", + "title": "Smart Data Models - Risk Assessment - Hazard Entity", + "description": "This entity contains a harmonised description of a generic Hazard entity made for the Risk Assessment domain.", + "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", + "description": "Property. NGSI-LD Entity Type. It must be equal to Hazard", + "enum": [ + "Hazard" + ] }, - { - "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/Location-Commons" + "analyzedAt": { + "type": "string", + "format": "date-time", + "description": "Property. Model:'https://schema.org/Time'. The time at which the analysis finished" }, - { + "analysisType": { + "type": "string", + "description": "Property. The type of analysis" + }, + "contentInformation": { + "type": "array", + "items": { + "type": "object", "properties": { - "type": { - "type": "string", - "description": "Property. NGSI-LD Entity Type. It must be equal to Hazard", - "enum": [ - "Hazard" - ] - }, - "analyzedAt": { - "type": "string", - "format": "date-time", - "description": "Property. Model:'https://schema.org/Time'. The time at which the analysis finished" - }, - "analysisType": { - "type": "string", - "description": "Property. The type of analysis" - }, - "contentInformation": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "value": { - "type": "string" - }, - "color": { - "type": "string" - } - } - }, - "description": "Property. Array of objects that describes the Hazard Map and contains its ids, values and colors" - }, - "isAffectedByEO": { - "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 ID of the EOAnalysis that identified this hazard" - }, - "isAffectedByGIS": { - "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 ID of the GISData that identified this hazard" - }, - "createsLayers": { - "type": "array", - "description": "Relationship. Array of URIs of the layers created by this hazard", - "items": { - "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" - } - ] - } - } + "id": { + "type": "number" + }, + "value": { + "type": "string" + }, + "color": { + "type": "string" + } + } + }, + "description": "Property. Array of objects that describes the Hazard Map and contains its ids, values and colors" + }, + "isAffectedByEO": { + "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 ID of the EOAnalysis that identified this hazard" + }, + "isAffectedByGIS": { + "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 ID of the GISData that identified this hazard" + }, + "createsLayers": { + "type": "array", + "description": "Relationship. Array of URIs of the layers created by this hazard", + "items": { + "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" + } + ] + } } - ], - "required": [ - "id", - "type" - ] + } + } + ], + "required": [ + "id", + "type" + ] } \ No newline at end of file