You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/extended-properties.md
+14-13Lines changed: 14 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -77,8 +77,8 @@ this principle, allowing the creation of NGSI-LD properties which directly confo
77
77
78
78
- An NGSI-LD **LanguageProperty** holds a set of internationalized strings and is defined using the JSON-LD
79
79
`@language` keyword.
80
-
- An NGSI-LD **VocabProperty** holds is a mapping of a URI to a value within the user'`@context` and is defined
81
-
using the JSON-LD `@vocab` keyword.
80
+
- An NGSI-LD **VocabProperty** holds is a mapping of a URI to a value within the user'`@context` and is defined using
81
+
the JSON-LD `@vocab` keyword.
82
82
83
83
In each case, the meaning of the resultant payload will be altered according to the standard JSON-LD definitions, so the
84
84
output NGSI-LD remains fully valid JSON-LD.
@@ -237,7 +237,8 @@ self-explanatory.
237
237
238
238
## Start Up
239
239
240
-
All services can be initialised from the command-line by running the [services](https://github.com/FIWARE/tutorials.Extended-Properties/blob/NGSI-LD/services) Bash script provided within
240
+
All services can be initialised from the command-line by running the
241
+
[services](https://github.com/FIWARE/tutorials.Extended-Properties/blob/NGSI-LD/services) Bash script provided within
241
242
the repository. Please clone the repository and create the necessary images by running the commands as shown:
242
243
243
244
```bash
@@ -289,9 +290,9 @@ strings representing [IETF RFC 5646](https://www.rfc-editor.org/info/rfc5646) la
289
290
290
291
### Creating a new data entity
291
292
292
-
This example creates an entity with a **LanguageProperty** and a **VocabProperty**. Let's create a farm
293
-
**Building** entity in which we want to make the `name` available in three different languages, _English_, _German_, and
294
-
_Japanese_. The process will be to send a **POST** request to the Broker with the following information:
293
+
This example creates an entity with a **LanguageProperty** and a **VocabProperty**. Let's create a farm **Building**
294
+
entity in which we want to make the `name` available in three different languages, _English_, _German_, and _Japanese_.
295
+
The process will be to send a **POST** request to the Broker with the following information:
295
296
296
297
#### 1️⃣ Request:
297
298
@@ -350,9 +351,9 @@ Content-Length: 0
350
351
351
352
#### 2️⃣ Request:
352
353
353
-
This example creates a second entity with a **LanguageProperty** and a **VocabProperty**. Each subsequent entity
354
-
must have a unique `id` for the given `type`. Note that within a `languageMap`, the `@none` simplified pair indicates
355
-
the default fallback value to be displayed for unknown languages.
354
+
This example creates a second entity with a **LanguageProperty** and a **VocabProperty**. Each subsequent entity must
355
+
have a unique `id` for the given `type`. Note that within a `languageMap`, the `@none` simplified pair indicates the
356
+
default fallback value to be displayed for unknown languages.
356
357
357
358
```bash
358
359
curl -iX POST 'http://localhost:1026/ngsi-ld/v1/entities/' \
@@ -688,8 +689,8 @@ curl -G -X GET \
688
689
689
690
The User's `@context` is a mechanism for mapping URNs and defining the Entities held within the system It is therefore
690
691
possible to retrieve _the same data_ using a different set of short names for the attributes, and in the case of a
691
-
**VocabProperty**, different short names for the values of the attributes themselves. This is particularly useful
692
-
when dealing with distributed data, federations and data spaces as the end user many not have full control of data held
692
+
**VocabProperty**, different short names for the values of the attributes themselves. This is particularly useful when
693
+
dealing with distributed data, federations and data spaces as the end user many not have full control of data held
693
694
within another participant's context broker.
694
695
695
696
When the **Building** entities were created, we used an `@context` file called `ngsi-context.jsonld`. Within the
@@ -819,8 +820,8 @@ The `alternate-context.jsonld` `@context` file maps all the terms and enumeratio
819
820
#### 1️⃣3️⃣ Request:
820
821
821
822
When `alternate-context.jsonld` included as a `Link` header in the request, the response will convert all the attribute
822
-
names to short names used in `alternate-context.jsonld`, and in the case of a **VocabProperty**, return the short
823
-
names for the value as well.
823
+
names to short names used in `alternate-context.jsonld`, and in the case of a **VocabProperty**, return the short names
Copy file name to clipboardExpand all lines: docs/index.md
+8-14Lines changed: 8 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,7 @@ Solution either by connecting to a series of dummy IoT devices or manipulating t
26
26
[](https://github.com/codespaces/new?template_repository=FIWARE/tutorials.NGSI-LD)
@@ -54,7 +54,7 @@ A direct comparison of the two IoT Agents can be seen below:
54
54
| HTTP commands posted to a well-known URL - response is in the reply | HTTP commands posted to a well-known URL - response is in the reply | Communications Handshake |
55
55
| MQTT devices are identified by the path of the topic `/XXX/YYY`| MQTT devices are identified by the path of the topic `/XXX/YYY`| Device Identification |
56
56
| MQTT commands posted to the `cmd` topic | MQTT commands posted to the `cmd` topic | Communications Handshake |
57
-
| MQTT command responses posted to the `cmdexe` topic | MQTT command responses posted to the `cmdexe` topic | Communications Handshake |
57
+
| MQTT command responses posted to the `cmdexe` topic | MQTT command responses posted to the `cmdexe` topic | Communications Handshake |
58
58
59
59
As can be seen, the message payload differs entirely between the two IoT Agents, but much of the rest of the protocol
60
60
remains the same.
@@ -492,11 +492,11 @@ however it has been included here for completeness.
492
492
493
493
### Provisioning a Sensor
494
494
495
-
The NGSI-LD [specification](https://cim.etsi.org/NGSI-LD/official/front-page.html)
496
-
mandates full URNs when creating context data entities, however the incoming messages from the devices will not be aware
497
-
of this convention. Furthermore, the attribute name on the context data entity should match the short names found within
498
-
the associated `@context` file. These mappings can be defined at the service group level as seen in the previous
499
-
request, or they can be defined by provisioning each device individually.
495
+
The NGSI-LD [specification](https://cim.etsi.org/NGSI-LD/official/front-page.html) mandates full URNs when creating
496
+
context data entities, however the incoming messages from the devices will not be aware of this convention. Furthermore,
497
+
the attribute name on the context data entity should match the short names found within the associated `@context` file.
498
+
These mappings can be defined at the service group level as seen in the previous request, or they can be defined by
499
+
provisioning each device individually.
500
500
501
501
Three types of measurement attributes can be provisioned:
0 commit comments