Skip to content

Commit 4b8bbcc

Browse files
committed
Switching to user-context
1 parent 3170912 commit 4b8bbcc

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

README.ja.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ tutorial:
251251
- "DUMMY_DEVICES_API_KEY=4jggokgpepnvsb2uv4s40d59ov"
252252
- "DUMMY_DEVICES_TRANSPORT=HTTP"
253253
- "DUMMY_DEVICES_PAYLOAD=JSON"
254-
- "IOTA_JSON_LD_CONTEXT=http://context/ngsi-context.jsonld"
254+
- "IOTA_JSON_LD_CONTEXT=http://context/user-context.jsonld"
255255
```
256256
257257
`tutorial` コンテナは2つのポートでリッスンしています:
@@ -272,7 +272,7 @@ tutorial:
272272
| DUMMY_DEVICES_API_KEY | `4jggokgpepnvsb2uv4s40d59ov` | JSON インタラクションに使用されるランダムなセキュリティ・キー - デバイスと IoT Agent 間の相互作用の整合性を確保するために使用されます |
273273
| DUMMY_DEVICES_TRANSPORT | `HTTP` | ダミー IoT デバイスで使用されるトランスポート・プロトコル |
274274
| DUMMY_DEVICES_PAYLOAD | `JSON` | ダミー IoT デバイスで使用されるペイロード形式 |
275-
| IOTA_JSON_LD_CONTEXT | `http://context/ngsi-context.jsonld` | デバイス・データモデルの定義に使用される `@context` ファイルの場所 |
275+
| IOTA_JSON_LD_CONTEXT | `http://context/user-context.jsonld` | デバイス・データモデルの定義に使用される `@context` ファイルの場所 |
276276

277277
YAML ファイルで説明されている他の `tutorial` コンテナ設定値は、このチュートリアルでは使用しません。
278278

@@ -314,7 +314,7 @@ iot-agent:
314314
- IOTA_HTTP_PORT=7896
315315
- IOTA_PROVIDER_URL=http://iot-agent:4041
316316
- IOTA_DEFAULT_RESOURCE=/iot/json
317-
- IOTA_JSON_LD_CONTEXT=http://context/ngsi-context.jsonld
317+
- IOTA_JSON_LD_CONTEXT=http://context/user-context.jsonld
318318
- IOTA_FALLBACK_TENANT=openiot
319319
- IOTA_MULTI_CORE=true
320320
```
@@ -343,7 +343,7 @@ iot-agent:
343343
| IOTA_MONGO_DB | `iotagentul` | mongoDB で使用されるデータベースの名前 |
344344
| IOTA_HTTP_PORT | `7896` | IoT Agent が HTTP 経由で IoT デバイス トラフィックをリッスンするポート |
345345
| IOTA_PROVIDER_URL | `http://iot-agent:4041` | コマンドの登録時に Context Broker に渡される URL。Context Broker がデバイスにコマンドを発行するときにフォワーディング URL の場所として使用されます |
346-
| IOTA_JSON_LD_CONTEXT | `http://context/ngsi-context.jsonld` | デバイス データ モデルの定義に使用される `@context` ファイルの場所 |
346+
| IOTA_JSON_LD_CONTEXT | `http://context/user-context.jsonld` | デバイス データ モデルの定義に使用される `@context` ファイルの場所 |
347347
| IOTA_FALLBACK_TENANT | `openiot` | 通信から明示的なテナントを受信していない場合に使用するテナント |
348348

349349
<a name="prerequisites"></a>
@@ -715,7 +715,7 @@ curl -G -iX GET 'http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:Device:te
715715
```json
716716
{
717717
"@context": [
718-
"http://context/ngsi-context.jsonld",
718+
"http://context/user-context.jsonld",
719719
"https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.7.jsonld"
720720
],
721721
"id": "urn:ngsi-ld:Device:temperature001",
@@ -767,7 +767,7 @@ curl -L -X GET 'http://localhost:1026/ngsi-ld/v1/entities/?type=Device' \
767767
[
768768
{
769769
"@context": [
770-
"http://context/ngsi-context.jsonld",
770+
"http://context/user-context.jsonld",
771771
"https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.7.jsonld"
772772
],
773773
"id": "urn:ngsi-ld:Device:motion003",

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ tutorial:
255255
- "DUMMY_DEVICES_API_KEY=4jggokgpepnvsb2uv4s40d59ov"
256256
- "DUMMY_DEVICES_TRANSPORT=HTTP"
257257
- "DUMMY_DEVICES_PAYLOAD=JSON"
258-
- "IOTA_JSON_LD_CONTEXT=http://context/ngsi-context.jsonld"
258+
- "IOTA_JSON_LD_CONTEXT=http://context/user-context.jsonld"
259259
```
260260
261261
The `tutorial` container is listening on two ports:
@@ -276,7 +276,7 @@ The `tutorial` container is driven by environment variables as shown:
276276
| DUMMY_DEVICES_API_KEY | `4jggokgpepnvsb2uv4s40d59ov` | Random security key used for JSON interactions - used to ensure the integrity of interactions between the devices and the IoT Agent |
277277
| DUMMY_DEVICES_TRANSPORT | `HTTP` | The transport protocol used by the dummy IoT devices |
278278
| DUMMY_DEVICES_PAYLOAD | `JSON` | The payload format used by the dummy IoT devices |
279-
| IOTA_JSON_LD_CONTEXT | `http://context/ngsi-context.jsonld` | The location of the `@context` file used to define the device data models |
279+
| IOTA_JSON_LD_CONTEXT | `http://context/user-context.jsonld` | The location of the `@context` file used to define the device data models |
280280

