[ckan-dev] Dataset relationships

Jan Kučera elquenor at gmail.com
Mon Nov 28 11:17:50 UTC 2011


Hello,

I set relationships between some dataset in cz.ckan.net. It is good that if
you use child_of relationship than parent_of relationship is set
automatically.

I have also tried to use extras fields to store information about
relationships between datasets. I found out that if you first add
relationship using CKAN API into dataset relationships attribute and than
you add extras field for the same relationship with key in format
"parent_of:dataset_name" or "child_of:dataset_name", storing this extras
field will clear all relationships in relationships attribute stored
earlier.

I might be some kind of bug but I suppose you will know better. Is it
possible to use relationships attribute and extras field for relationships
at the same time?

Thank you

Jan Kucera

2011/11/17 David Read <david.read at okfn.org>

> 2011/11/16 Jan Kučera <elquenor at gmail.com>:
> > Hello,
> >
> > just to provide feedback. It is possible to set package relationships in
> > Czech CKAN instance. I used CKAN python client and it worked fine.
>
> Good to hear it worked for you. And great to see cz.ckan.net
> flourishing with your efforts!
>
> Don't forget to let us know how you find the package relationships as
> they get used more and more. We're very interested to see what they
> get used for in particular.
>
> David
>
> > Jan
> >
> > 2011/11/16 Jan Kučera <elquenor at gmail.com>
> >>
> >> Thank you,
> >>
> >> I will try it again. I used my API key but I could have made some
> mistake
> >> or typo. It is good to know that it should be working.
> >>
> >> Jan Kucera
> >>
> >> 2011/11/16 David Read <david.read at okfn.org>
> >>>
> >>> On 16 November 2011 15:57, Jan Kučera <elquenor at gmail.com> wrote:
> >>> > Hello,
> >>> >
> >>> > I have noticed that CKAN dataset has attribute called
> "relationships".
> >>> > I
> >>> > would like to ask how to set package relationships in CKAN?
> >>> >
> >>> > I was not able to locate any option in the user interface to set the
> >>> > relationships between datasets.
> >>>
> >>> Yes, we've not implemented editing in the Web UI yet, although
> >>> relationships are listed on each dataset page in the Web UI once
> >>> created. it's really an experimental feature at the moment and likely
> >>> to change. So feel free to try it out, let us know how you get on and
> >>> that will feed into its development.
> >>>
> >>> > I suppose that relationships can be set
> >>> > using CKAN API (as described in this CKAN wiki article:
> >>> > http://wiki.ckan.org/Domain_Model/Package_Relationship). I tried to
> set
> >>> > some
> >>> > relationships between datasets in Czech CKAN instance (cz.ckan.bet)
> but
> >>> > the
> >>> > server always returned status code "403 Forbidden". Is it possible
> that
> >>> > the
> >>> > relationships between datasets are disabled in the Czech CKAN
> instance?
> >>> > If
> >>> > so, how to enable this feature?
> >>>
> >>> It should work fine at cz.ckan.net. Have you set your API key in the
> >>> 'Authorization' header?
> >>>
> >>> David
> >>>
> >>> >
> >>> > Thank you very much.
> >>> >
> >>> > Jan Kucera
> >>> >
> >>> > _______________________________________________
> >>> > ckan-dev mailing list
> >>> > ckan-dev at lists.okfn.org
> >>> > http://lists.okfn.org/mailman/listinfo/ckan-dev
> >>> >
> >>> >
> >>>
> >>> _______________________________________________
> >>> ckan-dev mailing list
> >>> ckan-dev at lists.okfn.org
> >>> http://lists.okfn.org/mailman/listinfo/ckan-dev
> >>
> >
> >
> > _______________________________________________
> > ckan-dev mailing list
> > ckan-dev at lists.okfn.org
> > http://lists.okfn.org/mailman/listinfo/ckan-dev
> >
> >
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/ckan-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20111128/8307d960/attachment-0001.html>


More information about the ckan-dev mailing list