Skip to content

Commit 9748f84

Browse files
committed
Use NGSI context
1 parent f275aa9 commit 9748f84

3 files changed

Lines changed: 19 additions & 19 deletions

File tree

NGSI-LD Concise Format.postman_collection.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@
279279
"header": [
280280
{
281281
"key": "Link",
282-
"value": "<{{json-context.jsonld}}>; rel=\"http://www.w3.org/ns/json-ld#context\"; type=\"application/ld+json\"",
282+
"value": "<{{ngsi-context.jsonld}}>; rel=\"http://www.w3.org/ns/json-ld#context\"; type=\"application/ld+json\"",
283283
"type": "text"
284284
},
285285
{
@@ -321,7 +321,7 @@
321321
"header": [
322322
{
323323
"key": "Link",
324-
"value": "<{{json-context.jsonld}}>; rel=\"http://www.w3.org/ns/json-ld#context\"; type=\"application/ld+json\"",
324+
"value": "<{{ngsi-context.jsonld}}>; rel=\"http://www.w3.org/ns/json-ld#context\"; type=\"application/ld+json\"",
325325
"type": "text"
326326
},
327327
{
@@ -405,7 +405,7 @@
405405
"header": [
406406
{
407407
"key": "Link",
408-
"value": "<{{json-context.jsonld}}>; rel=\"http://www.w3.org/ns/json-ld#context\"; type=\"application/ld+json\"",
408+
"value": "<{{ngsi-context.jsonld}}>; rel=\"http://www.w3.org/ns/json-ld#context\"; type=\"application/ld+json\"",
409409
"type": "text"
410410
},
411411
{
@@ -454,7 +454,7 @@
454454
"header": [
455455
{
456456
"key": "Link",
457-
"value": "<{{json-context.jsonld}}>; rel=\"http://www.w3.org/ns/json-ld#context\"; type=\"application/ld+json\"",
457+
"value": "<{{ngsi-context.jsonld}}>; rel=\"http://www.w3.org/ns/json-ld#context\"; type=\"application/ld+json\"",
458458
"type": "text"
459459
},
460460
{
@@ -553,7 +553,7 @@
553553
"header": [
554554
{
555555
"key": "Link",
556-
"value": "<{{json-context.jsonld}}>; rel=\"http://www.w3.org/ns/json-ld#context\"; type=\"application/ld+json\"",
556+
"value": "<{{ngsi-context.jsonld}}>; rel=\"http://www.w3.org/ns/json-ld#context\"; type=\"application/ld+json\"",
557557
"type": "text"
558558
},
559559
{

README.ja.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,7 @@ curl -G -iX GET 'http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:Temperatu
669669

670670
```console
671671
curl -G -iX GET 'http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:TemperatureSensor:001' \
672-
-H 'Link: <http://context/json-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \
672+
-H 'Link: <http://context/ngsi-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \
673673
-H 'Accept: application/json' \
674674
-d 'options=concise'
675675
```
@@ -714,7 +714,7 @@ curl -G -iX GET 'http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:Temperatu
714714

715715
```console
716716
curl -G -iX GET 'http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:TemperatureSensor:001' \
717-
-H 'Link: <http://context/json-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \
717+
-H 'Link: <http://context/ngsi-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \
718718
-H 'Accept: application/json' \
719719
-d 'options=concise' \
720720
-d 'attrs=category,temperature'
@@ -821,7 +821,7 @@ curl -G -iX GET 'http://localhost:1026/ngsi-ld/v1/entities/' \
821821

822822
```console
823823
curl -G -iX GET 'http://localhost:1026/ngsi-ld/v1/entities/' \
824-
-H 'Link: <http://context/json-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \
824+
-H 'Link: <http://context/ngsi-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \
825825
-H 'Accept: application/json' \
826826
-d 'type=TemperatureSensor' \
827827
-d 'options=concise' \
@@ -885,7 +885,7 @@ curl -G -iX GET 'http://localhost:1026/ngsi-ld/v1/entities/' \
885885

886886
```console
887887
curl -G -iX GET 'http://localhost:1026/ngsi-ld/v1/entities/'' \
888-
-H 'Link: <http://context/json-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \
888+
-H 'Link: <http://context/ngsi-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \
889889
-H 'Accept: 'application/json' \
890890
-d 'id=urn:ngsi-ld:TemperatureSensor:001,urn:ngsi-ld:TemperatureSensor:002' \
891891
-d 'attrs=temperature' \
@@ -928,7 +928,7 @@ curl -G -iX GET 'http://localhost:1026/ngsi-ld/v1/entities/'' \
928928

929929
```console
930930
curl -G -iX GET 'http://localhost:1026//ngsi-ld/v1/entities/' \
931-
-H 'Link: <http://context/json-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \
931+
-H 'Link: <http://context/ngsi-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \
932932
-H 'Accept: application/geo+json' \
933933
-H 'NGSILD-Tenant: openiot' \
934934
-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/' \
974974
"observedAt": "2022-03-01T15:49:57.039Z"
975975
}
976976
},
977-
"@context": "http://context/json-context.jsonld",
977+
"@context": "http://context/ngsi-context.jsonld",
978978
"geometry": {
979979
"type": "Point",
980980
"coordinates": [13.346, 52.52]
@@ -1010,7 +1010,7 @@ curl -G -iX GET 'http://localhost:1026//ngsi-ld/v1/entities/' \
10101010
"observedAt": "2022-03-01T15:49:57.287Z"
10111011
}
10121012
},
1013-
"@context": "http://context/json-context.jsonld",
1013+
"@context": "http://context/ngsi-context.jsonld",
10141014
"geometry": {
10151015
"type": "Point",
10161016
"coordinates": [13.347, 52.522]

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@ known `id`.
642642

643643
```console
644644
curl -G -iX GET 'http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:TemperatureSensor:001' \
645-
-H 'Link: <http://context/json-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \
645+
-H 'Link: <http://context/ngsi-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \
646646
-H 'Accept: application/json' \
647647
-d 'options=concise'
648648
```
@@ -685,7 +685,7 @@ This example reads the value of two attributes (`category` and `temperature`) fr
685685

686686
```console
687687
curl -G -iX GET 'http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:TemperatureSensor:001' \
688-
-H 'Link: <http://context/json-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \
688+
-H 'Link: <http://context/ngsi-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \
689689
-H 'Accept: application/json' \
690690
-d 'options=concise' \
691691
-d 'attrs=category,temperature'
@@ -788,7 +788,7 @@ This example lists the `temperature` attribute of all **TemperatureSensor** enti
788788

789789
```console
790790
curl -G -iX GET 'http://localhost:1026/ngsi-ld/v1/entities/' \
791-
-H 'Link: <http://context/json-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \
791+
-H 'Link: <http://context/ngsi-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \
792792
-H 'Accept: application/json' \
793793
-d 'type=TemperatureSensor' \
794794
-d 'options=concise' \
@@ -849,7 +849,7 @@ unique, so `type` is not required for this request. To filter by `id` add the en
849849

850850
```console
851851
curl -G -iX GET 'http://localhost:1026/ngsi-ld/v1/entities/'' \
852-
-H 'Link: <http://context/json-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \
852+
-H 'Link: <http://context/ngsi-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \
853853
-H 'Accept: 'application/json' \
854854
-d 'id=urn:ngsi-ld:TemperatureSensor:001,urn:ngsi-ld:TemperatureSensor:002' \
855855
-d 'attrs=temperature' \
@@ -890,7 +890,7 @@ The concise format is also available for the GeoJSON format which can be request
890890

891891
```console
892892
curl -G -iX GET 'http://localhost:1026//ngsi-ld/v1/entities/' \
893-
-H 'Link: <http://context/json-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \
893+
-H 'Link: <http://context/ngsi-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \
894894
-H 'Accept: application/geo+json' \
895895
-H 'NGSILD-Tenant: openiot' \
896896
-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
936936
"observedAt": "2022-03-01T15:49:57.039Z"
937937
}
938938
},
939-
"@context": "http://context/json-context.jsonld",
939+
"@context": "http://context/ngsi-context.jsonld",
940940
"geometry": {
941941
"type": "Point",
942942
"coordinates": [13.346, 52.52]
@@ -972,7 +972,7 @@ The response details the selected attributes from the selected entities is retur
972972
"observedAt": "2022-03-01T15:49:57.287Z"
973973
}
974974
},
975-
"@context": "http://context/json-context.jsonld",
975+
"@context": "http://context/ngsi-context.jsonld",
976976
"geometry": {
977977
"type": "Point",
978978
"coordinates": [13.347, 52.522]

0 commit comments

Comments
 (0)