{ "$schema": "http://json-schema.org/schema#", "$schemaVersion": "0.0.1", "modelTags": "", "$id": "https://raw.githubusercontent.com/smart-data-models/dataModel.RiskAssessment/master/Exposure/schema.json", "title": "Smart Data Models - Risk Assessment - Exposure Entity", "description": "This entity contains a harmonised description of a generic Exposure 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 Exposure", "enum": [ "Exposure" ] }, "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 Exposure Map and contains its ids, values and colors" }, "isAffectedBy": { "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 SMAnalysis that affects this Exposure entity" }, "createsLayers": { "type": "array", "description": "Relationship. Array of URIs of the layers created by this Exposure entity", "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" ] }