@@ -75,7 +75,7 @@ The complete data model must be understandable by both developers and machines.
7575- A full Human readable definition of this data model can be found
7676 [ online] ( https://fiware.github.io/tutorials.Step-by-Step/schema ) .
7777- The machine-readable JSON-LD definition can be found at
78- [ ` https ://fiware.github.io/tutorials.Step-by-Step/tutorials- context.jsonld` ] ( https://fiware. github.io/ tutorials.Step-by-Step/tutorials -context.jsonld ) -
78+ [ ` http ://context/user- context.jsonld` ] ( https://github.com/FIWARE/ tutorials.Relationships-Linked-Data/blob/NGSI-v2/data-models/user -context.jsonld ) -
7979 this file will be used to provide the ` @context ` to power our NGSI-LD data entities.
8080
8181Four data models have been created for this NGSI-LD stock management system. The relationships between the models are
@@ -424,7 +424,7 @@ The response returns all the existing **Building** entities, with the attributes
424424 "@context": "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.6.jsonld",
425425 "id": "urn:ngsi-ld:Building:store001",
426426 "type": "https://uri.fiware.org/ns/datamodels#Building",
427- "name": "Bösebrücke Einkauf",
427+ "https://schema.org/ name": "Bösebrücke Einkauf",
428428 "https://schema.org/address": {
429429 "streetAddress": "Bornholmer Straße 65",
430430 "addressRegion": "Berlin",
@@ -442,7 +442,7 @@ The response returns all the existing **Building** entities, with the attributes
442442 "@context": "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.6.jsonld",
443443 "id": "urn:ngsi-ld:Building:store002",
444444 "type": "https://uri.fiware.org/ns/datamodels#Building",
445- "name": "Checkpoint Markt",
445+ "https://schema.org/ name": "Checkpoint Markt",
446446 "https://schema.org/address": {
447447 "streetAddress": "Friedrichstraße 44",
448448 "addressRegion": "Berlin",
@@ -471,7 +471,7 @@ According to the [defined data model](https://fiware.github.io/tutorials.Step-by
471471`type`, `name` and `location` are defined in the NGSI-LD Core Context :
472472[`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).
473473The other attributes are defined using the Tutorial's own Context :
474- [`https ://fiware.github.io/tutorials.Step-by-Step/tutorials- context.jsonld`](https://fiware. github.io/ tutorials.Step-by-Step/tutorials -context.jsonld).
474+ [`http ://context/user- context.jsonld`](https://github.com/FIWARE/ tutorials.Relationships-Linked-Data/blob/NGSI-v2/data-models/user -context.jsonld).
475475Both `category` and `address` are _common_ attributes the definitions of which are brought in from the FIWARE data
476476models and `schema.org` respectively.
477477
@@ -486,7 +486,7 @@ curl -G -X GET \
486486 'http://localhost:1026/ngsi-ld/v1/entities' \
487487 -d 'type=https://fiware.github.io/tutorials.Step-by-Step/schema/Product' \
488488 -d 'options=keyValues' \
489- -H 'Link: <https ://fiware.github.io/tutorials.Step-by-Step/tutorials -context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"'
489+ -H 'Link: <http ://context/user -context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"'
490490` ` `
491491
492492# ### Response:
@@ -496,15 +496,15 @@ However since the full context has been supplied in the `Link` header, the short
496496` ` ` json
497497[
498498 {
499- "@context": "https ://fiware.github.io/tutorials.Step-by-Step/tutorials -context.jsonld",
499+ "@context": "http ://context/user -context.jsonld",
500500 "id": "urn:ngsi-ld:Product:001",
501501 "type": "Product",
502502 "name": "Apples",
503503 "price": 0.99,
504504 "size": "S"
505505 },
506506 {
507- "@context": "https ://fiware.github.io/tutorials.Step-by-Step/datamodels -context.jsonld",
507+ "@context": "http ://context/user -context.jsonld",
508508 "id": "urn:ngsi-ld:Product:002",
509509 "type": "Product",
510510 "name": "Bananas",
@@ -524,7 +524,7 @@ According to the [defined data model](https://fiware.github.io/tutorials.Step-by
524524- The `currency` attribute has the FQN `https://fiware.github.io/tutorials.Step-by-Step/schema/currency`.
525525
526526The programmatic implementation of the Product model and its attributes are fully described in the
527- [`https ://fiware.github.io/tutorials.Step-by-Step/tutorials- context.jsonld`](https://fiware. github.io/ tutorials.Step-by-Step/tutorials -context.jsonld).
527+ [`http ://context/user- context.jsonld`](https://github.com/FIWARE/ tutorials.Relationships-Linked-Data/blob/NGSI-v2/data-models/user -context.jsonld).
528528
529529# ## Display all Shelves
530530
@@ -538,7 +538,7 @@ curl -G -X GET \
538538 'http://localhost:1026/ngsi-ld/v1/entities' \
539539 -d 'type=Shelf' \
540540 -d 'options=keyValues' \
541- -H 'Link: <https ://fiware.github.io/tutorials.Step-by-Step/tutorials -context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"'
541+ -H 'Link: <http ://context/user -context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"'
542542` ` `
543543
544544# ### Response:
@@ -548,7 +548,7 @@ Once again the short names are returned.
548548` ` ` json
549549[
550550 {
551- "@context": "https ://fiware.github.io/tutorials.Step-by-Step/tutorials -context.jsonld",
551+ "@context": "http ://context/user -context.jsonld",
552552 "id": "urn:ngsi-ld:Shelf:unit001",
553553 "type": "Shelf",
554554 "name": "Corner Unit",
@@ -558,7 +558,7 @@ Once again the short names are returned.
558558 }
559559 },
560560 {
561- "@context": "https ://fiware.github.io/tutorials.Step-by-Step/tutorials -context.jsonld",
561+ "@context": "http ://context/user -context.jsonld",
562562 "id": "urn:ngsi-ld:Shelf:unit002",
563563 "type": "Shelf",
564564 "name": "Wall Unit 1",
@@ -580,7 +580,7 @@ According to the [defined data model](https://fiware.github.io/tutorials.Step-by
580580- The `numberOfItems` attribute has the FQN `https://fiware.github.io/tutorials.Step-by-Step/schema/numberOfItems`.
581581
582582The programmatic implementation of the Shelf model and its attributes are fully described in the
583- [`https ://fiware.github.io/tutorials.Step-by-Step/tutorials- context.jsonld`](https://fiware. github.io/ tutorials.Step-by-Step/tutorials -context.jsonld).
583+ [`http ://context/user- context.jsonld`](https://github.com/FIWARE/ tutorials.Relationships-Linked-Data/blob/NGSI-v2/data-models/user -context.jsonld).
584584
585585# ## Obtain Shelf Information
586586
@@ -593,7 +593,7 @@ below.
593593curl -G -X GET \
594594 'http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:Shelf:unit001/' \
595595 -d 'options=keyValues' \
596- -H 'Link: <https ://fiware.github.io/tutorials.Step-by-Step/tutorials -context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"'
596+ -H 'Link: <http ://context/user -context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"'
597597` ` `
598598
599599# ### Response:
@@ -682,7 +682,7 @@ curl -X POST \
682682 }
683683 },
684684 "@context": [
685- "https ://fiware.github.io/tutorials.Step-by-Step/tutorials -context.jsonld",
685+ "http ://context/user -context.jsonld",
686686 "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.6.jsonld"
687687 ]
688688}'
@@ -832,7 +832,7 @@ curl -G -X GET \
832832 'http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:Shelf:unit001/' \
833833 -d 'attrs=locatedIn' \
834834 -d 'options=keyValues' \
835- -H 'Link: <https ://fiware.github.io/tutorials.Step-by-Step/tutorials -context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"'
835+ -H 'Link: <http ://context/user -context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"'
836836` ` `
837837
838838# ### Response:
@@ -860,7 +860,7 @@ curl -G -X GET \
860860 -d 'options=keyValues' \
861861 -d 'attrs=locatedIn' \
862862 -H 'Accept: application/json' \
863- -H 'Link: <https ://fiware.github.io/tutorials.Step-by-Step/tutorials -context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"'
863+ -H 'Link: <http ://context/user -context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"'
864864` ` `
865865
866866# ### Response:
@@ -902,7 +902,7 @@ curl -L -X POST 'http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:Building:
902902 "object": "urn:ngsi-ld:Shelf:002"
903903 }
904904 ],
905- "@context": "https ://fiware.github.io/tutorials.Step-by-Step/tutorials -context.jsonld"
905+ "@context": "http ://context/user -context.jsonld"
906906}'
907907` ` `
908908
@@ -921,7 +921,7 @@ curl -G -X GET \
921921 -d 'options=keyValues' \
922922 -d 'attrs=furniture' \
923923 -H 'Accept: application/json' \
924- -H 'Link: <https ://fiware.github.io/tutorials.Step-by-Step/tutorials -context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"'
924+ -H 'Link: <http ://context/user -context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"'
925925` ` `
926926
927927# ### Response:
@@ -977,7 +977,7 @@ curl -X POST \
977977 }
978978 },
979979 "@context": [
980- "https ://fiware.github.io/tutorials.Step-by-Step/tutorials -context.jsonld"
980+ "http ://context/user -context.jsonld"
981981 ]
982982}'
983983` ` `
@@ -1000,7 +1000,7 @@ curl -G -X GET \
10001000 -d 'attrs=requestedFor' \
10011001 -d 'options=keyValues' \
10021002 -H 'Accept: application/json' \
1003- -H 'Link: <https ://fiware.github.io/tutorials.Step-by-Step/tutorials -context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"'
1003+ -H 'Link: <http ://context/user -context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"'
10041004` ` `
10051005
10061006# ### Response:
@@ -1033,7 +1033,7 @@ curl -G -X GET \
10331033 -d 'options=keyValues' \
10341034 -d 'attrs=orderedProduct' \
10351035 -H 'Accept: application/json' \
1036- -H 'Link: <https ://fiware.github.io/tutorials.Step-by-Step/tutorials -context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"'
1036+ -H 'Link: <http ://context/user -context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"'
10371037` ` `
10381038
10391039# ### Response:
0 commit comments