Skip to content

Commit df97420

Browse files
committed
Update Stellio
1 parent c45d1f6 commit df97420

File tree

6 files changed

+138
-147
lines changed

6 files changed

+138
-147
lines changed

.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ EXPOSED_PORT=1026
44

55
# Orion LD variables
66
ORION_LD_PORT=1026
7-
ORION_LD_VERSION=1.7.1
7+
ORION_LD_VERSION=1.8.0
88

99
# Scorpio variables
1010
SCORPIO_PORT=9090

NGSI-LD Operations.postman_collection.json

Lines changed: 44 additions & 48 deletions
Large diffs are not rendered by default.

README.ja.md

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -275,8 +275,8 @@ curl -iX POST 'http://localhost:1026/ngsi-ld/v1/entities/' \
275275
"id": "urn:ngsi-ld:TemperatureSensor:001",
276276
"type": "TemperatureSensor",
277277
"category": {
278-
"type": "Property",
279-
"value": "sensor"
278+
"type": "VocabProperty",
279+
"vocab": "sensor"
280280
},
281281
"temperature": {
282282
"type": "Property",
@@ -367,8 +367,8 @@ curl -iX POST 'http://localhost:1026/ngsi-ld/v1/entityOperations/create' \
367367
"id": "urn:ngsi-ld:TemperatureSensor:002",
368368
"type": "TemperatureSensor",
369369
"category": {
370-
"type": "Property",
371-
"value": "sensor"
370+
"type": "VocabProperty",
371+
"vocab": "sensor"
372372
},
373373
"temperature": {
374374
"type": "Property",
@@ -380,8 +380,8 @@ curl -iX POST 'http://localhost:1026/ngsi-ld/v1/entityOperations/create' \
380380
"id": "urn:ngsi-ld:TemperatureSensor:003",
381381
"type": "TemperatureSensor",
382382
"category": {
383-
"type": "Property",
384-
"value": "sensor"
383+
"type": "VocabProperty",
384+
"vocab": "sensor"
385385
},
386386
"temperature": {
387387
"type": "Property",
@@ -393,8 +393,8 @@ curl -iX POST 'http://localhost:1026/ngsi-ld/v1/entityOperations/create' \
393393
"id": "urn:ngsi-ld:TemperatureSensor:004",
394394
"type": "TemperatureSensor",
395395
"category": {
396-
"type": "Property",
397-
"value": "sensor"
396+
"type": "VocabProperty",
397+
"vocab": "sensor"
398398
},
399399
"temperature": {
400400
"type": "Property",
@@ -445,8 +445,8 @@ curl -iX POST 'http://localhost:1026/ngsi-ld/v1/entityOperations/upsert' \
445445
"id": "urn:ngsi-ld:TemperatureSensor:002",
446446
"type": "TemperatureSensor",
447447
"category": {
448-
"type": "Property",
449-
"value": "sensor"
448+
"type": "VocabProperty",
449+
"vocab": "sensor"
450450
},
451451
"temperature": {
452452
"type": "Property",
@@ -458,8 +458,8 @@ curl -iX POST 'http://localhost:1026/ngsi-ld/v1/entityOperations/upsert' \
458458
"id": "urn:ngsi-ld:TemperatureSensor:003",
459459
"type": "TemperatureSensor",
460460
"category": {
461-
"type": "Property",
462-
"value": "sensor"
461+
"type": "VocabProperty",
462+
"vocab": "sensor"
463463
},
464464
"temperature": {
465465
"type": "Property",
@@ -519,10 +519,10 @@ TemperatureSensor `urn:ngsi-ld:TemperatureSensor:001` は、正規化された N
519519
"createdAt": "2020-08-27T14:33:06Z",
520520
"modifiedAt": "2020-08-27T14:33:10Z",
521521
"category": {
522-
"type": "Property",
522+
"type": "VocabProperty",
523523
"createdAt": "2020-08-27T14:33:06Z",
524524
"modifiedAt": "2020-08-27T14:33:06Z",
525-
"value": "sensor"
525+
"vocab": "sensor"
526526
},
527527
"temperature": {
528528
"type": "Property",
@@ -679,8 +679,8 @@ curl -G -iX GET 'http://localhost:1026/ngsi-ld/v1/entities/' \
679679
"id": "urn:ngsi-ld:TemperatureSensor:004",
680680
"type": "TemperatureSensor",
681681
"category": {
682-
"type": "Property",
683-
"value": "sensor"
682+
"type": "VocabProperty",
683+
"vocab": "sensor"
684684
},
685685
"temperature": {
686686
"type": "Property",
@@ -692,8 +692,8 @@ curl -G -iX GET 'http://localhost:1026/ngsi-ld/v1/entities/' \
692692
"id": "urn:ngsi-ld:TemperatureSensor:002",
693693
"type": "TemperatureSensor",
694694
"category": {
695-
"type": "Property",
696-
"value": "sensor"
695+
"type": "VocabProperty",
696+
"vocab": "sensor"
697697
},
698698
"temperature": {
699699
"type": "Property",
@@ -705,8 +705,8 @@ curl -G -iX GET 'http://localhost:1026/ngsi-ld/v1/entities/' \
705705
"id": "urn:ngsi-ld:TemperatureSensor:003",
706706
"type": "TemperatureSensor",
707707
"category": {
708-
"type": "Property",
709-
"value": "sensor"
708+
"type": "VocabProperty",
709+
"vocab": "sensor"
710710
},
711711
"temperature": {
712712
"type": "Property",
@@ -723,8 +723,8 @@ curl -G -iX GET 'http://localhost:1026/ngsi-ld/v1/entities/' \
723723
"unitCode": "C62"
724724
},
725725
"category": {
726-
"type": "Property",
727-
"value": "sensor"
726+
"type": "VocabProperty",
727+
"vocab": "sensor"
728728
},
729729
"controlledAsset": {
730730
"type": "Relationship",
@@ -849,8 +849,8 @@ curl -iX PATCH 'http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:Temperatur
849849
-H 'Content-Type: application/json' \
850850
-H 'Link: <http://context/user-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \
851851
--data-raw '{
852-
"value": ["sensor", "actuator"],
853-
"type": "Property"
852+
"vocab": ["sensor", "actuator"],
853+
"type": "VocabProperty"
854854
}'
855855
```
856856

@@ -872,11 +872,11 @@ curl -iX PATCH 'http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:Temperatur
872872
-H 'Link: <http://context/user-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \
873873
--data-raw '{
874874
"category": {
875-
"value": [
875+
"vocab": [
876876
"sensor",
877877
"actuator"
878878
],
879-
"type": "Property"
879+
"type": "VocabProperty"
880880
},
881881
"controlledAsset": {
882882
"type": "Relationship",
@@ -902,8 +902,8 @@ curl -iX POST 'http://localhost:1026/ngsi-ld/v1/entityOperations/upsert?options=
902902
"id": "urn:ngsi-ld:TemperatureSensor:003",
903903
"type": "TemperatureSensor",
904904
"category": {
905-
"type": "Property",
906-
"value": [
905+
"type": "VocabProperty",
906+
"vocab": [
907907
"actuator",
908908
"sensor"
909909
]
@@ -913,8 +913,8 @@ curl -iX POST 'http://localhost:1026/ngsi-ld/v1/entityOperations/upsert?options=
913913
"id": "urn:ngsi-ld:TemperatureSensor:004",
914914
"type": "TemperatureSensor",
915915
"category": {
916-
"type": "Property",
917-
"value": [
916+
"type": "VocabProperty",
917+
"vocab": [
918918
"actuator",
919919
"sensor"
920920
]
@@ -947,8 +947,8 @@ curl -iX POST 'http://localhost:1026/ngsi-ld/v1/entityOperations/update?options=
947947
"id": "urn:ngsi-ld:TemperatureSensor:003",
948948
"type": "TemperatureSensor",
949949
"category": {
950-
"type": "Property",
951-
"value": [
950+
"type": "VocabProperty",
951+
"vocab": [
952952
"actuator",
953953
"sensor"
954954
]
@@ -958,8 +958,8 @@ curl -iX POST 'http://localhost:1026/ngsi-ld/v1/entityOperations/update?options=
958958
"id": "urn:ngsi-ld:TemperatureSensor:004",
959959
"type": "TemperatureSensor",
960960
"temperature": {
961-
"type": "Property",
962-
"value": [
961+
"type": "VocabProperty",
962+
"vocab": [
963963
"actuator",
964964
"sensor"
965965
]
@@ -1064,17 +1064,17 @@ curl -L -X PATCH 'http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:Temperat
10641064
-H 'Link: <http://context/user-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \
10651065
--data-raw '{
10661066
"category": {
1067-
"value": null,
1068-
"type": "Property"
1067+
"vocab": "urn:nsgi-ld:null",
1068+
"type": "VocabularyProperty"
10691069
},
10701070
"controlledAsset": {
10711071
"type": "Relationship",
1072-
"object": null
1072+
"object": "urn:nsgi-ld:null"
10731073
}
10741074
}'
10751075
```
10761076

1077-
値に `null` が設定されている場合は、属性は削除されます。
1077+
値に `urn:ngsi-ld:null` が設定されている場合は、属性は削除されます。
10781078

10791079
<a name="find-existing-data-relationships"/>
10801080

0 commit comments

Comments
 (0)