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 1a40902 commit 43f7560
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 55 deletions.
52 changes: 26 additions & 26 deletions README.ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ git checkout NGSI-LD

公開されたポートに HTTP リクエストを送信することで、IoT Agent が実行されているかどうかを確認できます:

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

```console
curl -X GET \
Expand Down Expand Up @@ -529,7 +529,7 @@ Context Broker に再送信される `@context` ファイルの場所を保持
この例では、デバイスの匿名グループをプロビジョニングします。 一連のデバイスは、 IoT Agentが**ノースバウンド**通信を
リッスンしている `IOTA_HTTP_PORT` にメッセージを送信することを IoT Agent に通知します。

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

```console
curl -iX POST 'http://localhost:4041/iot/services' \
Expand Down Expand Up @@ -609,7 +609,7 @@ NGSI-LD [specification](https://www.etsi.org/deliver/etsi_gs/CIM/001_099/009/01.
> **注**: 個々の `id` が必要ない場合、または集約されたデータで十分な場合、`attributes` は個別ではなく
> プロビジョニング・サービス内で定義できます。

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

```console
curl -L -X POST 'http://localhost:4041/iot/devices' \
Expand Down Expand Up @@ -677,7 +677,7 @@ curl -L -X POST 'http://localhost:4041/iot/devices' \
次のリクエストを行うことで、**Temperature Sensor** デバイス `temperature001` からのダミー IoT
デバイス測定をシミュレートできます。

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

```console
curl -L -X POST 'http://localhost:7896/iot/d?k=4jggokgpepnvsb2uv4s40d59ov&i=temperature001' \
Expand All @@ -698,7 +698,7 @@ curl -L -X POST 'http://localhost:7896/iot/d?k=4jggokgpepnvsb2uv4s40d59ov&i=temp
Context Broker からエンティティ・データを取得すると、測定値が記録されていることがわかります。
`fiware-service` および `fiware-service-path` ヘッダを追加することを忘れないでください。

#### :five: リクエスト:
#### 5️⃣ リクエスト:

```console
curl -G -iX GET 'http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:Device:temperature001' \
Expand Down Expand Up @@ -737,7 +737,7 @@ curl -G -iX GET 'http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:Device:te

たとえば、 `/iot/d` エンドポイントへのこのリクエストを考えてみましょう:

#### :six: リクエスト:
#### 6️⃣ リクエスト:

```console
curl -iX POST 'http://localhost:7896/iot/d?k=4jggokgpepnvsb2uv4s40d59ov&i=motion003' \
Expand All @@ -749,7 +749,7 @@ curl -iX POST 'http://localhost:7896/iot/d?k=4jggokgpepnvsb2uv4s40d59ov&i=motion
認識され、サービス・エンティティの知識に基づいて属性がマッピングされた新しいエンティティが Context Broker
に作成されます。

#### :seven: リクエスト:
#### 7️⃣ リクエスト:

```console
curl -L -X GET 'http://localhost:1026/ngsi-ld/v1/entities/?type=Device' \
Expand Down Expand Up @@ -798,7 +798,7 @@ UltraLight コマンドを送信する必要がある場所を保持し、`comma
`http://iot-sensors:3001/iot/water001` であり、`on` コマンドを受け入れることができます。`transport=HTTP`
属性は、使用する通信プロトコルを定義します。

#### :eight: リクエスト:
#### 8️⃣ リクエスト:

```console
curl -L -X POST 'http://localhost:4041/iot/devices' \
Expand Down Expand Up @@ -838,7 +838,7 @@ PATCH リクエストを送信することにより、コマンドがデバイ
Context Broker によって呼び出されるのはこのエンドポイントです。設定をテストするには、次のようにコマンドを
直接実行します:

#### :nine: リクエスト:
#### 9️⃣ リクエスト:

```console
curl -L -X PATCH 'http://localhost:4041/ngsi-ld/v1/entities/urn:ngsi-ld:Device:water001/attrs/on' \
Expand All @@ -859,7 +859,7 @@ curl -L -X PATCH 'http://localhost:4041/ngsi-ld/v1/entities/urn:ngsi-ld:Device:w

Water sprinkler をオンにするコマンドの結果は、Context Broker 内のエンティティをクエリすることで読み取ることができます。

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

```console
curl -L -X GET 'http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:Device:water001' \
Expand Down Expand Up @@ -916,7 +916,7 @@ curl -L -X GET 'http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:Device:wat
コマンドと測定値の両方を提供するデバイスをプロビジョニングすることは、リクエストのボディに `attributes` と
`command` の両方の属性を含む HTTP POST リクエストを作成するだけです。

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

```console
curl -L -X POST 'http://localhost:4041/iot/devices' \
Expand Down Expand Up @@ -975,7 +975,7 @@ curl -L -X POST 'http://localhost:4041/iot/devices' \
同様に、2つのコマンド (`start` および `stop`) と2つの属性を持つ **Tractor**
は、次のようにプロビジョニングできます:

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

```console
curl -L -X POST 'http://localhost:4041/iot/devices' \
Expand Down Expand Up @@ -1009,7 +1009,7 @@ curl -L -X POST 'http://localhost:4041/iot/devices' \
プロビジョニングされたデバイスの完全なリストは、`/iot/devices` エンドポイントに GET
リクエストを行うことで取得できます。

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

```console
curl -L -X GET 'http://localhost:4041/iot/devices' \
Expand All @@ -1036,7 +1036,7 @@ IoT Agent を IoT デバイスに接続すると、Orion Context Broker にコ

`on` コマンドを呼び出すには、コンテキストで `on` 属性を更新する必要があります。

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

```console
curl -L -X PATCH 'http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:Device:water001/attrs/on' \
Expand All @@ -1061,7 +1061,7 @@ curl -L -X PATCH 'http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:Device:w

`start` コマンドを呼び出すには、コンテキストで `start` 属性を更新する必要があります。

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

```console
curl -L -X PATCH 'http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:Device:tractor001/attrs/start' \
Expand All @@ -1082,7 +1082,7 @@ curl -L -X PATCH 'http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:Device:t

**Fillling System** の状態を変更するには、コンテキストで `add` 属性を更新する必要があります。

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

```console
curl -L -X PATCH 'http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:Device:filling001/attrs/add' \
Expand Down Expand Up @@ -1118,7 +1118,7 @@ HTTP 動詞にマップされます:
この例では、デバイスの匿名グループをプロビジョニングします。これは、一連のデバイスが IoT Agent が **ノースバウンド**
通信をリッスンしている `IOTA_HTTP_PORT` にメッセージを送信することを IoT Agent に通知します。

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

```console
curl -iX POST \
Expand Down Expand Up @@ -1147,7 +1147,7 @@ curl -iX POST \
サービス・グループの詳細は、`/iot/services` エンドポイントに GET リクエストを行い、`resource`
パラメータを指定することで読み取ることができます。

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

```console
curl -X GET \
Expand Down Expand Up @@ -1212,7 +1212,7 @@ curl -X GET \
この例では、`/iot/services` エンドポイントに GET リクエストを行うことにより、プロビジョニングされた
すべてのサービスを一覧表示します。

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

```console
curl -X GET \
Expand Down Expand Up @@ -1279,7 +1279,7 @@ curl -X GET \
サービス・グループの詳細は、`/iot/services` エンドポイントに PUT リクエストを送信し、`resource` および
`apikey` パラメータを提供することで更新できます。

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

```console
curl -iX PUT \
Expand All @@ -1304,7 +1304,7 @@ curl -iX PUT \
によって処理されなくなることを意味します。削除するサービス・グループを特定するには、`apiKey`
パラメータと `resource` パラメータを指定する必要があります。

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

```console
curl -iX DELETE \
Expand Down Expand Up @@ -1336,7 +1336,7 @@ HTTP 動詞にマッピングされます:
を提供し、HTTP を使用して `http://iot-sensors:3001/iot/water002` をリッスンしていることを通知されました。
`attributes`, `lazy` 属性, `static_attributes` もプロビジョニングできます。

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

```console
curl -iX POST 'http://localhost:4041/iot/devices' \
Expand Down Expand Up @@ -1380,7 +1380,7 @@ curl -iX POST 'http://localhost:4041/iot/devices' \
プロビジョニングされたデバイスの詳細は、`/iot/devices/<device-id>` エンドポイントに GET
リクエストを行うことで読み取ることができます。

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

```console
curl -X GET \
Expand Down Expand Up @@ -1435,7 +1435,7 @@ curl -X GET \
この例では、`/iot/devices` エンドポイントに GET リクエストを送信して、
プロビジョニングされたすべてのデバイスを一覧表示します。

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

```console
curl -X GET \
Expand Down Expand Up @@ -1490,7 +1490,7 @@ curl -X GET \
この例では、`/iot/devices/<device-id>` エンドポイントに PUT リクエストを送信することにより、
既存のプロビジョニングされたデバイスを更新します。

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

```console
curl -iX PUT \
Expand All @@ -1513,7 +1513,7 @@ curl -iX PUT \
デバイスの属性はマッピングされなくなり、コマンドをデバイスに送信できなくなります。デバイスがアクティブな測定を
行っている場合、関連するサービスが削除されていなければ、それらはデフォルト値で処理されます。

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

```console
curl -iX DELETE \
Expand Down
Loading

0 comments on commit 43f7560

Please sign in to comment.