[ckan-dev] CKAN - Api question
Marco Combetto
marcomb at hotmail.com
Tue Apr 1 16:18:24 UTC 2014
We faced several issues with the CKAN API. It's a great API but some errors happens..
We (@datitrentinoit) did a full wrapper of CKAN API (implementing a lot of workarounds, tested and verified) that maybe could help you .It's for pyton application development. Please take a look and use it as you like..
https://github.com/opendatatrentino/ckan-api-client
Documentation is herehttps://rshk.github.io/ckan-api-client/
Any feedback is welcome
Cheers
Marco Combetto
marcomb at hotmail.com
Mobile: +39 3316329971
www.linkedin.com/in/marcomb
Date: Mon, 31 Mar 2014 15:07:06 +0200
From: vladimirmasala at gmail.com
To: ckan-dev at lists.okfn.org
Subject: Re: [ckan-dev] CKAN - Api question
Thnx for answer.
Can you help me with something else, i am looking for api query which will return data in JSON format or XML so i can use them in my applications directy.I know i can get link to .csv or .xls file and download it, but i have to parse it after, i need something like this http://demo.ckan.org/api/action/datastore_search?resource_id=d81037dc-6fb8-46f9-a79a-2d447bc2b12b
Is way to get data like that with action or rest api, or i have to use datastore?
Thank you
On Mon, Mar 31, 2014 at 2:42 PM, Stéphane Guidoin <stephane at opennorth.ca> wrote:
Basic resource search is working: http://ckan-gradzagreb.cloudapp.net/en/api/action/resource_search?query=name:nezaposleni
So you previous search was probably not working because your data is not in the datastore.
Usually, except if this is a very well defined use case where I know the data will be in the datastore, I do a regular resource_search.
On Mon, Mar 31, 2014 at 7:42 AM, Vladimir Mašala <vladimirmasala at gmail.com> wrote:
Site was down, because i was plying with config file.. :) now it should be up.As for question 2. you can check it now..
I have enabled datastore but i think datapusher isn't working... So i am trying to install/enable it.
On Mon, Mar 31, 2014 at 1:34 PM, Stéphane Guidoin <stephane at opennorth.ca> wrote:
Hi Vladimir,
Let's start with the beginning:
What error do you get when call the API? (At the moment, the whole seems down...)
Does any other API call works (like just listing the datasets?
Did you enable the datastore in your configuration?
Stéphane
On Mon, Mar 31, 2014 at 7:17 AM, Vladimir Mašala <vladimirmasala at gmail.com> wrote:
Hi, i have installed ckan from package and site is up and running. At moment i am having problems with ckan API.
I was checking demo site and i see api calls like this http://demo.ckan.org/api/action/datastore_search?resource_id=d81037dc-6fb8-46f9-a79a-2d447bc2b12b and that is exactly what i was looking for. Api calls which returns data so i can consume it in applications.
So decided to try same api calls on my site http://ckan-gradzagreb.cloudapp.net/en , but it isnt working...
Calls to http://ckan-gradzagreb.cloudapp.net/api/rest/dataset/vrtici retrun dataset data name,id and so on..but calls to http://ckan-gradzagreb.cloudapp.net/en/api/action/datastore_search?resource_id=e957cf04-8db9-4216-a4ab-d13416503f3c or http://ckan-gradzagreb.cloudapp.net/en/api/action/datastore_search?resource_id=vrtici are not working...
Can any help me with this? Am i doing something wrong, maybe we didn't setup datastore correctly or i have problem because i have used install from package which is not latest ckan version?
Thnx for help
_______________________________________________
ckan-dev mailing list
ckan-dev at lists.okfn.org
https://lists.okfn.org/mailman/listinfo/ckan-dev
Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
--
Stéphane GuidoinDirector, Transportation
Open North
514-862-0084
http://opennorth.caTwitter: @opennorth / @hoedic
_______________________________________________
ckan-dev mailing list
ckan-dev at lists.okfn.org
https://lists.okfn.org/mailman/listinfo/ckan-dev
Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
_______________________________________________
ckan-dev mailing list
ckan-dev at lists.okfn.org
https://lists.okfn.org/mailman/listinfo/ckan-dev
Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
--
Stéphane GuidoinDirector, Transportation
Open North
514-862-0084
http://opennorth.caTwitter: @opennorth / @hoedic
_______________________________________________
ckan-dev mailing list
ckan-dev at lists.okfn.org
https://lists.okfn.org/mailman/listinfo/ckan-dev
Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
_______________________________________________
ckan-dev mailing list
ckan-dev at lists.okfn.org
https://lists.okfn.org/mailman/listinfo/ckan-dev
Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20140401/f3c8d75c/attachment-0002.html>
More information about the ckan-dev
mailing list