Skip to content

Commit 71a968a

Browse files
committed
Update docs - add VocabProperty
1 parent 999b7d2 commit 71a968a

File tree

2 files changed

+68
-32
lines changed

2 files changed

+68
-32
lines changed

README.ja.md

Lines changed: 36 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -363,8 +363,8 @@ curl -iX POST 'http://localhost:1026/ngsi-ld/v1/entities/' \
363363
"id": "urn:ngsi-ld:Building:farm001",
364364
"type": "Building",
365365
"category": {
366-
"type": "Property",
367-
"value": ["farm"]
366+
"type": "VocabProperty",
367+
"vocab": ["farm"]
368368
},
369369
"address": {
370370
"type": "Property",
@@ -427,8 +427,8 @@ curl -iX POST 'http://localhost:1026/ngsi-ld/v1/entities/' \
427427
"id": "urn:ngsi-ld:Building:barn002",
428428
"type": "Building",
429429
"category": {
430-
"type": "Property",
431-
"value": ["barn"]
430+
"type": "VocabProperty",
431+
"vocab": ["barn"]
432432
},
433433
"address": {
434434
"type": "Property",
@@ -565,8 +565,8 @@ curl -G -X GET \
565565
"value": "Victory Farm"
566566
},
567567
"https://uri.fiware.org/ns/dataModels#category": {
568-
"type": "Property",
569-
"value": "farm"
568+
"type": "VocabProperty",
569+
"vocab": "https://wiki.openstreetmap.org/wiki/Tag:building%3Dfarm"
570570
},
571571
"location": {
572572
"type": "GeoProperty",
@@ -601,8 +601,8 @@ curl -G -X GET \
601601
"value": "Big Red Barn"
602602
},
603603
"https://uri.fiware.org/ns/dataModels#category": {
604-
"type": "Property",
605-
"value": "barn"
604+
"type": "VocabProperty",
605+
"vocab": "https://wiki.openstreetmap.org/wiki/Tag:building%3Dbarn"
606606
},
607607
"location": {
608608
"type": "GeoProperty",
@@ -661,7 +661,7 @@ Core `@context` が含まれることは常に暗示されることに注意し
661661
"id": "urn:ngsi-ld:Building:farm001",
662662
"type": "Building",
663663
"category": {
664-
"type": "Property",
664+
"type": "VocabProperty",
665665
"value": "farm"
666666
},
667667
"address": {
@@ -739,7 +739,9 @@ curl -G -X GET \
739739
"postalCode": "10557"
740740
},
741741
"name": "Victory Farm",
742-
"category": "farm",
742+
"category": {
743+
"vocab": "farm"
744+
},
743745
"location": {
744746
"type": "Point",
745747
"coordinates": [
@@ -762,7 +764,9 @@ curl -G -X GET \
762764
"postalCode": "10557"
763765
},
764766
"name": "Big Red Barn",
765-
"category": "barn",
767+
"category": {
768+
"vocab": "barn"
769+
},
766770
"location": {
767771
"type": "Point",
768772
"coordinates": [
@@ -816,7 +820,9 @@ curl -G -X GET \
816820
"postalCode": "10557"
817821
},
818822
"name": "Big Red Barn",
819-
"category": "barn",
823+
"category": {
824+
"vocab": "barn"
825+
},
820826
"location": {
821827
"type": "Point",
822828
"coordinates": [
@@ -946,7 +952,9 @@ curl -G -X GET \
946952
"postalCode": "10557"
947953
},
948954
"name": "Big Red Barn",
949-
"category": "barn",
955+
"category": {
956+
"vocab": "barn"
957+
},
950958
"location": {
951959
"type": "Point",
952960
"coordinates": [
@@ -998,7 +1006,9 @@ curl -G -X GET 'http://localhost:1026/ngsi-ld/v1/entities/' \
9981006
"postalCode": "10557"
9991007
},
10001008
"name": "Victory Farm",
1001-
"category": "farm",
1009+
"category": {
1010+
"vocab": "farm"
1011+
},
10021012
"location": {
10031013
"type": "Point",
10041014
"coordinates": [
@@ -1021,7 +1031,9 @@ curl -G -X GET 'http://localhost:1026/ngsi-ld/v1/entities/' \
10211031
"postalCode": "10557"
10221032
},
10231033
"name": "Big Red Barn",
1024-
"category": "barn",
1034+
"category": {
1035+
"vocab": "barn"
1036+
},
10251037
"location": {
10261038
"type": "Point",
10271039
"coordinates": [
@@ -1072,7 +1084,9 @@ curl -G -X GET \
10721084
"postalCode": "10557"
10731085
},
10741086
"name": "Victory Farm",
1075-
"category": "farm",
1087+
"category": {
1088+
"vocab": "farm"
1089+
},
10761090
"location": {
10771091
"type": "Point",
10781092
"coordinates": [13.3505, 52.5144]
@@ -1088,7 +1102,9 @@ curl -G -X GET \
10881102
"postalCode": "10557"
10891103
},
10901104
"name": "Big Red Barn",
1091-
"category": "barn",
1105+
"category": {
1106+
"vocab": "barn"
1107+
},
10921108
"location": {
10931109
"type": "Point",
10941110
"coordinates": [13.3698, 52.5163]
@@ -1143,7 +1159,9 @@ curl -G -X GET \
11431159
"postalCode": "10557"
11441160
},
11451161
"name": "Big Red Barn",
1146-
"category": "barn",
1162+
"category": {
1163+
"vocab": "barn"
1164+
},
11471165
"location": {
11481166
"type": "Point",
11491167
"coordinates": [13.3698, 52.5163]

README.md

Lines changed: 32 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -380,8 +380,8 @@ curl -iX POST 'http://localhost:1026/ngsi-ld/v1/entities/' \
380380
"id": "urn:ngsi-ld:Building:farm001",
381381
"type": "Building",
382382
"category": {
383-
"type": "Property",
384-
"value": ["farm"]
383+
"type": "VocabProperty",
384+
"vocab": ["farm"]
385385
},
386386
"address": {
387387
"type": "Property",
@@ -445,8 +445,8 @@ curl -iX POST 'http://localhost:1026/ngsi-ld/v1/entities/' \
445445
"id": "urn:ngsi-ld:Building:barn002",
446446
"type": "Building",
447447
"category": {
448-
"type": "Property",
449-
"value": ["barn"]
448+
"type": "VocabProperty",
449+
"vocab": ["barn"]
450450
},
451451
"address": {
452452
"type": "Property",
@@ -663,7 +663,7 @@ files explicitly as element in the array of `@context` sent. The response is nor
663663
"id": "urn:ngsi-ld:Building:farm001",
664664
"type": "Building",
665665
"category": {
666-
"type": "Property",
666+
"type": "VocabProperty",
667667
"value": "farm"
668668
},
669669
"address": {
@@ -736,7 +736,9 @@ used as the `@context` returned in the response.
736736
"postalCode": "10557"
737737
},
738738
"name": "Victory Farm",
739-
"category": "farm",
739+
"category": {
740+
"vocab": "farm"
741+
},
740742
"location": {
741743
"type": "Point",
742744
"coordinates": [13.3505, 52.5144]
@@ -756,7 +758,9 @@ used as the `@context` returned in the response.
756758
"postalCode": "10557"
757759
},
758760
"name": "Big Red Barn",
759-
"category": "barn",
761+
"category": {
762+
"vocab": "barn"
763+
},
760764
"location": {
761765
"type": "Point",
762766
"coordinates": [13.3698, 52.5163]
@@ -805,7 +809,9 @@ The use of the `Link` header and the `options=keyValues` parameter reduces the r
805809
"postalCode": "10557"
806810
},
807811
"name": "Big Red Barn",
808-
"category": "barn",
812+
"category": {
813+
"vocab": "barn"
814+
},
809815
"location": {
810816
"type": "Point",
811817
"coordinates": [13.3698, 52.5163]
@@ -925,7 +931,9 @@ The response is returned in JSON-LD format with short form attribute names:
925931
"postalCode": "10557"
926932
},
927933
"name": "Big Red Barn",
928-
"category": "barn",
934+
"category": {
935+
"vocab": "barn"
936+
},
929937
"location": {
930938
"type": "Point",
931939
"coordinates": [13.3698, 52.5163]
@@ -972,7 +980,9 @@ Use of the `Link` header and the `options=keyValues` parameter reduces the respo
972980
"postalCode": "10557"
973981
},
974982
"name": "Victory Farm",
975-
"category": "farm",
983+
"category": {
984+
"vocab": "farm"
985+
},
976986
"location": {
977987
"type": "Point",
978988
"coordinates": [13.3505, 52.5144]
@@ -992,7 +1002,9 @@ Use of the `Link` header and the `options=keyValues` parameter reduces the respo
9921002
"postalCode": "10557"
9931003
},
9941004
"name": "Big Red Barn",
995-
"category": "barn",
1005+
"category": {
1006+
"vocab": "barn"
1007+
},
9961008
"location": {
9971009
"type": "Point",
9981010
"coordinates": [13.3698, 52.5163]
@@ -1037,7 +1049,9 @@ consists of JSON only without the attribute `type` and `metadata` elements.
10371049
"postalCode": "10557"
10381050
},
10391051
"name": "Victory Farm",
1040-
"category": "farm",
1052+
"category": {
1053+
"vocab": "farm"
1054+
},
10411055
"location": {
10421056
"type": "Point",
10431057
"coordinates": [13.3505, 52.5144]
@@ -1053,7 +1067,9 @@ consists of JSON only without the attribute `type` and `metadata` elements.
10531067
"postalCode": "10557"
10541068
},
10551069
"name": "Big Red Barn",
1056-
"category": "barn",
1070+
"category": {
1071+
"vocab": "barn"
1072+
},
10571073
"location": {
10581074
"type": "Point",
10591075
"coordinates": [13.3698, 52.5163]
@@ -1106,7 +1122,9 @@ consists of JSON only without the attribute `type` and `metadata` elements.
11061122
"postalCode": "10557"
11071123
},
11081124
"name": "Big Red Barn",
1109-
"category": "barn",
1125+
"category": {
1126+
"vocab": "barn"
1127+
},
11101128
"location": {
11111129
"type": "Point",
11121130
"coordinates": [13.3698, 52.5163]

0 commit comments

Comments
 (0)