@@ -275,8 +275,8 @@ curl -iX POST 'http://localhost:1026/ngsi-ld/v1/entities/' \
275
275
"id": "urn:ngsi-ld:TemperatureSensor:001",
276
276
"type": "TemperatureSensor",
277
277
"category": {
278
- "type": "Property ",
279
- "value ": "sensor"
278
+ "type": "VocabProperty ",
279
+ "vocab ": "sensor"
280
280
},
281
281
"temperature": {
282
282
"type": "Property",
@@ -367,8 +367,8 @@ curl -iX POST 'http://localhost:1026/ngsi-ld/v1/entityOperations/create' \
367
367
"id": "urn:ngsi-ld:TemperatureSensor:002",
368
368
"type": "TemperatureSensor",
369
369
"category": {
370
- "type": "Property ",
371
- "value ": "sensor"
370
+ "type": "VocabProperty ",
371
+ "vocab ": "sensor"
372
372
},
373
373
"temperature": {
374
374
"type": "Property",
@@ -380,8 +380,8 @@ curl -iX POST 'http://localhost:1026/ngsi-ld/v1/entityOperations/create' \
380
380
"id": "urn:ngsi-ld:TemperatureSensor:003",
381
381
"type": "TemperatureSensor",
382
382
"category": {
383
- "type": "Property ",
384
- "value ": "sensor"
383
+ "type": "VocabProperty ",
384
+ "vocab ": "sensor"
385
385
},
386
386
"temperature": {
387
387
"type": "Property",
@@ -393,8 +393,8 @@ curl -iX POST 'http://localhost:1026/ngsi-ld/v1/entityOperations/create' \
393
393
"id": "urn:ngsi-ld:TemperatureSensor:004",
394
394
"type": "TemperatureSensor",
395
395
"category": {
396
- "type": "Property ",
397
- "value ": "sensor"
396
+ "type": "VocabProperty ",
397
+ "vocab ": "sensor"
398
398
},
399
399
"temperature": {
400
400
"type": "Property",
@@ -445,8 +445,8 @@ curl -iX POST 'http://localhost:1026/ngsi-ld/v1/entityOperations/upsert' \
445
445
"id": "urn:ngsi-ld:TemperatureSensor:002",
446
446
"type": "TemperatureSensor",
447
447
"category": {
448
- "type": "Property ",
449
- "value ": "sensor"
448
+ "type": "VocabProperty ",
449
+ "vocab ": "sensor"
450
450
},
451
451
"temperature": {
452
452
"type": "Property",
@@ -458,8 +458,8 @@ curl -iX POST 'http://localhost:1026/ngsi-ld/v1/entityOperations/upsert' \
458
458
"id": "urn:ngsi-ld:TemperatureSensor:003",
459
459
"type": "TemperatureSensor",
460
460
"category": {
461
- "type": "Property ",
462
- "value ": "sensor"
461
+ "type": "VocabProperty ",
462
+ "vocab ": "sensor"
463
463
},
464
464
"temperature": {
465
465
"type": "Property",
@@ -519,10 +519,10 @@ TemperatureSensor `urn:ngsi-ld:TemperatureSensor:001` は、正規化された N
519
519
"createdAt": "2020-08-27T14:33:06Z",
520
520
"modifiedAt": "2020-08-27T14:33:10Z",
521
521
"category": {
522
- "type": "Property ",
522
+ "type": "VocabProperty ",
523
523
"createdAt": "2020-08-27T14:33:06Z",
524
524
"modifiedAt": "2020-08-27T14:33:06Z",
525
- "value ": "sensor"
525
+ "vocab ": "sensor"
526
526
},
527
527
"temperature": {
528
528
"type": "Property",
@@ -679,8 +679,8 @@ curl -G -iX GET 'http://localhost:1026/ngsi-ld/v1/entities/' \
679
679
"id": "urn:ngsi-ld:TemperatureSensor:004",
680
680
"type": "TemperatureSensor",
681
681
"category": {
682
- "type": "Property ",
683
- "value ": "sensor"
682
+ "type": "VocabProperty ",
683
+ "vocab ": "sensor"
684
684
},
685
685
"temperature": {
686
686
"type": "Property",
@@ -692,8 +692,8 @@ curl -G -iX GET 'http://localhost:1026/ngsi-ld/v1/entities/' \
692
692
"id": "urn:ngsi-ld:TemperatureSensor:002",
693
693
"type": "TemperatureSensor",
694
694
"category": {
695
- "type": "Property ",
696
- "value ": "sensor"
695
+ "type": "VocabProperty ",
696
+ "vocab ": "sensor"
697
697
},
698
698
"temperature": {
699
699
"type": "Property",
@@ -705,8 +705,8 @@ curl -G -iX GET 'http://localhost:1026/ngsi-ld/v1/entities/' \
705
705
"id": "urn:ngsi-ld:TemperatureSensor:003",
706
706
"type": "TemperatureSensor",
707
707
"category": {
708
- "type": "Property ",
709
- "value ": "sensor"
708
+ "type": "VocabProperty ",
709
+ "vocab ": "sensor"
710
710
},
711
711
"temperature": {
712
712
"type": "Property",
@@ -723,8 +723,8 @@ curl -G -iX GET 'http://localhost:1026/ngsi-ld/v1/entities/' \
723
723
"unitCode": "C62"
724
724
},
725
725
"category": {
726
- "type": "Property ",
727
- "value ": "sensor"
726
+ "type": "VocabProperty ",
727
+ "vocab ": "sensor"
728
728
},
729
729
"controlledAsset": {
730
730
"type": "Relationship",
@@ -849,8 +849,8 @@ curl -iX PATCH 'http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:Temperatur
849
849
-H 'Content-Type: application/json' \
850
850
-H 'Link: <http://context/user-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \
851
851
--data-raw '{
852
- "value ": ["sensor", "actuator"],
853
- "type": "Property "
852
+ "vocab ": ["sensor", "actuator"],
853
+ "type": "VocabProperty "
854
854
}'
855
855
` ` `
856
856
@@ -872,11 +872,11 @@ curl -iX PATCH 'http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:Temperatur
872
872
-H 'Link: <http://context/user-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \
873
873
--data-raw '{
874
874
"category": {
875
- "value ": [
875
+ "vocab ": [
876
876
"sensor",
877
877
"actuator"
878
878
],
879
- "type": "Property "
879
+ "type": "VocabProperty "
880
880
},
881
881
"controlledAsset": {
882
882
"type": "Relationship",
@@ -902,8 +902,8 @@ curl -iX POST 'http://localhost:1026/ngsi-ld/v1/entityOperations/upsert?options=
902
902
"id": "urn:ngsi-ld:TemperatureSensor:003",
903
903
"type": "TemperatureSensor",
904
904
"category": {
905
- "type": "Property ",
906
- "value ": [
905
+ "type": "VocabProperty ",
906
+ "vocab ": [
907
907
"actuator",
908
908
"sensor"
909
909
]
@@ -913,8 +913,8 @@ curl -iX POST 'http://localhost:1026/ngsi-ld/v1/entityOperations/upsert?options=
913
913
"id": "urn:ngsi-ld:TemperatureSensor:004",
914
914
"type": "TemperatureSensor",
915
915
"category": {
916
- "type": "Property ",
917
- "value ": [
916
+ "type": "VocabProperty ",
917
+ "vocab ": [
918
918
"actuator",
919
919
"sensor"
920
920
]
@@ -947,8 +947,8 @@ curl -iX POST 'http://localhost:1026/ngsi-ld/v1/entityOperations/update?options=
947
947
"id": "urn:ngsi-ld:TemperatureSensor:003",
948
948
"type": "TemperatureSensor",
949
949
"category": {
950
- "type": "Property ",
951
- "value ": [
950
+ "type": "VocabProperty ",
951
+ "vocab ": [
952
952
"actuator",
953
953
"sensor"
954
954
]
@@ -958,8 +958,8 @@ curl -iX POST 'http://localhost:1026/ngsi-ld/v1/entityOperations/update?options=
958
958
"id": "urn:ngsi-ld:TemperatureSensor:004",
959
959
"type": "TemperatureSensor",
960
960
"temperature": {
961
- "type": "Property ",
962
- "value ": [
961
+ "type": "VocabProperty ",
962
+ "vocab ": [
963
963
"actuator",
964
964
"sensor"
965
965
]
@@ -1064,17 +1064,17 @@ curl -L -X PATCH 'http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:Temperat
1064
1064
-H 'Link: <http://context/user-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \
1065
1065
--data-raw '{
1066
1066
"category": {
1067
- "value ": null,
1068
- "type": "Property "
1067
+ "vocab ": "urn:nsgi-ld: null" ,
1068
+ "type": "VocabularyProperty "
1069
1069
},
1070
1070
"controlledAsset": {
1071
1071
"type": "Relationship",
1072
- "object": null
1072
+ "object": "urn:nsgi-ld: null"
1073
1073
}
1074
1074
}'
1075
1075
` ` `
1076
1076
1077
- 値に `null` が設定されている場合は、属性は削除されます。
1077
+ 値に `urn:ngsi-ld: null` が設定されている場合は、属性は削除されます。
1078
1078
1079
1079
<a name="find-existing-data-relationships"/>
1080
1080
0 commit comments