281281
The other `tutorial` container configuration values described in the YAML file are not used in this tutorial.
282282

@@ -316,7 +316,7 @@ iot-agent:
316316
- IOTA_HTTP_PORT=7896
317317
- IOTA_PROVIDER_URL=http://iot-agent:4041
318318
- IOTA_DEFAULT_RESOURCE=/iot/json
319-
- IOTA_JSON_LD_CONTEXT=http://context/ngsi-context.jsonld
319+
- IOTA_JSON_LD_CONTEXT=http://context/user-context.jsonld
320320
- IOTA_FALLBACK_TENANT=openiot
321321
- IOTA_MULTI_CORE=true
322322
```
@@ -345,7 +345,7 @@ The `iot-agent` container is driven by environment variables as shown:
345345
| IOTA_MONGO_DB | `iotagentul` | The name of the database used in mongoDB |
346346
| IOTA_HTTP_PORT | `7896` | The port where the IoT Agent listens for IoT device traffic over HTTP |
347347
| IOTA_PROVIDER_URL | `http://iot-agent:4041` | URL passed to the Context Broker when commands are registered, used as a forwarding URL location when the Context Broker issues a command to a device |
348-
| IOTA_JSON_LD_CONTEXT | `http://context/ngsi-context.jsonld` | The location of the `@context` file used to define the device data models |
348+
| IOTA_JSON_LD_CONTEXT | `http://context/user-context.jsonld` | The location of the `@context` file used to define the device data models |
349349
| IOTA_FALLBACK_TENANT | `openiot` | The tenant to use if no explicit tenant has been received from communications |
350350

351351
# Prerequisites
@@ -712,7 +712,7 @@ curl -G -iX GET 'http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:Device:te
712712
```json
713713
{
714714
"@context": [
715-
"http://context/ngsi-context.jsonld",
715+
"http://context/user-context.jsonld",
716716
"https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.7.jsonld"
717717
],
718718
"id": "urn:ngsi-ld:Device:temperature001",
@@ -766,7 +766,7 @@ curl -L -X GET 'http://localhost:1026/ngsi-ld/v1/entities/?type=Device' \
766766
[
767767
{
768768
"@context": [
769-
"http://context/ngsi-context.jsonld",
769+
"http://context/user-context.jsonld",
770770
"https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.7.jsonld"
771771
],
772772
"id": "urn:ngsi-ld:Device:motion003",

docker-compose/common.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ services:
151151
- TWITTER_CONSUMER_KEY=<ADD_YOUR_CONSUMER_KEY>
152152
- TWITTER_CONSUMER_SECRET=<ADD_YOUR_CONSUMER_SECRET>
153153
- MONGO_URL=mongodb://mongo-db:27017
154-
- IOTA_JSON_LD_CONTEXT=http://context/ngsi-context.jsonld
154+
- IOTA_JSON_LD_CONTEXT=http://context/user-context.jsonld
155155
- MOVE_TRACTOR=-1
156156

157157

services

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ SCORPIO="http://scorpio:9090/scorpio/"
1919
ORION="http://orion:1026/version"
2020
IOT_AGENT="http://iot-agent:4041/version"
2121
STELLIO="http://localhost:8080/actuator/health"
22-
CONTEXT="http://context/ngsi-context.jsonld"
22+
CONTEXT="http://context/user-context.jsonld"
2323
CORE_CONTEXT="https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.6.jsonld"
2424

2525
dockerCmd="docker compose"

0 commit comments

Comments
 (0)