[ckan-dev] API to create dataset

Dominik Moritz dominik.moritz at okfn.org
Fri Mar 22 21:07:07 UTC 2013


Hi Jung

You can use the datastore [1] for structured, tabular data. In order to upload the data automatically, you will need https://github.com/okfn/ckanext-datastorer. However, it is a pain to set up which is why we are building an easier solution. 

Best wishes,
Dominik

[1] http://docs.ckan.org/en/latest/datastore.html
 
On 22 Mar 2013, at 21:48, Jing Liu <jliu at accela.com> wrote:

> I'd like to use CKAN API to create dataset in an automatic way. I used the following body post to API like /api/rest/dataset/test_from_api:
> 
> {
> "version": "1.1",
> "resources": [
> {
>   "id": "5f315f65-2a9f-4bc1-8c7d-33013f3101c6",
>   "name" : "test1 from API",
>   "description": "test1 from API desc",
>   "url": "http://aca.dev.accela.com/test1-ist/test_1.csv"
> }
> ]
> }
> 
> It turns out the CSV data is not saved CKAN local storage. CKAN uses HTTP to connect to the URL live time. Is there any different CKAN API to use, or different CKAN configuration, which can make the data store in CKAN?
> 
> Thanks,
> Jing
> 
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: http://lists.okfn.org/mailman/options/ckan-dev





More information about the ckan-dev mailing list