Skip to content

Commit 47fe6e6

Browse files
committed
Update README
1 parent 45bccf4 commit 47fe6e6

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

README.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -771,7 +771,7 @@ passed in the previous request.
771771
"type": "Relationship",
772772
"object": "urn:ngsi-ld:Product:001"
773773
},
774-
"name": {
774+
"https:/schema.org/name": {
775775
"type": "Property",
776776
"value": "Corner Unit"
777777
},
@@ -862,14 +862,18 @@ curl -G -X GET \
862862
'http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:Shelf:unit001/' \
863863
-d 'attrs=locatedIn' \
864864
-d 'options=keyValues' \
865+
-H 'Accept: application/ld+json' \
865866
-H 'Link: <http://context/user-context-with-graph.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"'
866867
```
867868

868869
#### Response:
869870

870871
```json
871872
{
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+
],
873877
"id": "urn:ngsi-ld:Shelf:unit001",
874878
"type": "Shelf",
875879
"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:
922926
--data-raw '{
923927
"furniture": {
924928
"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+
]
926933
},
927934
"@context": "http://context/user-context-with-graph.jsonld"
928935
}'
@@ -970,7 +977,7 @@ The **StockOrder** is created as a standard NGSI-LD data entity.
970977

971978
```console
972979
curl -X POST \
973-
http://localhost:1026/ngsi-ld/v1/entities/ \
980+
'http://localhost:1026/ngsi-ld/v1/entities/' \
974981
-H 'Content-Type: application/ld+json' \
975982
-d '{
976983
"id": "urn:ngsi-ld:StockOrder:001",
@@ -1081,6 +1088,7 @@ adding the appropriate URN.
10811088
```console
10821089
curl -G -X GET \
10831090
'http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:StockOrder:001' \
1091+
-H 'Accept: application/ld+json' \
10841092
-d 'options=keyValues'
10851093
```
10861094

0 commit comments

Comments
 (0)