[Fiware-apps] CKAN list service

Alessandro Portosa alessandro.portosa at eng.it
Thu Jan 22 14:02:09 CET 2015


Hi Aitor,
thanks. Just to be clear, /package_search/ (without parameters) return 
any *searchable *dataset, no matter is they are public/private or 
user/organization owned.
For any *not searchable* dataset, I use /organization_show/ and 
/user_show/ functions instead.

Alessandro.

Il 22/01/2015 13:21, Aitor Magán ha scritto:
> Hi Alessando,
>
> Have you tried to use the /package_search /function? I do not know how 
> /package_list/ works and I'm not pretty sure if this function returns 
> private datasets, but I'm sure that /package_search/ will return both: 
> private and public dataset. However, this function will not return any 
> non-searchable datasets (even if they belongs to an organization). So 
> if you want to retrieve the datasets a user can access within an 
> organization, you will have to ue the /organization_show/ function.
>
> Let me know if you have more doubts! ;)
>
> BR
> Aitor
>
> 2015-01-22 13:13 GMT+01:00 Alessandro Portosa 
> <alessandro.portosa at eng.it <mailto:alessandro.portosa at eng.it>>:
>
>     Hi,
>     actually the action /organization_show /allows to retrieve both
>     private and public datasets for a specific organization.
>
>     Let's assume that my use case is to find, for a specific user, any
>     accessible dataset. I mean public datasets, user private datasets
>     and organization private datasets (if the user is a member of that
>     organization). My tests show that to achive such result, now I
>     need to call /package_list/ and /package_show/ (these two steps
>     can be merged in one using /current_package_list_with_resources/).
>     Then call /organization_list_for_user/  e and /organization show/.
>     Lastly, I need to call /user_show/ to get his datasets.
>     Also, I have to filter the results of both /user_show/ and
>     /organization_show/ because I need to extract only private
>     datasets here (public datasets were already retrieved via
>     /package_list/).
>     That sounds a bit tricky to me... Is there a direct way to get the
>     list of accessible dataset for a specific user? Do I really need
>     to crawl through all these steps for such common request? I hope
>     there is a smarter way...
>
>     Best,
>     Alessandro.
>
>
>
>     Il 22/01/2015 11:20, Davide Zerbetto ha scritto:
>>     Hi
>>     I send you information about the CKAN REST API that my colleague
>>     Alessandro Portosa tested:
>>     https://data.lab.fiware.org/api/action/package_list : retrieves
>>     all the public datasets
>>     https://data.lab.fiware.org/api/action/currente_package_list_with_resources
>>     : retrieves all the public datasets + associated resources
>>     https://data.lab.fiware.org/api/action/organization_list_for_user
>>     : retrieves the list of organizations the user belongs to
>>     https://data.lab.fiware.org/api/action/organization_show?id=<org_name>&include_datasets=true
>>     : retrieves the organization details with datasets, but it's not
>>     clear:
>>     1. are they all organization's private datasets?
>>     2. it retrieves only 1000 datasets!! how to catch all datasets?
>>
>>     We'll try https://data.lab.fiware.org/api/action/package_acquired
>>     and let you know.
>>
>>     Best regards
>>     Davide
>>
>>     -- 
>>
>>     *Davide Zerbetto*
>>     SpagoBI Consultant
>>
>>     *SpagoBI Labs
>>     Engineering Group*
>>     Corso Stati Uniti, 23/C - 35127 Padua - Italy
>>     Phone: +39 049 8283411 <tel:%2B39%20049%208283411>
>>     Fax: +39-049.8700272 <tel:%2B39-049.8700272>
>>     www.spagobi.org <http://www.spagobi.org> - www.eng.it
>>     <http://www.eng.it/web/eng_en/home>
>>
>>
>>     	  Respect the environment. Please don't print this e-mail unless
>>     you really need to.
>>
>>     The information transmitted is intended only for the person or
>>     entity to which it is addressed and may contain confidential
>>     and/or privileged material. Any review, retransmission,
>>     dissemination or other use of, or taking of any action in
>>     reliance upon, this information by persons or entities other than
>>     the intended recipient is prohibited. If you received this in
>>     error, please contact the sender and delete the material from any
>>     computer.
>>
>>
>>
>>     _______________________________________________
>>     Fiware-apps mailing list
>>     Fiware-apps at lists.fi-ware.org  <mailto:Fiware-apps at lists.fi-ware.org>
>>     https://lists.fi-ware.org/listinfo/fiware-apps
>
>
>     _______________________________________________
>     Fiware-apps mailing list
>     Fiware-apps at lists.fi-ware.org <mailto:Fiware-apps at lists.fi-ware.org>
>     https://lists.fi-ware.org/listinfo/fiware-apps
>
>
>
>
> _______________________________________________
> Fiware-apps mailing list
> Fiware-apps at lists.fi-ware.org
> https://lists.fi-ware.org/listinfo/fiware-apps

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.fiware.org/private/fiware-apps/attachments/20150122/71abff15/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 3639 bytes
Desc: not available
URL: <https://lists.fiware.org/private/fiware-apps/attachments/20150122/71abff15/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 1379 bytes
Desc: not available
URL: <https://lists.fiware.org/private/fiware-apps/attachments/20150122/71abff15/attachment.jpe>


More information about the Fiware-apps mailing list

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