Skip to content

Commit

Permalink
Add notes
Browse files Browse the repository at this point in the history
  • Loading branch information
jason-fox committed Dec 18, 2023
1 parent cecba2a commit 7fa5dce
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
8 changes: 4 additions & 4 deletions README.ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ Core NGSI-LD の `@context` は、`name` = `https://uri.etsi.org/ngsi-ld/name`
> **注**: 比較のために、標準のチュートリアル JSON-LD `@context` ファイルはこちらにあります。:
> `https://fiware.github.io/tutorials.Step-by-Step/tutorials-context.jsonld`

#### :one: リクエスト:
#### 1️⃣ リクエスト:

データ・エンティティを作成する際、日本語の JSON-LD `@context` にマッピングされたすべての URI の短縮名は、リクエストの
ペイロードで自由に使用できます。
Expand Down Expand Up @@ -640,7 +640,7 @@ JSON-LD `@context` ファイルは、**Building** エンティティに使用さ
`@context` で指定された短縮名を使用して返すことができます。これは、`Link` ヘッダは、tutorial JSON-LD の`@context`
ファイルを指しています。

#### :two: リクエスト:
#### 2️⃣ リクエスト:

```bash
curl -L -X GET 'http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:Building:store005' \
Expand Down Expand Up @@ -691,7 +691,7 @@ curl -L -X GET 'http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:Building:s
既存の **Building** エンティティを読み取り、日本語の `@context` を適用できます。使用する `@context` は、`Link` ヘッダで
提供されます。

#### :three: リクエスト:
#### 3️⃣ リクエスト:

```bash
curl -L -X GET 'http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:Building:store003' \
Expand Down Expand Up @@ -770,7 +770,7 @@ function translateRequest(req, res) {
}
```

#### :four: リクエスト:
#### 4️⃣ リクエスト:

リクエストを Context Broker に転送してから展開/圧縮操作を適用する `/japanese` エンドポイントが作成されました。

Expand Down
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@ application runs on the following URLs:
- `http://localhost:3000/app/store/urn:ngsi-ld:Building:store003`
- `http://localhost:3000/app/store/urn:ngsi-ld:Building:store004`

> :information_source: **Tip** Additionally, you can also watch the status of recent requests yourself by following the
> [!TIP]
> Additionally, you can also watch the status of recent requests yourself by following the
> container logs or viewing information on `localhost:3000/app/monitor` on a web browser.
>
> ![FIWARE Monitor](https://fiware.github.io/tutorials.Working-with-Linked-Data/img/monitor.png)
Expand Down Expand Up @@ -569,10 +570,11 @@ An alternative Japanese JSON-LD `@context` file has been created and published t
found here: `https://fiware.github.io/tutorials.Step-by-Step/japanese-context.jsonld`. Alternate data mappings can be
found for all attribute names used within the tutorials.

> :information_source: **Note**: For comparison the standard tutorial JSON-LD `@context` file can be found here:
> [!NOTE]
> For comparison the standard tutorial JSON-LD `@context` file can be found here:
> `https://fiware.github.io/tutorials.Step-by-Step/tutorials-context.jsonld`

#### :one: Request:
#### 1️⃣ Request:

When creating a data entity, short names for all of the URIs mapped in the Japanese JSON-LD `@context` can be used
freely in the payload of the request.
Expand Down Expand Up @@ -623,7 +625,7 @@ Therefore it is possible to request the new **Building** (created using the Japa
using the short names specified in the standard tutorial JSON-LD `@context`, this is done by supplying the `Link` header
is pointing to the tutorial JSON-LD `@context` file.

#### :two: Request:
#### 2️⃣ Request:

```console
curl -L -X GET 'http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:Building:store005' \
Expand Down Expand Up @@ -672,7 +674,7 @@ With one exception, there is no hierarchy defined within NGSI-LD `@context` file
possible to read any of the existing **Building** entities and apply the Japanese `@context`. The `@context` to used is
supplied in the `Link` header.

#### :three: Request:
#### 3️⃣ Request:

```console
curl -L -X GET 'http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:Building:store003' \
Expand Down Expand Up @@ -751,7 +753,7 @@ function translateRequest(req, res) {
}
```

#### :four: Request:
#### 4️⃣ Request:

A `/japanese` endpoint has been created which forwards a request to the context broker and then applies an
expansion/compaction operation.
Expand Down

0 comments on commit 7fa5dce

Please sign in to comment.