{ "title": "NGSI-LD Entity", "description": "NGSI-LD Entity", "definitions": { "datasetId": { "type": "string", "format": "uri" }, "instanceId": { "type": "string", "format": "uri" }, "Property": { "type": "object", "properties": { "type": { "type": "string", "enum": ["Property"] }, "value": { "oneOf": [ "string", "number", "boolean", "array", "object" ] }, "observedAt": { "$ref": "http://localhost:8090/schema/common.json#/definitions/observedAt" }, "createdAt": { "$ref": "http://localhost:8090/schema/common.json#/definitions/createdAt" }, "modifiedAt": { "$ref": "http://localhost:8090/schema/common.json#/definitions/modifiedAt" }, "datasetId": { "$ref": "#/definitions/datasetId" }, "instanceId": { "$ref": "#/definitions/instanceId" } }, "required": [ "type", "value" ], "additionalProperties": { "oneOf": [ { "$ref": "#/definitions/Property" }, { "$ref": "#/definitions/Relationship" } ] } }, "Relationship": { "type": "object", "properties": { "type": { "type": "string", "enum": ["Relationship"] }, "object": { "type": "string", "format": "uri" }, "observedAt": { "$ref": "http://localhost:8090/schema/common.json#/definitions/observedAt" }, "createdAt": { "$ref": "http://localhost:8090/schema/common.json#/definitions/createdAt" }, "modifiedAt": { "$ref": "http://localhost:8090/schema/common.json#/definitions/modifiedAt" }, "datasetId": { "$ref": "#/definitions/datasetId" }, "instanceId": { "$ref": "#/definitions/instanceId" } }, "required": [ "type", "object" ], "additionalProperties": { "oneOf": [ { "$ref": "#/definitions/Property" }, { "$ref": "#/definitions/Relationship" } ] } }, "GeoProperty": { "type": "object", "properties": { "type": { "type": "string", "enum": ["GeoProperty"] }, "value": { "$ref": "http://localhost:8090/schema/Geometry.json#/definitions/Geometry" }, "observedAt": { "$ref": "http://localhost:8090/schema/common.json#/definitions/observedAt" }, "createdAt": { "$ref": "http://localhost:8090/schema/common.json#/definitions/createdAt" }, "modifiedAt": { "$ref": "http://localhost:8090/schema/common.json#/definitions/modifiedAt" }, "datasetId": { "$ref": "#/definitions/datasetId" }, "instanceId": { "$ref": "#/definitions/instanceId" } }, "required": [ "type", "value" ], "additionalProperties": { "oneOf": [ { "$ref": "#/definitions/Property" }, { "$ref": "#/definitions/Relationship" } ] } }, "EntityFragment": { "type": "object", "properties": { "@context": { "$ref": "http://localhost:8090/schema/common.json#/definitions/LdContext" }, "location": { "$ref": "#/definitions/GeoProperty" }, "observationSpace": { "$ref": "#/definitions/GeoProperty" }, "operationSpace": { "$ref": "#/definitions/GeoProperty" }, "id": { "type": "string", "format": "uri" }, "type": { "$ref": "http://localhost:8090/schema/common.json#/definitions/Name" }, "createdAt": { "$ref": "http://localhost:8090/schema/common.json#/definitions/createdAt" }, "modifiedAt": { "$ref": "http://localhost:8090/schema/common.json#/definitions/modifiedAt" } }, "additionalProperties": { "oneOf": [ { "$ref": "#/definitions/Property" }, { "$ref": "#/definitions/Relationship" }, { "$ref": "#/definitions/GeoProperty" } ] } }, "Entity": { "allOf": [ { "required": [ "id", "type" ] }, { "$ref": "#/definitions/EntityFragment" } ] } }, "allOf": [ { "$ref": "#/definitions/Entity" } ] }