Skip to content

Commit

Permalink
Default to core context 1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
jason-fox committed Aug 15, 2023
1 parent e63e739 commit cdf3398
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 12 deletions.
8 changes: 4 additions & 4 deletions docs/concise.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ such as `"type": "Property"` throughout the payload to ensure that machines can
{
"@context": [
"https://fiware.github.io/tutorials.Step-by-Step/example.jsonld",
"https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.4.jsonld"
"https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.6.jsonld"
],
"id": "urn:nsgi-ld:Beatle:John_Lennon",
"type": "Beatle",
Expand Down Expand Up @@ -77,7 +77,7 @@ shorter and to the point, and not all information is returned by the request - s
{
"@context": [
"https://fiware.github.io/tutorials.Step-by-Step/example.jsonld",
"https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.4.jsonld"
"https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.6.jsonld"
],
"id": "urn:nsgi-ld:Beatle:John_Lennon",
"name": "John Lennon",
Expand Down Expand Up @@ -119,7 +119,7 @@ representation, where redundant "type" members are omitted and the following rul
{
"@context": [
"https://fiware.github.io/tutorials.Step-by-Step/example.jsonld",
"https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.4.jsonld"
"https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.6.jsonld"
],
"id": "urn:nsgi-ld:Beatle:John_Lennon",
"name": "John Lennon",
Expand Down Expand Up @@ -1173,7 +1173,7 @@ The result of a concise GeoJSON notification can be seen below.
}
}
},
"@context": "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld",
"@context": "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.6.jsonld",
"geometry": {
"value": {
"type": "Point",
Expand Down
2 changes: 1 addition & 1 deletion docs/edge-computing.md
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ broker to create the "Vehicle" sensor entity. With creation of this entity, FogF
curl --location --request POST '<FogFlow_Broker_IP>:8070/ngsi-ld/v1/entities/' \
--header 'Content-Type: application/json' \
--header 'Accept: application/ld+json' \
--header 'Link: <{{link}}>; rel="https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld"; type="application/ld+json"' \
--header 'Link: <{{link}}>; rel="https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.6.jsonld"; type="application/ld+json"' \
--data-raw '{
"id": "urn:ngsi-ld:Vehicle:A100",
"type": "Vehicle",
Expand Down
2 changes: 0 additions & 2 deletions docs/short-term-history.md
Original file line number Diff line number Diff line change
Expand Up @@ -1133,8 +1133,6 @@ The response returns the requested attributes in simplified temporal format.
function isoDate(){
const date = new Date();
const timeElts = document.getElementsByClassName("current_time");
console.log(timeElts)

for (let i = 0; i < timeElts.length; i++) {
timeElts[i].innerHTML = date.toISOString();
}
Expand Down
10 changes: 5 additions & 5 deletions docs/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -364,14 +364,14 @@ The first request will take some time, as the context broker must navigate and l

Since the `Content-Type: application/ld+json` the `@context` is supplied in the body of the request. As with all
**NGSI-LD** interactions, the core **NGSI-LD** `@context`
([`https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld`](https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld))
([`https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.6.jsonld`](https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.6.jsonld))
is implicitly included as well.

This means that the actual `@context` is:

```json
{
"@context": ["http://context/ngsi-context.jsonld", "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld"]
"@context": ["http://context/ngsi-context.jsonld", "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.6.jsonld"]
}
```

Expand Down Expand Up @@ -485,7 +485,7 @@ curl -G -X GET \
#### Response:

Since no explicit `@context` was sent in the request, the response returns the Core `@context` by default
(`https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld`) and all attributes are expanded whenever possible.
(`https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.6.jsonld`) and all attributes are expanded whenever possible.

- `id`, `type`, `location` and `name`are defined in the core context and are not expanded.
- `address` has been mapped to `http://schema.org/address`
Expand All @@ -497,7 +497,7 @@ be displayed.
```json
[
{
"@context": "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld",
"@context": "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.6.jsonld",
"id": "urn:ngsi-ld:Building:farm001",
"type": "https://uri.fiware.org/ns/dataModels#Building",
"https://schema.org/address": {
Expand Down Expand Up @@ -530,7 +530,7 @@ be displayed.
}
},
{
"@context": "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld",
"@context": "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.6.jsonld",
"id": "urn:ngsi-ld:Building:barn002",
"type": "https://uri.fiware.org/ns/dataModels#Building",
"https://schema.org/address": {
Expand Down

0 comments on commit cdf3398

Please sign in to comment.