[ckan-discuss] relationships between datasets
Jan Vansteenlandt
jan at okfn.be
Wed Oct 9 14:57:42 BST 2013
Hi all,
I've added an example to the wiki of the relationships, telling that the
example command works for version 2 of the API, and added an example that
works with version 3 of the API. Now people without knowlegde of what API
is supported in their CKAN instance will at least have one command that
works ;).
Best regards,
Jan Vansteenlandt
OKFN - Belgium
On Wed, Oct 9, 2013 at 1:15 PM, Mark Wainwright <mark.wainwright at okfn.org>wrote:
> Hi Jan,
>
> Great news that you managed to piece the information together. The
> wiki is a community resource and it would be wonderful if you could
> take edit the page on relationships to reflect what you found.
>
> If you're feeling really generous with your time you could even make a
> pull request to the docs. See
>
> http://docs.ckan.org/en/latest/contributing.html#writing-documentation
>
> Mark
>
>
> On 09/10/2013, Jan Vansteenlandt <vansteenlandt.jan at gmail.com> wrote:
> > Hi everybody
> >
> > I've fixed it myself (or found a solution at least). The thing is that
> I've
> > consulted the same documentation you provided me Mark, but apparently
> that
> > doesn't work for my version (2.0.1).
> > What does work however the third version of the API of which I wasn't
> quite
> > aware, I had to look through documentation of 1.5 because the latest
> didnt
> > provide sufficient information about what JSON post message is expected.
> >
> > thanks anyway for the link, perhaps this is a call for the maintainer of
> > the ckan/wiki/Dataset-relationships to actually provide information to
> what
> > versions are eligible for the example command displayed on the wiki.
> >
> > Best regards,
> >
> > Jan
> >
> >
> > On Wed, Oct 9, 2013 at 12:47 PM, Mark Wainwright
> > <mark.wainwright at okfn.org>wrote:
> >
> >> I've no idea what the answer is but I do know of the existence of this
> >> wiki page - not sure if it is at all useful:
> >>
> >> https://github.com/okfn/ckan/wiki/Dataset-relationships
> >>
> >> Mark
> >>
> >> On 07/10/2013, Jan Vansteenlandt <jan at okfn.be> wrote:
> >> > Hi all,
> >> >
> >> > I've been trying to create a relationship between two datasets, so far
> >> > using the documentation I haven't been able to do so.
> >> >
> >> > I use this documentation page:
> >> > http://docs.ckan.org/ru/latest/legacy-api.html and my curl requests
> are
> >> of
> >> > this kind:
> >> >
> >> > curl -X PUT -v
> >> http://ckanhost/api/rest/dataset/UUID_1/linked_fromUUID_2
> >> > -d
> >> > '{"subject":"resource name", "object":"resource name",
> >> > "type":"linked_from", "comment":"this is a test relationship"}' -H
> >> > "Authorization: MY AUTH KEY"
> >> >
> >> > If i use PUT I get a message that "This relationship between the
> >> > packages
> >> > was not found." If I use POST it says "the inputfield id was not
> >> expected",
> >> > even though I havent passed an id field in my json ... Any thoughts
> on
> >> > this?
> >> >
> >> > --
> >> > Best regards,
> >> >
> >> > Jan Vansteenlandt
> >> >
> >>
> >>
> >> --
> >> Business development and user engagement manager
> >> The Open Knowledge Foundation
> >> Empowering through Open Knowledge
> >> http://okfn.org/ | @okfn | http://ckan.org | @CKANproject
> >>
> >
> >
> >
> > --
> > Met vriendelijke groeten,
> >
> > Jan Vansteenlandt
> >
>
>
> --
> Business development and user engagement manager
> The Open Knowledge Foundation
> Empowering through Open Knowledge
> http://okfn.org/ | @okfn | http://ckan.org | @CKANproject
>
> --
> Met vriendelijke groeten,
>
> Jan Vansteenlandt
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-discuss/attachments/20131009/2e4a67ee/attachment.htm>
More information about the ckan-discuss
mailing list