Skip to content

Commit 3e25aee

Browse files
committed
Expand static attributes explanation
1 parent 6301ffe commit 3e25aee

2 files changed

Lines changed: 20 additions & 2 deletions

File tree

docs/iot-agent-json.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,16 @@ curl -iX POST \
497497

498498
In the request we are associating the device `motion001` with the URN `urn:ngsi-ld:Motion:001` and mapping the device
499499
reading `c` with the context attribute `count` (which is defined as an `Integer`) A `refStore` is defined as a
500-
`static_attribute`, placing the device within **Store** `urn:ngsi-ld:Store:001`
500+
`static_attribute`, placing the device within **Store** `urn:ngsi-ld:Store:001`.
501+
502+
> Static attributes are useful as additional data on an entity to enable querying using the `q` parameter. For example the Smart Data Models [Device](https://github.com/smart-data-models/dataModel.Device/blob/master/Device/doc/spec.md) model defines attributes such as `category` or `controlledProperty` which enable queries to be made like:
503+
>
504+
> - _Which **Actuators** currently have a low `batteryLevel`?_
505+
> - _Which **Devices** measuring `fillingLevel` were installed before January 2020?_
506+
>
507+
> Obviously static data can be extended as necessary and can also include additional data such as a unique `name` or `serialNumber` for each device should the entity ID be too inflexible for queries.
508+
>
509+
> Additional devices with a fixed `location` static attribute can also be queried using the Geofencing parameters.
501510

502511
You can simulate a dummy IoT device measurement coming from the **Motion Sensor** device `motion001`, by making the
503512
following request

docs/iot-agent.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,16 @@ curl -iX POST \
483483

484484
In the request we are associating the device `motion001` with the URN `urn:ngsi-ld:Motion:001` and mapping the device
485485
reading `c` with the context attribute `count` (which is defined as an `Integer`) A `refStore` is defined as a
486-
`static_attribute`, placing the device within **Store** `urn:ngsi-ld:Store:001`
486+
`static_attribute`, placing the device within **Store** `urn:ngsi-ld:Store:001`.
487+
488+
> Static attributes are useful as additional data on an entity to enable querying using the `q` parameter. For example the Smart Data Models [Device](https://github.com/smart-data-models/dataModel.Device/blob/master/Device/doc/spec.md) model defines attributes such as `category` or `controlledProperty` which enable queries to be made like:
489+
>
490+
> - _Which **Actuators** currently have a low `batteryLevel`?_
491+
> - _Which **Devices** measuring `fillingLevel` were installed before January 2020?_
492+
>
493+
> Obviously static data can be extended as necessary and can also include additional data such as a unique `name` or `serialNumber` for each device should the entity ID be too inflexible for queries.
494+
>
495+
> Additionally devices with a fixed `location` static attribute can also be queried using the Geofencing parameters.
487496

488497
You can simulate a dummy IoT device measurement coming from the **Motion Sensor** device `motion001`, by making the
489498
following request

0 commit comments

Comments
 (0)