[ckan-dev] Data Dictionary Documentation
Aaron McGlinchy
McGlinchyA at landcareresearch.co.nz
Sun Jan 14 21:25:54 UTC 2018
Thanks Ian - I have created an issue https://github.com/ckan/ckan/issues/3989
------------------------------
Message: 4
Date: Wed, 10 Jan 2018 12:36:43 -0500
From: Ian Ward <ian at excess.org>
To: CKAN Development Discussions <ckan-dev at lists.okfn.org>
Subject: Re: [ckan-dev] ckan-dev Digest, Vol 86, Issue 11
Message-ID:
<CAA3rUNcoXVkiM8Spv521_7oF170beuFvCpjwMfm6wuW91ojq0w at mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
Yes, the data dictionary can be set or updated with the datastore_create 'fields' parameter by adding an 'info' object containing any JSON you need for that field:
https://github.com/ckan/ckan/pull/3414/files#diff-d8942d2054c04edc9ee834957411a2edR111
The form by default stores a single 'label' and 'notes' value per field but you're free to override the templates to add your own extra information per column. There's no restrictions on what you store there other than that 'info' should be a JSON object.
Sadly this didn't get added to the documentation as part of the same PR.
Would you like to open an issue? I'll assign myself to it and try to get this included in the docs.
On Mon, Jan 8, 2018 at 5:02 PM, Aaron McGlinchy < McGlinchyA at landcareresearch.co.nz> wrote:
> Bump
>
> Hi,
> I enquired on stackoverflow about information on the data
> dictionary feature that is now present in v2.7.x
>
> https://stackoverflow.com/questions/47783069/data-
> dictionary-feature-of-ckan-2-7-x
>
> We are in the process of upgrading from CKAN 2.6.3 to 2.7.2. We have a
> test installation of 2.7.2 and I notice a new feature is the data
> dictionary, which looks very useful!
>
> Is there any documentation around use of the data dictionary feature?
> I can see how it detects the field names and types automatically, but
> requires a manual edit to enter the label and description.
>
> Up until this new feature we have been recording the metadata in an
> accompanying file e.g. https://datastore.landcareresearch.co.nz/
> dataset/skink-capture-data/resource/aff3205a-aacc-4e96-ad9c-91a72708ce
> 45 (more detailed) or https://datastore.landcareresearch.co.nz/
> dataset/short-term-possum-foraging-movements/resource/
> a69d3628-a63a-45a0-af34-f25acb8d5a99 (simple).
>
> We also use the API to upload some data. Can the data dictionary
> values be set using the API. Could we import data dictionary values
> from the metadata files we have been using (if we agreed a standard format)?
>
> Thanks
> Aaron
>
>
> ________________________________
>
> Please consider the environment before printing this email
> Warning: This electronic message together with any attachments is
> confidential. If you receive it in error: (i) you must not read, use,
> disclose, copy or retain it; (ii) please contact the sender
> immediately by reply email and then delete the emails.
> The views expressed in this email may not be those of Landcare
> Research New Zealand Limited. http://www.landcareresearch.co.nz
> _______________________________________________
> 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/20180110/ee886fb5/attachment-0001.html>
------------------------------
Subject: Digest Footer
_______________________________________________
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
------------------------------
End of ckan-dev Digest, Vol 87, Issue 7
***************************************
________________________________
Please consider the environment before printing this email
Warning: This electronic message together with any attachments is confidential. If you receive it in error: (i) you must not read, use, disclose, copy or retain it; (ii) please contact the sender immediately by reply email and then delete the emails.
The views expressed in this email may not be those of Landcare Research New Zealand Limited. http://www.landcareresearch.co.nz
More information about the ckan-dev
mailing list