You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -628,8 +629,10 @@ curl -L -X POST 'http://localhost:1026/ngsi-ld/v1/entities/' \
628
629
}'
629
630
```
630
631
631
-
Note that in this example the name and address have been supplied as simple strings - JSON-LD does support a **LanguageProperty** `@lang`
632
-
definition to allow for internationalization, but this is an advanced topic which will not be discussed here. Note that the `category`/ `カテゴリー` has been defined using a **VocabularyProperty**, so that the enumerated value `commercial`/ `"コマーシャル` can also be amended via the `@context`.
632
+
Note that in this example the name and address have been supplied as simple strings - JSON-LD does support a
633
+
**LanguageProperty** `@lang` definition to allow for internationalization, but this is an advanced topic which will not
634
+
be discussed here. Note that the `category`/ `カテゴリー` has been defined using a **VocabularyProperty**, so that the
635
+
enumerated value `commercial`/ `"コマーシャル` can also be amended via the `@context`.
633
636
634
637
### Reading an Entity using the default schema
635
638
@@ -638,8 +641,8 @@ different attribute short names, the Japanese JSON-LD `@context` file agrees wit
638
641
the full URIs used for a **Building** entity - effectively it is using the same data model.
639
642
640
643
Therefore it is possible to request the new **Building** (created using the Japanese data model) and have it return
641
-
using the short names specified in the standard Englisu User JSON-LD `@context`, this is done by supplying the `Link` header
642
-
is pointing to the tutorial JSON-LD `@context` file.
644
+
using the short names specified in the standard Englisu User JSON-LD `@context`, this is done by supplying the `Link`
645
+
header is pointing to the tutorial JSON-LD `@context` file.
643
646
644
647
#### 2️⃣ Request:
645
648
@@ -702,18 +705,15 @@ curl -L -X GET 'http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:Building:s
702
705
703
706
The response is mixed - it uses attribute names and enumerations defined in `japanese-context.jsonld` with some
704
707
exceptions. NGSI-LD **is not** JSON-LD, in that the core context is always applied after the contexts received in the
705
-
`Link`header. Since `location` is a reserved attribute name, it is always supplied using the default core
706
-
context.
708
+
`Link`header. Since `location` is a reserved attribute name, it is always supplied using the default core context.
@@ -820,20 +813,17 @@ payload before sending data to the context broker.
820
813
"名前": "Yuusui-en",
821
814
"場所": {
822
815
"タイプ": "場",
823
-
"座標": [
824
-
13.5646,
825
-
52.5435
826
-
]
816
+
"座標": [13.5646, 52.5435]
827
817
},
828
818
"カテゴリー": {
829
819
"語彙": "コマーシャル"
830
820
}
831
821
}
832
822
```
833
823
834
-
835
-
It is worth noting that the subattributes of `address` / `住所"` were left undefined by the `@context` files and therefore have remained unconverted. Both `address` and `住所"` are mapped to the same URI `http://schema.org/address`, it would have been possible to
836
-
include additional mappings for the subattributes using the schema.org ontology as shown:
824
+
It is worth noting that the subattributes of `address` / `住所"` were left undefined by the `@context` files and
825
+
therefore have remained unconverted. Both `address` and `住所"` are mapped to the same URI `http://schema.org/address`,
826
+
it would have been possible to include additional mappings for the subattributes using the schema.org ontology as shown:
837
827
838
828
```json
839
829
{
@@ -844,7 +834,6 @@ include additional mappings for the subattributes using the schema.org ontology
0 commit comments