[Backlogmanager] [FIWARE-JIRA] (HELP-17726) [fiware-stackoverflow] Orion Context Provider query multiple entities

Fernando Lopez (JIRA) jira-help-desk at jira.fiware.org
Tue May 18 09:39:00 CEST 2021


     [ https://jira.fiware.org/browse/HELP-17726?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Fernando Lopez reassigned HELP-17726:
-------------------------------------

    Assignee: Miguel Ángel Pedraza

> [fiware-stackoverflow] Orion Context Provider query multiple entities
> ---------------------------------------------------------------------
>
>                 Key: HELP-17726
>                 URL: https://jira.fiware.org/browse/HELP-17726
>             Project: Help-Desk
>          Issue Type: Monitor
>          Components: FIWARE-TECH-HELP
>            Reporter: Backlog Manager
>            Assignee: Miguel Ángel Pedraza
>              Labels: fiware, fiware-orion
>
> Created question in FIWARE Q/A platform on 13-05-2021 at 13:05
> {color: red}Please, ANSWER this question AT{color} https://stackoverflow.com/questions/67520066/orion-context-provider-query-multiple-entities
> +Question:+
> Orion Context Provider query multiple entities
> +Description:+
> Tax information system contains all Tax information regarding every citizen in the city.
> Following FIWARE principles, seems it might make sense Consumers query Orion about entity(citizen) tax information, and the request being forwarded to Context Provider (ie:TaxInformationSystem).
> Query citizen X tax information -> Orion -> TaxInformationSystem_CP
> According to documentation, Context Providers can register themselves as source for specific attributes. This, for example, could make this work:
> http://{{orion}}/v2/entities/urn:citizenID/attrs/name/tax
> However, this seems to require every citizen to be registered as an entity, so tax information system should register multiple times (one per citizen). (And residenceInformationSystem, and healthInformationSystem, and...)
> "entities": [
>   {
>     "id" : "citizenID",      //one per citizen ???
>     "type": "taxInformation"
>   }
> ],
> and that seems, at least, a lot of unnecessary/superfluous work.
> After reading a bit more, seems any workaround is not yet implemented/supported
> Seems I can't use query parameters http://{{orion}}/v2/entities/tax?citizen=X, as they aren't forwarded to CP
> Seems I can't query any citizen tax http://{{orion}}/v2/entities/X/tax if the entity hasn't be explicitly created first
> Seems I can't set idPattern (currently only .* supported) to citizen:X
> Neither typePattern
> (IIUC, isPattern seems now deprecated in favour of idPattern/typePattern)
> Am I doing something wrong? Is registering once per citizen the only way to go?



--
This message was sent by Atlassian JIRA
(v6.4.1#64016)


More information about the Backlogmanager mailing list

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