@@ -239,7 +239,7 @@ curl -L -X POST 'http://localhost:1026/ngsi-ld/v1/subscriptions/' \
239239 "accept": "application/json"
240240 }
241241 },
242- "@context": "https ://fiware.github.io/tutorials.Step-by-Step/tutorials -context.jsonld"
242+ "@context": "http ://context/user -context.jsonld"
243243}'
244244```
245245
@@ -255,7 +255,7 @@ notification request and that the payload will consist of the expanded entities.
255255``` console
256256curl -L -X POST 'http://localhost:1026/ngsi-ld/v1/subscriptions/' \
257257-H 'Content-Type: application/json' \
258- -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"' \
258+ -H 'Link: <http ://context/user -context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \
259259--data-raw '{
260260 "description": "LD Notify me of low stock in Store 002",
261261 "type": "Subscription",
@@ -312,7 +312,7 @@ the payloads offered by the two subscriptions will be discussed below.
312312 "accept" : " application/json"
313313 }
314314 },
315- "@context" : " https ://fiware.github.io/tutorials.Step-by-Step/tutorials -context.jsonld"
315+ "@context" : " http ://context/user -context.jsonld"
316316 },
317317 {
318318 "id" : " urn:ngsi-ld:Subscription:5e624063e232da3a07b5fa80" ,
@@ -333,7 +333,7 @@ the payloads offered by the two subscriptions will be discussed below.
333333 "accept" : " application/json"
334334 }
335335 },
336- "@context" : " https ://fiware.github.io/tutorials.Step-by-Step/tutorials -context.jsonld"
336+ "@context" : " http ://context/user -context.jsonld"
337337 }
338338]
339339```
@@ -488,7 +488,7 @@ match the expected **NGSI-v2** attribute names.
488488``` console
489489curl -iX POST 'http://localhost:1026/ngsi-ld/v1/csourceRegistrations/' \
490490-H 'Content-Type: application/json' \
491- -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"' \
491+ -H 'Link: <http ://context/user -context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \
492492--data-raw ' {
493493 "type": "ContextSourceRegistration",
494494 "information": [
@@ -507,7 +507,7 @@ curl -iX POST 'http://localhost:1026/ngsi-ld/v1/csourceRegistrations/' \
507507 "contextSourceInfo":[
508508 {
509509 "key": "jsonldContext",
510- "value": "https ://fiware.github.io/tutorials.Step-by-Step/tutorials -context.jsonld"
510+ "value": "http ://context/user -context.jsonld"
511511 }
512512 ],
513513 "mode": "exclusive",
@@ -533,7 +533,7 @@ endpoint, along with an appropriate JSON-LD context in the `Link` header and the
533533``` console
534534curl -G -iX GET 'http://localhost:1026/ngsi-ld/v1/csourceRegistrations/' \
535535-H 'Accept: application/ld+json' \
536- -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"' \
536+ -H 'Link: <http ://context/user -context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \
537537-d 'type=Building'
538538```
539539
@@ -542,10 +542,10 @@ curl -G -iX GET 'http://localhost:1026/ngsi-ld/v1/csourceRegistrations/' \
542542The response returns the details of the registration. In this case the short names of the ` properties ` have been
543543returned, along with the ` @context ` .
544544
545- ``` jsonld
545+ ``` json
546546[
547547 {
548- " @context" : " https ://fiware.github.io/tutorials.Step-by-Step/tutorials -context.jsonld" ,
548+ "@context" : " http ://context/user -context.jsonld" ,
549549 "id" : " urn:ngsi-ld:ContextSourceRegistration:5e6242179c26be5aef9991d4" ,
550550 "type" : " ContextSourceRegistration" ,
551551 "endpoint" : " http://tutorial:3000/static/tweets" ,
@@ -565,7 +565,7 @@ returned, along with the `@context`.
565565 "contextSourceInfo" :[
566566 {
567567 "key" : " jsonldContext" ,
568- " value" : " https ://fiware.github.io/tutorials.Step-by-Step/tutorials -context.jsonld"
568+ "value" : " http ://context/user -context.jsonld"
569569 }
570570 ],
571571 "mode" : " exclusive" ,
@@ -587,7 +587,7 @@ existing entity held within the context broker.
587587
588588``` console
589589curl -iX GET 'http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:Building:store001' \
590- -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"' \
590+ -H 'Link: <http ://context/user -context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \
591591-H 'Content-Type: application/json'
592592```
593593
@@ -600,9 +600,9 @@ curl -iX GET 'http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:Building:sto
600600The response now holds an additional ` tweets ` Property, which returns the values obtained from
601601` http://tutorial:3000/static/tweets/ngsi-ld/v1/entities/urn:ngsi-ld:Building:store001 ` - i.e. the forwarding endpoint.
602602
603- ``` jsonld
603+ ``` json
604604{
605- " @context" : " https ://fiware.github.io/tutorials.Step-by-Step/tutorials -context.jsonld" ,
605+ "@context" : " http ://context/user -context.jsonld" ,
606606 "id" : " urn:ngsi-ld:Building:store001" ,
607607 "type" : " Building" ,
608608 "furniture" : {
@@ -684,7 +684,7 @@ The same request is made by the context broker itself when querying for register
684684
685685``` console
686686curl -L -X GET 'http://localhost:3000/static/tweets/ngsi-ld/v1/entities/urn:ngsi-ld:Building:store001?attrs=tweets' \
687- -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"' \
687+ -H 'Link: <http ://context/user -context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \
688688-H 'Content-Type: application/ld+json'
689689```
690690
@@ -693,9 +693,9 @@ curl -L -X GET 'http://localhost:3000/static/tweets/ngsi-ld/v1/entities/urn:ngsi
693693As can be seen the ` @context ` has been returned in the request (since the ` Content-Type ` header was set). The rest of
694694the response resembles any standard NGSI-LD request.
695695
696- ``` jsonld
696+ ``` json
697697{
698- " @context" : " https ://fiware.github.io/tutorials.Step-by-Step/tutorials -context.jsonld" ,
698+ "@context" : " http ://context/user -context.jsonld" ,
699699 "id" : " urn:ngsi-ld:Building:store001" ,
700700 "type" : " Building" ,
701701 "tweets" : {
@@ -722,7 +722,7 @@ For a read-write interface it is also possible to amend context data by making a
722722
723723``` console
724724curl -L -X PATCH 'http://localhost:3000/static/tweets/ngsi-ld/v1/entities/urn:ngsi-ld:Building:store001/attrs' \
725- -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"' \
725+ -H 'Link: <http ://context/user -context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \
726726-H 'Content-Type: application/json' \
727727--data-raw '{
728728 "tweets": {
@@ -743,16 +743,16 @@ If the regisitered attribute is requested from the context broker, it returns th
743743
744744``` console
745745curl -L -X GET 'http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:Building:store001?attrs=tweets&options=keyValues' \
746- -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"'
746+ -H 'Link: <http ://context/user -context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"'
747747```
748748
749749#### Response:
750750
751751This alters the response to match the values updated in the previous PATCH request.
752752
753- ``` jsonld
753+ ``` json
754754{
755- " @context" : " https ://fiware.github.io/tutorials.Step-by-Step/tutorials -context.jsonld" ,
755+ "@context" : " http ://context/user -context.jsonld" ,
756756 "id" : " urn:ngsi-ld:Building:store001" ,
757757 "type" : " Building" ,
758758 "tweets" : [
@@ -787,7 +787,7 @@ In this case however a request to PATCH `ngsi-ld/v1/entities/<entity-id>` will b
787787
788788``` console
789789curl -L -X PATCH 'http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:Building:store001/attrs/tweets' \
790- -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"' \
790+ -H 'Link: <http ://context/user -context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \
791791-H 'Content-Type: application/json' \
792792--data-raw '{
793793 "type": "Property",
@@ -804,7 +804,7 @@ The result of the previous operation can be seen by retrieving the whole entity
804804
805805``` console
806806curl -L -X GET 'http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:Building:store001?attrs=tweets&options=keyValues' \
807- -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"' \
807+ -H 'Link: <http ://context/user -context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \
808808-H 'Content-Type: application/json'
809809```
810810
@@ -813,9 +813,9 @@ curl -L -X GET 'http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:Building:s
813813This alters the response to match the values updated in the previous PATCH request which was sent to the context broker
814814and then forwarded to the context provider endpoint.
815815
816- ``` jsonld
816+ ``` json
817817{
818- " @context" : " https ://fiware.github.io/tutorials.Step-by-Step/tutorials -context.jsonld" ,
818+ "@context" : " http ://context/user -context.jsonld" ,
819819 "id" : " urn:ngsi-ld:Building:store001" ,
820820 "type" : " Building" ,
821821 "tweets" : [
0 commit comments