Loading schema-examples/Entity-example.json +8 −1 Original line number Diff line number Diff line Loading @@ -16,5 +16,12 @@ "closeTo": { "type": "Relationship", "object": "urn:ngsi-ld:Building:B1234" }, "location": { "type": "GeoProperty", "value": { "type":"Point", "coordinates": [-8,44] } } } schema/Entity.json +36 −0 Original line number Diff line number Diff line Loading @@ -95,6 +95,39 @@ } } ] }, "GeoProperty": { "allOf": [ { "$ref": "#/definitions/Commons" }, { "type": "object", "properties": { "type": { "type": "string", "const": "GeoProperty" }, "value": { "$ref": "https://raw.githubusercontent.com/Fiware/dataModels/master/geometry-schema.json" } }, "required": [ "type", "value" ], "additionalProperties": { "anyOf": [ { "$ref": "#/definitions/Property" }, { "$ref": "#/definitions/Relationship" } ] } } ] } }, "type": "object", Loading @@ -119,6 +152,9 @@ }, { "$ref": "#/definitions/Relationship" }, { "$ref": "#/definitions/GeoProperty" } ] } Loading Loading
schema-examples/Entity-example.json +8 −1 Original line number Diff line number Diff line Loading @@ -16,5 +16,12 @@ "closeTo": { "type": "Relationship", "object": "urn:ngsi-ld:Building:B1234" }, "location": { "type": "GeoProperty", "value": { "type":"Point", "coordinates": [-8,44] } } }
schema/Entity.json +36 −0 Original line number Diff line number Diff line Loading @@ -95,6 +95,39 @@ } } ] }, "GeoProperty": { "allOf": [ { "$ref": "#/definitions/Commons" }, { "type": "object", "properties": { "type": { "type": "string", "const": "GeoProperty" }, "value": { "$ref": "https://raw.githubusercontent.com/Fiware/dataModels/master/geometry-schema.json" } }, "required": [ "type", "value" ], "additionalProperties": { "anyOf": [ { "$ref": "#/definitions/Property" }, { "$ref": "#/definitions/Relationship" } ] } } ] } }, "type": "object", Loading @@ -119,6 +152,9 @@ }, { "$ref": "#/definitions/Relationship" }, { "$ref": "#/definitions/GeoProperty" } ] } Loading