[ckan-dev] Metadata fields

Stefan Oderbolz stefan.oderbolz at liip.ch
Tue Dec 10 17:42:41 UTC 2013


I guess if you want to do this, you need to change the default schema of a
dataset. Although this might be possible, I would still use the extras
field. Because this ensure compatibility with other CKAN instances that you
might want to harvest, or that might harvest you. And there is not really a
disadvantage with using the extras field, only that it requires you to save
flat data (i.e. nesting is not well supported and generally discouraged).

Please correct me if I'm wrong about that :)

- Stefan


On Tue, Dec 10, 2013 at 1:50 PM, Mark Wainwright
<mark.wainwright at okfn.org>wrote:

> As I understand, you don't need to use 'extras': you can write a
> custom extension for your site which adds extra metadata fields of
> your choosing and, if you like, also customise the forms to include
> the new fields.
>
> Hopefully someone else can provide details ...
>
> Mark
>
>
> On 05/12/2013, Stefan Oderbolz <stefan.oderbolz at liip.ch> wrote:
> > Hi Mark,
> >
> > yes you can add arbitrary fields using the so called "extras".
> > The predefined metadata fields are listed here:
> > https://github.com/okfn/ckan/blob/master/ckan/logic/schema.py#L63
> > They used to be in the docs, see e.g. for CKAN 1.8:
> > http://docs.ckan.org/en/ckan-1.8/domain-model-dataset.html, but I can't
> > find this page in the latest docs anymore.
> >
> > So apart from all the predefined fields, the "extras" may contain any
> > key/value pair, which allows you to store whatever you want.
> >
> > Regards Stefan
> >
> >
> >
> > On Thu, Dec 5, 2013 at 1:13 PM, Mark Brady - NOAA Federal <
> > mark.brady at noaa.gov> wrote:
> >
> >> Here is a very basic question.  Is it possible to set up an instance
> >> of CKAN with any number of custom metadata fields or is one restricted
> >> to the use a predefined fields?
> >>
> >> -Mark
> >> _______________________________________________
> >> 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
> >>
> >
> >
> >
> > --
> > Liip AG  //  Feldstrasse 133 //  CH-8004 Zurich
> > Tel +41 43 500 39 80 // GnuPG 0x7B588C67 // www.liip.ch
> >
>
>
> --
> Business development and user engagement manager
> The Open Knowledge Foundation
> Empowering through Open Knowledge
> http://okfn.org/  |  @okfn  |  http://ckan.org  |  @CKANproject
> _______________________________________________
> 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
>



-- 
Liip AG  //  Feldstrasse 133 //  CH-8004 Zurich
Tel +41 43 500 39 80 // GnuPG 0x7B588C67 // www.liip.ch
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20131210/9dc73f21/attachment-0003.html>


More information about the ckan-dev mailing list