From bd422d3ddfa795231b8cb9ee187873153538670a Mon Sep 17 00:00:00 2001 From: Jose Manuel Cantera Date: Wed, 21 Nov 2018 13:53:04 +0100 Subject: [PATCH] Context Source Registrations --- ...ContextSourceRegistrationList-example.json | 77 +++++++++++++++++++ spec/updated/csource-registrations-spec.json | 29 ++++++- 2 files changed, 105 insertions(+), 1 deletion(-) create mode 100644 examples/ContextSourceRegistrationList-example.json diff --git a/examples/ContextSourceRegistrationList-example.json b/examples/ContextSourceRegistrationList-example.json new file mode 100644 index 0000000..8db699a --- /dev/null +++ b/examples/ContextSourceRegistrationList-example.json @@ -0,0 +1,77 @@ +[{ + "id": "urn:ngsi-ld:ContextSourceRegistration:csr1a3456", + "type": "ContextSourceRegistration", + "information": [ + { + "entities": [ + { + "id": "urn:ngsi-ld:Vehicle:A456", + "type": "Vehicle" + } + ], + "properties": [ + "brandName", + "speed" + ], + "relationships": [ + "isParked" + ] + }, + { + "entities": [ + { + "idPattern": ".*downtown$", + "type": "OffStreetParking" + }, + { + "idPattern": ".*47$", + "type": "OffStreetParking" + } + ], + "properties": [ + "availableSpotNumber", + "totalSpotNumber" + ], + "relationships": [ + "isNextToBuilding" + ] + } + ], + "endpoint": "http://my.csource.org:1026", + "location": { + "type": "Polygon", + "coordinates": [ + [ + [ + 100.0, + 0.0 + ], + [ + 101.0, + 0.0 + ], + [ + 101.0, + 1.0 + ], + [ + 100.0, + 1.0 + ], + [ + 100.0, + 0.0 + ] + ] + ] + }, + "timestamp": [{ + "start": "2017-11-29T14:53:15Z" + }], + "@context": [ + "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/coreContext/ngsi-ld-core-context.json", + "http://example.org/cim/commonTerms.jsonld", + "http://example.org/cim/vehicle.jsonld", + "http://example.org/cim/parking.jsonld" + ] +}] diff --git a/spec/updated/csource-registrations-spec.json b/spec/updated/csource-registrations-spec.json index f69ca0e..56f1404 100644 --- a/spec/updated/csource-registrations-spec.json +++ b/spec/updated/csource-registrations-spec.json @@ -15,7 +15,34 @@ "operationId": "queryCsources", "parameters": [ { - "$ref": "#/components/parameters/limit" + "$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/spec/updated/entities-spec.json#/components/parameters/id" + }, + { + "$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/spec/updated/entities-spec.json#/components/parameters/idPattern" + }, + { + "$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/spec/updated/entities-spec.json#/components/parameters/type" + }, + { + "$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/spec/updated/entities-spec.json#/components/parameters/attrs" + }, + { + "$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/spec/updated/entities-spec.json#/components/parameters/q" + }, + { + "$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/spec/updated/entities-spec.json#/components/parameters/georel" + }, + { + "$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/spec/updated/entities-spec.json#/components/parameters/geometry" + }, + { + "$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/spec/updated/entities-spec.json#/components/parameters/coordinates" + }, + { + "$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/spec/updated/entities-spec.json#/components/parameters/geoproperty" + }, + { + "$ref": "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/spec/updated/entities-spec.json#/components/parameters/limit" } ], "responses": { -- GitLab