From 97b290f4e7899a0124eb63d045a4012490f0ef9f Mon Sep 17 00:00:00 2001 From: Jose Manuel Cantera Date: Fri, 2 Nov 2018 13:17:03 +0100 Subject: [PATCH] Schema examples --- schema-examples/Entity-example.json | 20 ++++++++++++++++++++ schema-examples/README.md | 3 +++ 2 files changed, 23 insertions(+) create mode 100644 schema-examples/Entity-example.json create mode 100644 schema-examples/README.md diff --git a/schema-examples/Entity-example.json b/schema-examples/Entity-example.json new file mode 100644 index 0000000..a791d1a --- /dev/null +++ b/schema-examples/Entity-example.json @@ -0,0 +1,20 @@ +{ + "id": "urn:ngsi-ld:Vehicle:V123", + "type": "Vehicle", + "speed": { + "type": "Property", + "value": 23, + "accuracy": { + "type": "Property", + "value": 22 + }, + "providedBy": { + "type": "Relationship", + "object": "urn:ngsi-ld:Person:Bob" + } + }, + "closeTo": { + "type": "Relationship", + "object": "urn:ngsi-ld:Building:B1234" + } +} diff --git a/schema-examples/README.md b/schema-examples/README.md new file mode 100644 index 0000000..a7d8392 --- /dev/null +++ b/schema-examples/README.md @@ -0,0 +1,3 @@ +# NGSI-LD Examples for Schemas + +These examples are intended to validate the JSON Schemas -- GitLab