@@ -646,7 +646,8 @@ the resource in question. In the case of NGSI-LD, the metadata is a file in `app
646646# ### 5️⃣ Request:
647647
648648` ` ` console
649- curl -L -X GET 'http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:Building:farm001' \
649+ curl -L -X GET \
650+ 'http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:Building:farm001' \
650651-H 'Accept: application/ld+json' \
651652-H 'Link: <http://context/user-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"'
652653` ` `
@@ -706,7 +707,7 @@ form `type="Building"` with the FQN `https://smartdatamodels.org/dataModel.Build
706707
707708If a reference to the supplied data is supplied, it is possible to return short name data and limit responses to a
708709specific `type` of data. For example, the request below returns the data of all `Building` entities within the context
709- data. Use of the `type` parameter limits the response to `Building` entities only, use of the `options=keyValues ` query
710+ data. Use of the `type` parameter limits the response to `Building` entities only, use of the `format=simplified ` query
710711parameter reduces the response down to standard JSON-LD.
711712
712713# ### 6️⃣ Request:
@@ -717,12 +718,12 @@ curl -G -X GET \
717718-H 'Link: <http://context/user-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \
718719-H 'Accept: application/ld+json' \
719720 -d 'type=Building' \
720- -d 'options=keyValues '
721+ -d 'format=simplified '
721722` ` `
722723
723724# ### Response:
724725
725- Because of the use of the `options=keyValues `, the response consists of JSON only without the attribute definitions
726+ Because of the use of the `format=simplified `, the response consists of JSON only without the attribute definitions
726727` type="Property"` or any _properties-of-properties_ elements. You can see that `Link` header from the request has been
727728used as the `@context` returned in the response.
728729
@@ -779,7 +780,7 @@ used as the `@context` returned in the response.
779780
780781This example returns all `Building` entities with the `name` attribute _Big Red Barn_. Filtering can be done using the
781782` q` parameter - if a string has spaces in it, it can be URL encoded and held within double quote characters `"` = `%22`.
782- Since `options=keyValues ` is sent, this will effect the structure of the payload and we will need to supply a different
783+ Since `format=simplified ` is sent, this will effect the structure of the payload and we will need to supply a different
783784` @context` file - `json-context.jsonld`
784785
785786# ### 7️⃣ Request:
@@ -791,12 +792,12 @@ curl -G -X GET \
791792-H 'Accept: application/ld+json' \
792793 -d 'type=Building' \
793794 -d 'q=name==%22Big%20Red%20Barn%22' \
794- -d 'options=keyValues '
795+ -d 'format=simplified '
795796` ` `
796797
797798# ### Response:
798799
799- The use of the `Link` header and the `options=keyValues ` parameter reduces the response to short form key-values
800+ The use of the `Link` header and the `format=simplified ` parameter reduces the response to short form key-values
800801**JSON-LD** as shown:
801802
802803` ` ` json
@@ -862,7 +863,7 @@ curl -G -X GET \
862863-H 'Accept: application/ld+json' \
863864 -d 'type=Geb%C3%A4ude' \
864865 -d 'q=name==%22Big%20Red%20Barn%22' \
865- -d 'options=keyValues '
866+ -d 'format=simplified '
866867` ` `
867868
868869# ### Response:
@@ -916,7 +917,7 @@ curl -G -X GET \
916917-H 'Accept: application/ld+json' \
917918 -d 'type=Building' \
918919 -d 'q=category==%22barn%22,%22farm_auxiliary%22' \
919- -d 'options=keyValues ' \
920+ -d 'format=simplified ' \
920921 -d 'expandValues=category'
921922` ` `
922923
@@ -961,17 +962,18 @@ Filtering can be done using the `q` parameter - sub-attributes are annotated usi
961962# ### 1️⃣0️⃣ Request:
962963
963964` ` ` console
964- curl -G -X GET 'http://localhost:1026/ngsi-ld/v1/entities/' \
965+ curl -G -X GET \
966+ 'http://localhost:1026/ngsi-ld/v1/entities/' \
965967-H 'Link: <http://context/json-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \
966968-H 'Accept: application/ld+json' \
967969 -d 'type=Building' \
968970 -d 'q=address%5BaddressLocality%5D==%22Tiergarten%22' \
969- -d 'options=keyValues '
971+ -d 'format=simplified '
970972` ` `
971973
972974# ### Response:
973975
974- Use of the `Link` header and the `options=keyValues ` parameter reduces the response to JSON-LD.
976+ Use of the `Link` header and the `format=simplified ` parameter reduces the response to JSON-LD.
975977
976978` ` ` json
977979[
@@ -1038,12 +1040,12 @@ curl -G -X GET \
10381040 -H 'Accept: application/json' \
10391041 -d 'type=Building' \
10401042 -d 'q=address.verified==true' \
1041- -d 'options=keyValues '
1043+ -d 'format=simplified '
10421044` ` `
10431045
10441046# ### Response:
10451047
1046- Because of the use of the `options=keyValues ` together with the Accept HTTP header (`application/json`), the response
1048+ Because of the use of the `format=simplified ` together with the Accept HTTP header (`application/json`), the response
10471049consists of JSON only without the attribute `type` and `metadata` elements.
10481050
10491051` ` ` json
@@ -1111,12 +1113,12 @@ curl -G -X GET \
11111113 -d 'geometry=Point' \
11121114 -d 'coordinates=%5B13.3777,52.5162%5D' \
11131115 -d 'georel=near%3BmaxDistance==800' \
1114- -d 'options=keyValues '
1116+ -d 'format=simplified '
11151117` ` `
11161118
11171119# ### Response:
11181120
1119- Because of the use of the `options=keyValues ` together with the Accept HTTP header (`application/json`), the response
1121+ Because of the use of the `format=simplified ` together with the Accept HTTP header (`application/json`), the response
11201122consists of JSON only without the attribute `type` and `metadata` elements.
11211123
11221124` ` ` json
0 commit comments