Skip to content

Commit

Permalink
Use NGSI context
Browse files Browse the repository at this point in the history
  • Loading branch information
jason-fox committed Jun 14, 2024
1 parent f275aa9 commit 9748f84
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 19 deletions.
10 changes: 5 additions & 5 deletions NGSI-LD Concise Format.postman_collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
{
Expand Down Expand Up @@ -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"
},
{
Expand Down Expand Up @@ -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"
},
{
Expand Down Expand Up @@ -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"
},
{
Expand Down Expand Up @@ -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"
},
{
Expand Down
14 changes: 7 additions & 7 deletions README.ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -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: <http://context/json-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \
-H 'Link: <http://context/ngsi-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \
-H 'Accept: application/json' \
-d 'options=concise'
```
Expand Down Expand Up @@ -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: <http://context/json-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \
-H 'Link: <http://context/ngsi-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \
-H 'Accept: application/json' \
-d 'options=concise' \
-d 'attrs=category,temperature'
Expand Down Expand Up @@ -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: <http://context/json-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \
-H 'Link: <http://context/ngsi-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \
-H 'Accept: application/json' \
-d 'type=TemperatureSensor' \
-d 'options=concise' \
Expand Down Expand Up @@ -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: <http://context/json-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \
-H 'Link: <http://context/ngsi-context.jsonld>; 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' \
Expand Down Expand Up @@ -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: <http://context/json-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \
-H 'Link: <http://context/ngsi-context.jsonld>; 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' \
Expand Down Expand Up @@ -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]
Expand Down Expand Up @@ -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]
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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: <http://context/json-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \
-H 'Link: <http://context/ngsi-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \
-H 'Accept: application/json' \
-d 'options=concise'
```
Expand Down Expand Up @@ -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: <http://context/json-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \
-H 'Link: <http://context/ngsi-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \
-H 'Accept: application/json' \
-d 'options=concise' \
-d 'attrs=category,temperature'
Expand Down Expand Up @@ -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: <http://context/json-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \
-H 'Link: <http://context/ngsi-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \
-H 'Accept: application/json' \
-d 'type=TemperatureSensor' \
-d 'options=concise' \
Expand Down Expand Up @@ -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: <http://context/json-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \
-H 'Link: <http://context/ngsi-context.jsonld>; 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' \
Expand Down Expand Up @@ -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: <http://context/json-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \
-H 'Link: <http://context/ngsi-context.jsonld>; 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' \
Expand Down Expand Up @@ -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]
Expand Down Expand Up @@ -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]
Expand Down

0 comments on commit 9748f84

Please sign in to comment.