[ckan-discuss] Atom/RSS feed of tagged packages or search results?

David Read david.read at okfn.org
Thu Jul 21 18:18:35 BST 2011


On 21 July 2011 17:18, Tim Davies <tim at practicalparticipation.co.uk> wrote:
> Hello,
> I'd like to embed the CKAN/DataHub listing of all the 'aidinfo' tagged
> datasets (http://ckan.net/package?tags=aidinfo) into the
> http://www.aidinfolabs.org website (which is running Wordpress)
> I've looked at the API docs, and at the docs on available feeds from CKAN,
> and can't see an easy way to do this.
> Ideally I need either:
>
> A simple API call which will return full details (or at least title,
> description and URL) of all the packages with a given tag. Ideally I
> wouldn't have to iterate through loads of packages to get their full details
> - as this would take a while

This sounds like it will do the trick:
http://ckan.net/api/search/package?tags=aidinfo&all_fields=1

Note that it takes ckan a bit of effort, so don't have it run for
every single request of your site!

> An atom feed of all the things with a tag - but just the listing, rather
> than the 'revisions' feeds currently available for the whole site.

This option has been requested a few times and is not too expensive in
terms of time. Ira (CC'd) is the person to hassle for prioritising new
features ;-)
http://trac.ckan.org/ticket/272

Another potential option for you would be to embed some javascript
that accessed these same APIs. Aron might be able to help here (CC'd),
although I see it as rather a drain on the ckan.net server.

David

> Are either of these currently possible? Or easy to implement? Or is there
> another way I could do the embedding I need?
> All the best
> Tim
> --
>
>
> http://www.timdavies.org.uk
> 07834 856 303.
> @timdavies
>
> Co-director of Practical Participation:
> http://www.practicalparticipation.co.uk
> --------------------------
> Practical Participation Ltd is a registered company in England and Wales -
> #5381958.
>
> _______________________________________________
> ckan-discuss mailing list
> ckan-discuss at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/ckan-discuss
>
>



More information about the ckan-discuss mailing list