[ckan-discuss] relationships between datasets

Mark Wainwright mark.wainwright at okfn.org
Wed Oct 9 11:47:28 BST 2013


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



More information about the ckan-discuss mailing list