[ECODP-dev] instructions to upload new information from the vocanbulary

John Glover john.glover at okfn.org
Thu Jun 13 08:28:52 UTC 2013


Hi Bert,

Those JSON files were not intended to be the official way of updating the
vocabularies. We use them to do the initial database setup, but I did not
even know that you had your own copy of them in the RPM. However, as all of
this information is stored in the database, it can be updated using the API.

To view or update vocabularies, see:
http://docs.ckan.org/en/ckan-1.8/apiv3.html#ckan.logic.action.get.vocabulary_list
http://docs.ckan.org/en/ckan-1.8/apiv3.html#ckan.logic.action.get.vocabulary_show
http://docs.ckan.org/en/ckan-1.8/apiv3.html#ckan.logic.action.create.vocabulary_create
http://docs.ckan.org/en/ckan-1.8/apiv3.html#ckan.logic.action.update.vocabulary_update

To view or update translations, see:
http://docs.ckan.org/en/ckan-1.8/apiv3.html#ckan.logic.action.get.term_translation_show
http://docs.ckan.org/en/ckan-1.8/apiv3.html#ckan.logic.action.update.term_translation_update_many

The licenses file is slightly different. That is not stored in the
database, and is read by CKAN when it starts up. So you can simply edit
that file and then restart CKAN to change the license information.

Regards,
John


On 12 June 2013 12:37, Bert Van Nuffelen <bert.van.nuffelen at tenforce.com>wrote:

> Hi,
>
> we have in the rpm a directory /applications/ecodp/users/ecodp/ckan/data
> which contains the next json files
>
> licenses.json
> odp-accrual-periodicity.json
> odp-dataset-status.json
> odp-dataset-type.json
> odp-documentation-type.json
> odp-interoperability-level.json
> odp-license.json
> odp-temporal-granularity.json
> po-corporate-bodies.json
> po-countries.json
> po-languages.json
>
>
> can you provide us with instructions / configurations requirements so
> that PO can update these themselves. Note that this is working in
> release 00.07.50/00.08.04 as the po-corporate-bodies.json is via a
> script updatable.
>
> Can you provide information on this .
>
> thanks,
>
> Bert
>
>
>
> --
> Bert Van Nuffelen
>
> Semantic Technologies Software Architect at TenForce
> www.tenforce.be
>
> Bert.Van.Nuffelen at tenforce.com
> Office: +32 (0)16 31 48 60
> Mobile:+32 479 06 24 26
> skype: bert.van.nuffelen
>
> _______________________________________________
> Ecodp-dev mailing list
> Ecodp-dev at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/ecodp-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.okfn.org/mailman/private/ecodp-dev/attachments/20130613/7c137cc8/attachment.html>


More information about the ecodp-dev mailing list