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

David Read david.read at okfn.org
Fri Jul 22 09:44:58 BST 2011


On 22 July 2011 08:42, Tim Davies <tim at practicalparticipation.co.uk> wrote:
> Hey David, Aron,
> Many thanks.
> I'll look for now at using
> the http://ckan.net/api/search/package?tags=aidinfo&all_fields=1 option and
> will cache with some PHP.
> Are the ?tag and &all_fields options documented anywhere that I missed and
> should have been looking.

Tim, yes these are both documented here:
http://packages.python.org/ckan/api/version2.html#search-formats
But of course it is easier for me to know what to look for, since I coded it...

David

> Tim
>
> On Thu, Jul 21, 2011 at 6:18 PM, David Read <david.read at okfn.org> wrote:
>>
>> 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
>> >
>> >
>
>
>
> --
>
>
> 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.
>



More information about the ckan-discuss mailing list