From 48bf0691639f8f45bc6d94c24a9f8c05062dd893 Mon Sep 17 00:00:00 2001 From: Jason Fox Date: Fri, 5 Jul 2024 15:36:59 +0200 Subject: [PATCH] Add @context --- docs/linked-data.md | 36 ++++++++++++++++++++++++++---------- 1 file changed, 26 insertions(+), 10 deletions(-) diff --git a/docs/linked-data.md b/docs/linked-data.md index 4adaba9..4a3bb92 100644 --- a/docs/linked-data.md +++ b/docs/linked-data.md @@ -657,6 +657,7 @@ and all attributes are expanded whenever possible. "id": "urn:ngsi-ld:Building:store001", "type": "https://smartdatamodels.org/dataModel.Building/Building", "https://smartdatamodels.org/dataModel.Building/category": { + "type": "VocabularyProperty", "vocab": "commercial" }, "https://smartdatamodels.org/address": { @@ -710,7 +711,10 @@ used as the `@context` returned in the response. ```json [ { - "@context": "https://smart-data-models.github.io/dataModel.Building/context.jsonld", + "@context": [ + "https://smart-data-models.github.io/dataModel.Building/context.jsonld", + "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.6.jsonld" + ], "id": "urn:ngsi-ld:Building:store001", "type": "Building", "address": { @@ -729,7 +733,10 @@ used as the `@context` returned in the response. } }, { - "@context": "https://smart-data-models.github.io/dataModel.Building/context.jsonld", + "@context": [ + "https://smart-data-models.github.io/dataModel.Building/context.jsonld", + "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.6.jsonld" + ], "id": "urn:ngsi-ld:Building:store002", "type": "Building", "address": { @@ -779,7 +786,10 @@ JSON-LD as shown: ```json [ { - "@context": "https://smart-data-models.github.io/dataModel.Building/context.jsonld", + "@context": [ + "https://smart-data-models.github.io/dataModel.Building/context.jsonld", + "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.6.jsonld" + ], "id": "urn:ngsi-ld:Building:store002", "type": "Building", "address": { @@ -832,7 +842,10 @@ The response is returned in JSON-LD format with short form attribute names: ```json [ { - "@context": "https://smart-data-models.github.io/dataModel.Building/context.jsonld", + "@context": [ + "https://smart-data-models.github.io/dataModel.Building/context.jsonld", + "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.6.jsonld" + ], "id": "urn:ngsi-ld:Building:store001", "type": "Building", "address": { @@ -851,7 +864,10 @@ The response is returned in JSON-LD format with short form attribute names: } }, { - "@context": "https://smart-data-models.github.io/dataModel.Building/context.jsonld", + "@context": [ + "https://smart-data-models.github.io/dataModel.Building/context.jsonld", + "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.6.jsonld" + ], "id": "urn:ngsi-ld:Building:store002", "type": "Building", "address": { @@ -898,7 +914,10 @@ Use of the `Link` header and the `options=keyValues` parameter reduces the respo ```json [ { - "@context": "https://smart-data-models.github.io/dataModel.Building/context.jsonld", + "@context": [ + "https://smart-data-models.github.io/dataModel.Building/context.jsonld", + "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.6.jsonld" + ], "id": "urn:ngsi-ld:Building:store002", "type": "Building", "address": { @@ -947,8 +966,7 @@ consists of JSON only without the attribute `type` and `metadata` elements. ```json [ { - "@context": "https://smart-data-models.github.io/dataModel.Building/context.jsonld", - "id": "urn:ngsi-ld:Building:store001", + "id": "urn:ngsi-ld:Building:store001", "type": "Building", "address": { "streetAddress": "Bornholmer Straße 65", @@ -966,7 +984,6 @@ consists of JSON only without the attribute `type` and `metadata` elements. } }, { - "@context": "https://smart-data-models.github.io/dataModel.Building/context.jsonld", "id": "urn:ngsi-ld:Building:store002", "type": "Building", "address": { @@ -1021,7 +1038,6 @@ consists of JSON only without the attribute `type` and `metadata` elements. ```json [ { - "@context": "https://smart-data-models.github.io/dataModel.Building/context.jsonld", "id": "urn:ngsi-ld:Building:store002", "type": "Building", "address": {