Skip to content

Commit f2b3efb

Browse files
committed
Use core @context from 1.6
1 parent 9c5a531 commit f2b3efb

2 files changed

Lines changed: 15 additions & 15 deletions

File tree

docs/linked-data.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -303,14 +303,14 @@ be required:
303303
... other data attributes
304304
"@context": [
305305
"https://smartdatamodels.org/context.jsonld",
306-
"https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld"
306+
"https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.6.jsonld"
307307
]
308308
}
309309
```
310310

311311
### Core Context
312312

313-
[https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld](https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld)
313+
[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)
314314
refers to the Core `@context` of NGSI-LD, this defines element such as `id` and `type` which are common to all NGSI
315315
entities, as well as defining terms such as `Property` and `Relationship`. The core context is so fundamental to
316316
NGSI-LD, that it is added by default to any `@context` sent to a request.
@@ -348,7 +348,7 @@ not unexpected if elements such as `https://uri.etsi.org/ngsi-ld/name` do not ac
348348
many IRIs within JSON-LD `@context` files, such as `http://schema.org/address` do indeed return web pages with more
349349
information about themselves.
350350

351-
If you take the NGSI-LD [Core @context](https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld)
351+
If you take the NGSI-LD [Core @context](https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.6.jsonld)
352352

353353
```json
354354
{
@@ -413,7 +413,7 @@ curl -iX POST \
413413
},
414414
"@context": [
415415
"https://smartdatamodels.org/context.jsonld",
416-
"https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld"
416+
"https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.6.jsonld"
417417
]
418418
}'
419419
```
@@ -468,7 +468,7 @@ curl -iX POST \
468468
},
469469
"@context": [
470470
"https://smartdatamodels.org/context.jsonld",
471-
"https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld"
471+
"https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.6.jsonld"
472472
]
473473
}'
474474
```
@@ -532,7 +532,7 @@ curl -G -X GET \
532532

533533
#### Response:
534534

535-
The response returns the Core `@context` by default (`https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld`) and
535+
The response returns the Core `@context` by default (`https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.6.jsonld`) and
536536
all attributes are expanded whenever possible.
537537

538538
- `id`, `type`, `location` and `name` are defined in the core context and are not expanded.
@@ -627,7 +627,7 @@ curl -G -X GET \
627627

628628
#### Response:
629629

630-
The response returns the Core `@context` by default (`https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld`) and
630+
The response returns the Core `@context` by default (`https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.6.jsonld`) and
631631
all attributes are expanded whenever possible.
632632

633633
```json
@@ -662,7 +662,7 @@ all attributes are expanded whenever possible.
662662
"coordinates": [13.3986, 52.5547]
663663
}
664664
},
665-
"@context": "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld"
665+
"@context": "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.6.jsonld"
666666
}
667667
```
668668

@@ -766,7 +766,7 @@ The `Link` header `https://smartdatamodels.org/context.jsonld` holds an array of
766766
{
767767
"@context": [
768768
"https://smartdatamodels.org/context.jsonld",
769-
"https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld"
769+
"https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.6.jsonld"
770770
]
771771
}
772772
```

docs/relationships-linked-data.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ The response returns all the existing **Building** entities, with the attributes
418418
```json
419419
[
420420
{
421-
"@context": "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld",
421+
"@context": "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.6.jsonld",
422422
"id": "urn:ngsi-ld:Building:store001",
423423
"type": "https://uri.fiware.org/ns/datamodels#Building",
424424
"name": "Bösebrücke Einkauf",
@@ -434,7 +434,7 @@ The response returns all the existing **Building** entities, with the attributes
434434
}
435435
},
436436
{
437-
"@context": "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld",
437+
"@context": "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.6.jsonld",
438438
"id": "urn:ngsi-ld:Building:store002",
439439
"type": "https://uri.fiware.org/ns/datamodels#Building",
440440
"name": "Checkpoint Markt",
@@ -462,7 +462,7 @@ According to the [defined data model](https://fiware.github.io/tutorials.Step-by
462462
- The `category` attribute has the FQN `https://uri.fiware.org/ns/datamodels#category`.
463463

464464
`type`, `name` and `location` are defined in the NGSI-LD Core Context:
465-
[`https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld`](https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld).
465+
[`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).
466466
The other attributes are defined using the Tutorial's own Context:
467467
[`https://fiware.github.io/tutorials.Step-by-Step/tutorials-context.jsonld`](https://fiware.github.io/tutorials.Step-by-Step/tutorials-context.jsonld).
468468
Both `category` and `address` are _common_ attributes the definitions of which are brought in from the FIWARE data
@@ -676,7 +676,7 @@ curl -X POST \
676676
},
677677
"@context": [
678678
"https://fiware.github.io/tutorials.Step-by-Step/tutorials-context.jsonld",
679-
"https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld"
679+
"https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.6.jsonld"
680680
]
681681
}'
682682
```
@@ -703,7 +703,7 @@ passed in the previous request.
703703

704704
```json
705705
{
706-
"@context": "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld",
706+
"@context": "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.6.jsonld",
707707
"id": "urn:ngsi-ld:Shelf:unit001",
708708
"type": "https://fiware.github.io/tutorials.Step-by-Step/schema/Shelf",
709709
"name": {
@@ -1063,7 +1063,7 @@ The response returns the fully expanded entity.
10631063

10641064
```json
10651065
{
1066-
"@context": "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld",
1066+
"@context": "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.6.jsonld",
10671067
"id": "urn:ngsi-ld:StockOrder:001",
10681068
"type": "https://fiware.github.io/tutorials.Step-by-Step/schema/StockOrder",
10691069
"https://fiware.github.io/tutorials.Step-by-Step/schema/orderDate": {

0 commit comments

Comments
 (0)