File tree Expand file tree Collapse file tree 1 file changed +22
-1
lines changed Expand file tree Collapse file tree 1 file changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -577,7 +577,28 @@ curl -iX POST \
577
577
578
578
In the request we are associating the device `motion001` with the URN `urn:ngsi-ld:Motion:001` and mapping the device
579
579
reading `c` with the context attribute `count` (which is defined as an `Integer`) A `refStore` is defined as a
580
- ` static_attribute` , placing the device within **Store** `urn:ngsi-ld:Store:001`
580
+ ` static_attribute` , placing the device within **Store** `urn:ngsi-ld:Store:001`.
581
+
582
+ > Static attributes are useful as additional data on an entity to enable querying using the `q` parameter. For example
583
+ > the Smart Data Models [Device](https://github.com/smart-data-models/dataModel.Device/blob/master/Device/doc/spec.md)
584
+ > model defines attributes such as `category` or `controlledProperty` which enable queries to be made like:
585
+ >
586
+ > - _Which **Actuators** currently have a low `batteryLevel`?_
587
+ >
588
+ > `/v2/entities?q=category=="actuator";batteryLevel<0.1`
589
+ >
590
+ > - _Which **Devices** measuring `fillingLevel` were installed before January 2020?_
591
+ >
592
+ > `/v2/entities?q=controlledProperty=="fillingLevel";dateInstalled<"2020-01-25T00:00:00.000Z"`
593
+ >
594
+ > Obviously static data can be extended as necessary and can also include additional data such as a unique `name` or
595
+ > `serialNumber` for each device should the entity ID be too inflexible for queries.
596
+ >
597
+ > `/v2/entities?q=serialNumber=="XS403001-002"`
598
+ >
599
+ > Additionally devices with a fixed `location` static attribute can also be queried using the Geofencing parameters.
600
+ >
601
+ > `/v2/entities?georel=near;maxDistance:1500&geometry=point&coords=52.5162,13.3777`
581
602
582
603
You can simulate a dummy IoT device measurement coming from the **Motion Sensor** device `motion001`, by making the
583
604
following request
You can’t perform that action at this time.
0 commit comments