Skip to content

Commit 1aa9c3c

Browse files
committed
Update to use local context
1 parent 6f3a431 commit 1aa9c3c

14 files changed

Lines changed: 1542 additions & 2125 deletions

.env

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ EXPOSED_PORT=1026
44

55
# Orion LD variables
66
ORION_LD_PORT=1026
7-
ORION_LD_VERSION=1.5.1
7+
ORION_LD_VERSION=1.6.0-pre-1572
88

99
# Scorpio variables
1010
SCORPIO_PORT=9090
11-
SCORPIO_VERSION=4.1.11
11+
SCORPIO_VERSION=4.1.12
1212

1313
# Stellio variables
1414
STELLIO_DOCKER_TAG=2.10.2

FIWARE Relationships using Linked Data.postman_collection.json

Lines changed: 629 additions & 1944 deletions
Large diffs are not rendered by default.

NGSI-LD Relationships using Linked Data.postman_collection.json

Lines changed: 684 additions & 0 deletions
Large diffs are not rendered by default.

README.ja.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ NGSI v2 シナリオとは異なり、リンクト・データを使用すると
246246
- 一部の `product:XXX` アイテムは `stockOrder:0001` から削除されました。`stockCount` をデクリメントします
247247
- **StockOrder** を調べると、**Product** が特定の URI の `requestedFor` であることがわかります。例: `store:002`
248248

249-
```jsonld
249+
```json
250250
"@graph": [
251251
{
252252
"@id": "tutorial:orderedProduct",
@@ -262,7 +262,7 @@ NGSI v2 シナリオとは異なり、リンクト・データを使用すると
262262

263263
- **StockOrder** モデルから、`requestedFor` URI が **Building** を定義していることもわかりました
264264

265-
```jsonld
265+
```json
266266
"@graph": [
267267
{
268268
"@id": "tutorial:requestedFor",
@@ -279,7 +279,7 @@ NGSI v2 シナリオとは異なり、リンクト・データを使用すると
279279
- **Building** モデルから、すべての **Building** が URIs の配列として `furniture` を含むことがわかりました
280280
- **Building** モデルから、これらの URI が **Shelf** ユニットを表すことがわかりました
281281

282-
```jsonld
282+
```json
283283
"@graph": [
284284
{
285285
"@id": "tutorial:furniture",
@@ -295,7 +295,7 @@ NGSI v2 シナリオとは異なり、リンクト・データを使用すると
295295

296296
- **Shelf** モデルから、`stocks` 属性が **Product** アイテムを表す URI を保持していることがわかりました
297297

298-
```jsonld
298+
```json
299299
"@graph": [
300300
{
301301
"@id": "tutorial:stocks",
@@ -474,7 +474,7 @@ curl -G -X GET \
474474

475475
レスポンスは、属性が完全修飾名 (FQNs) として展開された既存のすべての **Building** エンティティを返します。
476476

477-
```jsonld
477+
```json
478478
[
479479
{
480480
"@context": "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld",
@@ -557,7 +557,7 @@ curl -G -X GET \
557557

558558
ただし、完全なコンテキストが `Link` ヘッダで提供されているため、短縮名が返されます。
559559

560-
```jsonld
560+
```json
561561
[
562562
{
563563
"@context": "https://fiware.github.io/tutorials.Step-by-Step/tutorials-context.jsonld",
@@ -612,7 +612,7 @@ curl -G -X GET \
612612

613613
再び短縮名 (short names) が返されます。
614614

615-
```jsonld
615+
```json
616616
[
617617
{
618618
"@context": "https://fiware.github.io/tutorials.Step-by-Step/tutorials-context.jsonld",
@@ -680,7 +680,7 @@ curl -G -X GET \
680680

681681
`@context` が `Link` ヘッダで提供されているため、短縮名が返されています。
682682

683-
```jsonld
683+
```json
684684
{
685685
"@context": "https://fiware.github.io/tutorials.Step-by-Step/tutorials-context.jsonld",
686686
"id": "urn:ngsi-ld:Shelf:unit001",
@@ -794,7 +794,7 @@ curl -X GET \
794794
[**Shelf** データモデル](https://fiware.github.io/tutorials.Step-by-Step/schema/Shelf/)
795795
で定義されているように、完全修飾名 (FQNs) として展開されています。
796796

797-
```jsonld
797+
```json
798798
{
799799
"@context": "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld",
800800
"id": "urn:ngsi-ld:Shelf:unit001",
@@ -859,7 +859,7 @@ JSON-LD の中心的な動機の1つは、基本的に同じデータ型の異
859859

860860
JSON-LD `@context` の関連する行を見てください :
861861

862-
```jsonld
862+
```json
863863
"tutorial": "https://fiware.github.io/tutorials.Step-by-Step/schema/",
864864
865865
"Shelf": "tutorial:Shelf",
@@ -890,7 +890,7 @@ JSON-LD `@context` の関連する行を見てください :
890890
`Relationships` に関する詳細情報は、リンクト・データモデルの `@graph` から取得できます。`locatedIn`
891891
の場合、関連するセクション定義は次のとおりです :
892892

893-
```jsonld
893+
```json
894894
{
895895
"@id": "tutorial:locatedIn",
896896
"@type": "https://uri.etsi.org/ngsi-ld/Relationship",
@@ -936,7 +936,7 @@ curl -G -X GET \
936936

937937
#### レスポンス :
938938

939-
```jsonld
939+
```json
940940
{
941941
"@context": "https://fiware.github.io/tutorials.Step-by-Step/tutorials-context.jsonld",
942942
"id": "urn:ngsi-ld:Shelf:unit001",
@@ -968,7 +968,7 @@ curl -G -X GET \
968968

969969
レスポンスには、表示する配列が含まれます。
970970

971-
```jsonld
971+
```json
972972
[
973973
{
974974
"id": "urn:ngsi-ld:Shelf:unit001",
@@ -1031,7 +1031,7 @@ curl -G -X GET \
10311031

10321032
#### レスポンス :
10331033

1034-
```jsonld
1034+
```json
10351035
{
10361036
"id": "urn:ngsi-ld:Building:store001",
10371037
"type": "Building",
@@ -1116,7 +1116,7 @@ curl -G -X GET \
11161116

11171117
レスポンスは、レスポンス内の `requestedFor` 属性の配列を返します。
11181118

1119-
```jsonld
1119+
```json
11201120
[
11211121
{
11221122
"id": "urn:ngsi-ld:StockOrder:001",
@@ -1151,7 +1151,7 @@ curl -G -X GET \
11511151

11521152
レスポンスは、レスポンス内の `orderedProduct` 属性の配列を返します。これは前のリクエストの逆です。
11531153

1154-
```jsonld
1154+
```json
11551155
[
11561156
{
11571157
"id": "urn:ngsi-ld:StockOrder:001",
@@ -1180,7 +1180,7 @@ curl -G -X GET \
11801180

11811181
レスポンスは、完全に展開されたエンティティを返します。
11821182

1183-
```jsonld
1183+
```json
11841184
{
11851185
"@context": "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld",
11861186
"id": "urn:ngsi-ld:StockOrder:001",

0 commit comments

Comments
 (0)