Skip to content

Commit 49323de

Browse files
committed
Minor correction
1 parent ca3d138 commit 49323de

File tree

2 files changed

+9
-15
lines changed

2 files changed

+9
-15
lines changed

README.md

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ curl -iX POST 'http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:Temperature
387387
-H 'Link: <http://context/user-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \
388388
--data-raw '{
389389
"batteryLevel": {
390-
"value": 0.8,
390+
"value": 0.9,
391391
"unitCode": "C62"
392392
},
393393
"controlledAsset": {
@@ -484,18 +484,11 @@ The request will fail if any of the attributes already exist in the context. The
484484
been successful and the reason for failure (if any has occurred).
485485

486486
```json
487-
{
488-
"@context": [
489-
"http://context/user-context.jsonld",
490-
"https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.7.jsonld"
491-
],
492-
"success": [
487+
[
493488
"urn:ngsi-ld:TemperatureSensor:002",
494489
"urn:ngsi-ld:TemperatureSensor:003",
495490
"urn:ngsi-ld:TemperatureSensor:004"
496-
],
497-
"errors": []
498-
}
491+
]
499492
```
500493

501494
### Batch Create/Overwrite New Data Entities
@@ -594,7 +587,7 @@ to content negotiation if the `Accept:application/json` had been set). The full
594587
"unitCode": "CEL"
595588
},
596589
"batteryLevel": {
597-
"value": 0.8,
590+
"value": 0.9,
598591
"createdAt": "2020-08-27T14:33:10Z",
599592
"modifiedAt": "2020-08-27T14:33:10Z",
600593
"unitCode": "C62"
@@ -620,7 +613,8 @@ known `id`.
620613
```console
621614
curl -G -iX GET 'http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:TemperatureSensor:001' \
622615
-H 'Link: <http://context/user-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \
623-
-d 'attrs=temperature'
616+
-d 'attrs=temperature' \
617+
-d 'options=concise'
624618
```
625619

626620
#### Response:
@@ -674,7 +668,7 @@ The sensor `urn:ngsi-ld:TemperatureSensor:001` is reading at 25°C. The response
674668
"unitCode": "CEL"
675669
},
676670
"batteryLevel": {
677-
"value": 0.8,
671+
"value": 0.9,
678672
"unitCode": "C62"
679673
},
680674
"controlledAsset": {
@@ -790,7 +784,7 @@ context will now contain four sensors.
790784
"id": "urn:ngsi-ld:TemperatureSensor:001",
791785
"type": "TemperatureSensor",
792786
"batteryLevel": {
793-
"value": 0.8,
787+
"value": 0.9,
794788
"unitCode": "C62"
795789
},
796790
"category": "sensor",

import-data

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ set -e
99
echo -e "⏳ Loading context data in \033[1mNGSI-LD\033[0m format"
1010
echo -e " - all entity data models are defined referencing the"
1111
echo -e " \033[1m"${TUTORIAL_DATA_MODELS_CONTEXT}"\033[0m JSON-LD context"
12-
echo -e "\nCreating ${COW_COUNT:-4} cows and ${COW_COUNT:-4} pigs"
12+
echo -e "\nCreating ${COW_COUNT:-4} cows and ${PIG_COUNT:-4} pigs"
1313

1414
generate_post_data()
1515
{

0 commit comments

Comments
 (0)