Skip to content

Commit

Permalink
Add @context
Browse files Browse the repository at this point in the history
  • Loading branch information
jason-fox committed Jul 5, 2024
1 parent 625c61b commit 48bf069
Showing 1 changed file with 26 additions and 10 deletions.
36 changes: 26 additions & 10 deletions docs/linked-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down Expand Up @@ -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": {
Expand All @@ -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": {
Expand Down Expand Up @@ -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": {
Expand Down Expand Up @@ -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": {
Expand All @@ -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": {
Expand Down Expand Up @@ -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": {
Expand Down Expand Up @@ -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",
Expand All @@ -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": {
Expand Down Expand Up @@ -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": {
Expand Down

0 comments on commit 48bf069

Please sign in to comment.