@@ -771,7 +771,7 @@ passed in the previous request.
771
771
"type": "Relationship",
772
772
"object": "urn:ngsi-ld:Product:001"
773
773
},
774
- "name": {
774
+ "https:/schema.org/ name": {
775
775
"type": "Property",
776
776
"value": "Corner Unit"
777
777
},
@@ -862,14 +862,18 @@ curl -G -X GET \
862
862
'http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:Shelf:unit001/' \
863
863
-d 'attrs=locatedIn' \
864
864
-d 'options=keyValues' \
865
+ -H 'Accept: application/ld+json' \
865
866
-H 'Link: <http://context/user-context-with-graph.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"'
866
867
` ` `
867
868
868
869
# ### Response:
869
870
870
871
` ` ` json
871
872
{
872
- "@context": "http://context/user-context-with-graph.jsonld",
873
+ "@context": [
874
+ "http://context/user-context.jsonld",
875
+ "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.6.jsonld",
876
+ ],
873
877
"id": "urn:ngsi-ld:Shelf:unit001",
874
878
"type": "Shelf",
875
879
"locatedIn": "urn:ngsi-ld:Building:store001"
@@ -922,7 +926,10 @@ curl -L -X POST 'http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:Building:
922
926
--data-raw '{
923
927
"furniture": {
924
928
"type": "Relationship",
925
- "object": ["urn:ngsi-ld:Shelf:001", "urn:ngsi-ld:Shelf:002"]
929
+ "object": [
930
+ "urn:ngsi-ld:Shelf:001",
931
+ "urn:ngsi-ld:Shelf:002"
932
+ ]
926
933
},
927
934
"@context": "http://context/user-context-with-graph.jsonld"
928
935
}'
@@ -970,7 +977,7 @@ The **StockOrder** is created as a standard NGSI-LD data entity.
970
977
971
978
` ` ` console
972
979
curl -X POST \
973
- http://localhost:1026/ngsi-ld/v1/entities/ \
980
+ ' http://localhost:1026/ngsi-ld/v1/entities/' \
974
981
-H 'Content-Type: application/ld+json' \
975
982
-d '{
976
983
"id": "urn:ngsi-ld:StockOrder:001",
@@ -1081,6 +1088,7 @@ adding the appropriate URN.
1081
1088
` ` ` console
1082
1089
curl -G -X GET \
1083
1090
'http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:StockOrder:001' \
1091
+ -H 'Accept: application/ld+json' \
1084
1092
-d 'options=keyValues'
1085
1093
` ` `
1086
1094
0 commit comments