W3C home > Mailing lists > Public > public-ldp-wg@w3.org > November 2013

Re: How to find the members of an LDPC?

From: Steve Speicher <sspeiche@gmail.com>
Date: Wed, 6 Nov 2013 09:01:09 -0500
Message-ID: <CAOUJ7Jo=kC+ZYqZw=TqSkb4Cacqn6PJo=tqymY4q+aCfOXuZiQ@mail.gmail.com>
To: Alexandre Bertails <bertails@w3.org>
Cc: Linked Data Platform WG <public-ldp-wg@w3.org>
Hi,


On Tue, Nov 5, 2013 at 7:49 PM, Alexandre Bertails <bertails@w3.org> wrote:

> Hi guys,
>
> I understand ldp:containerResource, ldp:containsRelation and
> ldp:insertedContentRelation as a _set of instructions_ for the LDPC to
> manage some domain-based relations, but I don't see a way to find the
> LDPRs created by the LDPC.
>
> Please consider the following example:
>
> $ GET http://example.com/shopping/cart/
>
> [[
> </shopping/cart/> a ldp:Container;
>    ldp:containerResource <#>;
>    ldp:containsRelation order:contains;
>    ldp:insertedContentRelation foaf:primaryTopic.
> ]]
>
> $ POST http://example.com/shopping/cart/
>
> [[
> <> foaf:primaryTopic <urn:isbn:0470396792> .
> ]]
>
> $ GET http://example.com/shopping/cart/
>
> [[
> </shopping/cart/> a ldp:Container;
>    ldp:containerResource <#>;
>    ldp:containsRelation order:contains;
>    ldp:insertedContentRelation foaf:primaryTopic.
>
> <#> order:contains <urn:isbn:0470396792>
> ]]
>
> Question: from the last GET, what is the LDPR for <urn:isbn:0470396792>?


> If the ldp:member relation does not exist, how would a client deduce
> the members that were created

?
>

One would assume that the POST would return a 201-Created status message
and Location header of the URL for the new resource created.  The server
may produce another triple to link the created resource (LDPR), not sure
what it might be:
    <> ex:describes <#>.


>
> What really matters as client is to know what interactions are
> possible. If an interaction model were to be defined, I would expect
> to see something like that:
>
> 1. HTTP HEAD on </foo/> tells client "I am an LDPC" as it returns a header
>    Link: <http://www.w3.org/ns/ldp#Container>; rel="type"
>
> 2. from a GET on </foo/>, a client finds/deduces the LDPRs managed by
>    </foo/> eg. with triples like { </foo/> ldp:member </foo/bar> }
>
> 3. HTTP HEAD on </foo/bar> tells client "I am an LDPR" as it returns a
> header
>    Link: <http://www.w3.org/ns/ldp#Resource>; rel="type"
>
> 4. HTTP DELETE on </foo/bar> MUST remove the LDPR and remove
>    { </foo/> ldp:member </foo/bar> } from the LDPC
>
> This is the interaction model defined by LDP ... with the exception of
ldp:member this isn't defined but think you are saying
ldp:containsRelation.  I can't tell if you are saying there is something
missing or you are just describing roughly how it works.

- Steve


> Alexandre.
>
>
Received on Wednesday, 6 November 2013 14:01:36 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:17:46 UTC