From 9748f84c999b50c0ad2630e063d27b60940367b8 Mon Sep 17 00:00:00 2001 From: Jason Fox Date: Fri, 14 Jun 2024 12:41:46 +0200 Subject: [PATCH] Use NGSI context --- NGSI-LD Concise Format.postman_collection.json | 10 +++++----- README.ja.md | 14 +++++++------- README.md | 14 +++++++------- 3 files changed, 19 insertions(+), 19 deletions(-) diff --git a/NGSI-LD Concise Format.postman_collection.json b/NGSI-LD Concise Format.postman_collection.json index 77e82fe..e576f6e 100644 --- a/NGSI-LD Concise Format.postman_collection.json +++ b/NGSI-LD Concise Format.postman_collection.json @@ -279,7 +279,7 @@ "header": [ { "key": "Link", - "value": "<{{json-context.jsonld}}>; rel=\"http://www.w3.org/ns/json-ld#context\"; type=\"application/ld+json\"", + "value": "<{{ngsi-context.jsonld}}>; rel=\"http://www.w3.org/ns/json-ld#context\"; type=\"application/ld+json\"", "type": "text" }, { @@ -321,7 +321,7 @@ "header": [ { "key": "Link", - "value": "<{{json-context.jsonld}}>; rel=\"http://www.w3.org/ns/json-ld#context\"; type=\"application/ld+json\"", + "value": "<{{ngsi-context.jsonld}}>; rel=\"http://www.w3.org/ns/json-ld#context\"; type=\"application/ld+json\"", "type": "text" }, { @@ -405,7 +405,7 @@ "header": [ { "key": "Link", - "value": "<{{json-context.jsonld}}>; rel=\"http://www.w3.org/ns/json-ld#context\"; type=\"application/ld+json\"", + "value": "<{{ngsi-context.jsonld}}>; rel=\"http://www.w3.org/ns/json-ld#context\"; type=\"application/ld+json\"", "type": "text" }, { @@ -454,7 +454,7 @@ "header": [ { "key": "Link", - "value": "<{{json-context.jsonld}}>; rel=\"http://www.w3.org/ns/json-ld#context\"; type=\"application/ld+json\"", + "value": "<{{ngsi-context.jsonld}}>; rel=\"http://www.w3.org/ns/json-ld#context\"; type=\"application/ld+json\"", "type": "text" }, { @@ -553,7 +553,7 @@ "header": [ { "key": "Link", - "value": "<{{json-context.jsonld}}>; rel=\"http://www.w3.org/ns/json-ld#context\"; type=\"application/ld+json\"", + "value": "<{{ngsi-context.jsonld}}>; rel=\"http://www.w3.org/ns/json-ld#context\"; type=\"application/ld+json\"", "type": "text" }, { diff --git a/README.ja.md b/README.ja.md index 0c37e62..9c1e0b6 100644 --- a/README.ja.md +++ b/README.ja.md @@ -669,7 +669,7 @@ curl -G -iX GET 'http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:Temperatu ```console curl -G -iX GET 'http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:TemperatureSensor:001' \ --H 'Link: ; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \ +-H 'Link: ; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \ -H 'Accept: application/json' \ -d 'options=concise' ``` @@ -714,7 +714,7 @@ curl -G -iX GET 'http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:Temperatu ```console curl -G -iX GET 'http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:TemperatureSensor:001' \ --H 'Link: ; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \ +-H 'Link: ; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \ -H 'Accept: application/json' \ -d 'options=concise' \ -d 'attrs=category,temperature' @@ -821,7 +821,7 @@ curl -G -iX GET 'http://localhost:1026/ngsi-ld/v1/entities/' \ ```console curl -G -iX GET 'http://localhost:1026/ngsi-ld/v1/entities/' \ --H 'Link: ; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \ +-H 'Link: ; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \ -H 'Accept: application/json' \ -d 'type=TemperatureSensor' \ -d 'options=concise' \ @@ -885,7 +885,7 @@ curl -G -iX GET 'http://localhost:1026/ngsi-ld/v1/entities/' \ ```console curl -G -iX GET 'http://localhost:1026/ngsi-ld/v1/entities/'' \ --H 'Link: ; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \ +-H 'Link: ; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \ -H 'Accept: 'application/json' \ -d 'id=urn:ngsi-ld:TemperatureSensor:001,urn:ngsi-ld:TemperatureSensor:002' \ -d 'attrs=temperature' \ @@ -928,7 +928,7 @@ curl -G -iX GET 'http://localhost:1026/ngsi-ld/v1/entities/'' \ ```console curl -G -iX GET 'http://localhost:1026//ngsi-ld/v1/entities/' \ --H 'Link: ; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \ +-H 'Link: ; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \ -H 'Accept: application/geo+json' \ -H 'NGSILD-Tenant: openiot' \ -d 'id=urn:ngsi-ld:Animal:pig010,urn:ngsi-ld:Animal:pig006' \ @@ -974,7 +974,7 @@ curl -G -iX GET 'http://localhost:1026//ngsi-ld/v1/entities/' \ "observedAt": "2022-03-01T15:49:57.039Z" } }, - "@context": "http://context/json-context.jsonld", + "@context": "http://context/ngsi-context.jsonld", "geometry": { "type": "Point", "coordinates": [13.346, 52.52] @@ -1010,7 +1010,7 @@ curl -G -iX GET 'http://localhost:1026//ngsi-ld/v1/entities/' \ "observedAt": "2022-03-01T15:49:57.287Z" } }, - "@context": "http://context/json-context.jsonld", + "@context": "http://context/ngsi-context.jsonld", "geometry": { "type": "Point", "coordinates": [13.347, 52.522] diff --git a/README.md b/README.md index f0b247b..1f1f84e 100644 --- a/README.md +++ b/README.md @@ -642,7 +642,7 @@ known `id`. ```console curl -G -iX GET 'http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:TemperatureSensor:001' \ --H 'Link: ; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \ +-H 'Link: ; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \ -H 'Accept: application/json' \ -d 'options=concise' ``` @@ -685,7 +685,7 @@ This example reads the value of two attributes (`category` and `temperature`) fr ```console curl -G -iX GET 'http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:TemperatureSensor:001' \ --H 'Link: ; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \ +-H 'Link: ; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \ -H 'Accept: application/json' \ -d 'options=concise' \ -d 'attrs=category,temperature' @@ -788,7 +788,7 @@ This example lists the `temperature` attribute of all **TemperatureSensor** enti ```console curl -G -iX GET 'http://localhost:1026/ngsi-ld/v1/entities/' \ --H 'Link: ; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \ +-H 'Link: ; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \ -H 'Accept: application/json' \ -d 'type=TemperatureSensor' \ -d 'options=concise' \ @@ -849,7 +849,7 @@ unique, so `type` is not required for this request. To filter by `id` add the en ```console curl -G -iX GET 'http://localhost:1026/ngsi-ld/v1/entities/'' \ --H 'Link: ; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \ +-H 'Link: ; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \ -H 'Accept: 'application/json' \ -d 'id=urn:ngsi-ld:TemperatureSensor:001,urn:ngsi-ld:TemperatureSensor:002' \ -d 'attrs=temperature' \ @@ -890,7 +890,7 @@ The concise format is also available for the GeoJSON format which can be request ```console curl -G -iX GET 'http://localhost:1026//ngsi-ld/v1/entities/' \ --H 'Link: ; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \ +-H 'Link: ; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \ -H 'Accept: application/geo+json' \ -H 'NGSILD-Tenant: openiot' \ -d 'id=urn:ngsi-ld:Animal:pig010,urn:ngsi-ld:Animal:pig006' \ @@ -936,7 +936,7 @@ The response details the selected attributes from the selected entities is retur "observedAt": "2022-03-01T15:49:57.039Z" } }, - "@context": "http://context/json-context.jsonld", + "@context": "http://context/ngsi-context.jsonld", "geometry": { "type": "Point", "coordinates": [13.346, 52.52] @@ -972,7 +972,7 @@ The response details the selected attributes from the selected entities is retur "observedAt": "2022-03-01T15:49:57.287Z" } }, - "@context": "http://context/json-context.jsonld", + "@context": "http://context/ngsi-context.jsonld", "geometry": { "type": "Point", "coordinates": [13.347, 52.522]