-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
598b2de
commit 1b49e45
Showing
1 changed file
with
106 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
] | ||
} |