Skip to content

Commit

Permalink
Update to use local context
Browse files Browse the repository at this point in the history
  • Loading branch information
jason-fox committed Feb 2, 2024
1 parent 6f3a431 commit 1aa9c3c
Show file tree
Hide file tree
Showing 14 changed files with 1,542 additions and 2,125 deletions.
4 changes: 2 additions & 2 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ EXPOSED_PORT=1026

# Orion LD variables
ORION_LD_PORT=1026
ORION_LD_VERSION=1.5.1
ORION_LD_VERSION=1.6.0-pre-1572

# Scorpio variables
SCORPIO_PORT=9090
SCORPIO_VERSION=4.1.11
SCORPIO_VERSION=4.1.12

# Stellio variables
STELLIO_DOCKER_TAG=2.10.2
Expand Down
2,573 changes: 629 additions & 1,944 deletions FIWARE Relationships using Linked Data.postman_collection.json

Large diffs are not rendered by default.

684 changes: 684 additions & 0 deletions NGSI-LD Relationships using Linked Data.postman_collection.json

Large diffs are not rendered by default.

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

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

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

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

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

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

```jsonld
```json
"@graph": [
{
"@id": "tutorial:stocks",
Expand Down Expand Up @@ -474,7 +474,7 @@ curl -G -X GET \

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

```jsonld
```json
[
{
"@context": "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld",
Expand Down Expand Up @@ -557,7 +557,7 @@ curl -G -X GET \

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

```jsonld
```json
[
{
"@context": "https://fiware.github.io/tutorials.Step-by-Step/tutorials-context.jsonld",
Expand Down Expand Up @@ -612,7 +612,7 @@ curl -G -X GET \

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

```jsonld
```json
[
{
"@context": "https://fiware.github.io/tutorials.Step-by-Step/tutorials-context.jsonld",
Expand Down Expand Up @@ -680,7 +680,7 @@ curl -G -X GET \

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

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

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

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

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

```jsonld
```json
{
"@id": "tutorial:locatedIn",
"@type": "https://uri.etsi.org/ngsi-ld/Relationship",
Expand Down Expand Up @@ -936,7 +936,7 @@ curl -G -X GET \

#### レスポンス :

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

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

```jsonld
```json
[
{
"id": "urn:ngsi-ld:Shelf:unit001",
Expand Down Expand Up @@ -1031,7 +1031,7 @@ curl -G -X GET \

#### レスポンス :

```jsonld
```json
{
"id": "urn:ngsi-ld:Building:store001",
"type": "Building",
Expand Down Expand Up @@ -1116,7 +1116,7 @@ curl -G -X GET \

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

```jsonld
```json
[
{
"id": "urn:ngsi-ld:StockOrder:001",
Expand Down Expand Up @@ -1151,7 +1151,7 @@ curl -G -X GET \

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

```jsonld
```json
[
{
"id": "urn:ngsi-ld:StockOrder:001",
Expand Down Expand Up @@ -1180,7 +1180,7 @@ curl -G -X GET \

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

```jsonld
```json
{
"@context": "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld",
"id": "urn:ngsi-ld:StockOrder:001",
Expand Down
Loading

0 comments on commit 1aa9c3c

Please sign in to comment.