[Fiware-tech-help] Probelms with "q" option when making subscription Orion-LD

Samu Rautiainen (TAU) samu.rautiainen at tuni.fi
Tue Nov 16 10:57:45 CET 2021


Hi,

I tried to find solution for my problem all over the internet, but it seems it has not been yet answered anywhere I could find.

So my question is, that how can I make query for subscription, when the attribute that has to be queried is inside an array when using Orion-LD?

Here I have one attribute "involves" and working solution for subscription query, when the "Property" value is not an array:

[cid:image001.png at 01D7DADF.9D2133C0]
"q":"involves.object==urn:ngsi-ld:Device:asdasds:asdasd"

Since there is json inside of json, I can get to the object using involves.object.

Now in our case, this "involves" attribute will hold multiple relationship in an array, like this:

[cid:image002.png at 01D7DAE0.20F8BA60]

Is there a way, that I could make subscription query, where I check if "urn:ngsi-ld:Device:company:glove" is within this "involves" array?


BR
Samu Rautiainen
Research Assistant
SHOP4CF Component Developer
Tampere University
FAST-laboratory

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.fiware.org/private/fiware-tech-help/attachments/20211116/b16ecf4c/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 6401 bytes
Desc: image001.png
URL: <https://lists.fiware.org/private/fiware-tech-help/attachments/20211116/b16ecf4c/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 11006 bytes
Desc: image002.png
URL: <https://lists.fiware.org/private/fiware-tech-help/attachments/20211116/b16ecf4c/attachment-0003.png>


More information about the Fiware-tech-help mailing list

You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy   Cookies policy