Skip to content

Commit

Permalink
Add array of contexts
Browse files Browse the repository at this point in the history
  • Loading branch information
jason-fox committed Apr 25, 2024
1 parent 27995a7 commit 255e7ac
Showing 1 changed file with 32 additions and 8 deletions.
40 changes: 32 additions & 8 deletions docs/working-with-@context.md
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,10 @@ files explicitly as element in the array of `@context` sent. The response is nor

```json
{
"@context": "http://context/ngsi-context.jsonld",
"@context": [
"http://context/ngsi-context.jsonld",
"https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.6.jsonld"
],
"id": "urn:ngsi-ld:Building:farm001",
"type": "Building",
"category": {
Expand Down Expand Up @@ -667,7 +670,10 @@ used as the `@context` returned to the response.
```json
[
{
"@context": "http://context/ngsi-context.jsonld",
"@context": [
"http://context/ngsi-context.jsonld",
"https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.6.jsonld"
],
"id": "urn:ngsi-ld:Building:farm001",
"type": "Building",
"address": {
Expand All @@ -684,7 +690,10 @@ used as the `@context` returned to the response.
}
},
{
"@context": "http://context/ngsi-context.jsonld",
"@context": [
"http://context/ngsi-context.jsonld",
"https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.6.jsonld"
],
"id": "urn:ngsi-ld:Building:barn002",
"type": "Building",
"address": {
Expand Down Expand Up @@ -729,7 +738,10 @@ The use of the `Link` header and the `options=keyValues` parameter reduces the r
```json
[
{
"@context": "http://context/json-context.jsonld",
"@context": [
"http://context/json-context.jsonld",
"https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.6.jsonld"
],
"id": "urn:ngsi-ld:Building:barn002",
"type": "Building",
"address": {
Expand Down Expand Up @@ -796,7 +808,10 @@ overridden directly but would require an additional **JSON-LD** expansion/compac
```json
[
{
"@context": "http://context/alternate-context.jsonld",
"@context": [
"http://context/alternate-context.jsonld",
"https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.6.jsonld"
],
"id": "urn:ngsi-ld:Building:barn002",
"type": "Gebäude",
"adresse": {
Expand Down Expand Up @@ -843,7 +858,10 @@ The response is returned in JSON-LD format with short form attribute names:
```json
[
{
"@context": "http://context/ngsi-context.jsonld",
"@context": [
"http://context/ngsi-context.jsonld",
"https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.6.jsonld"
],
"id": "urn:ngsi-ld:Building:barn002",
"type": "Building",
"address": {
Expand Down Expand Up @@ -887,7 +905,10 @@ Use of the `Link` header and the `options=keyValues` parameter reduces the respo
```json
[
{
"@context": "http://context/json-context.jsonld",
"@context": [
"http://context/json-context.jsonld",
"https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.6.jsonld"
],
"id": "urn:ngsi-ld:Building:farm001",
"type": "Building",
"address": {
Expand All @@ -904,7 +925,10 @@ Use of the `Link` header and the `options=keyValues` parameter reduces the respo
}
},
{
"@context": "http://context/json-context.jsonld",
"@context": [
"http://context/json-context.jsonld",
"https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.6.jsonld"
],
"id": "urn:ngsi-ld:Building:barn002",
"type": "Building",
"address": {
Expand Down

0 comments on commit 255e7ac

Please sign in to comment.