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 18, 2024
1 parent 598b2de commit 1b49e45
Showing 1 changed file with 106 additions and 106 deletions.
212 changes: 106 additions & 106 deletions Hazard/schema.json
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"
]
}

0 comments on commit 1b49e45

Please sign in to comment.