W3C home > Mailing lists > Public > public-ldp-wg@w3.org > March 2015

Re: More comments on Primer

From: Nandana Mihindukulasooriya <nmihindu@fi.upm.es>
Date: Mon, 23 Mar 2015 17:13:20 +0100
Message-ID: <CAAOEr1m89MYvxNryH2n3e=vd5JaPMLuap58Z1O6B9fgRrX1jGg@mail.gmail.com>
To: Linked Data Platform WG <public-ldp-wg@w3.org>
Cc: Andrei Sambra <andrei@w3.org>
Hi Andrei,

Thanks for your feedback!

Regarding the first comment, we discussed that in the list sometimes back
but I didn't take any follow up action. Now reading rest of the emails from
the thread "LDPR Interaction Model on Create", I think it is reasonable to
go for this change. So if no one objects, you can go ahead with the change
(if not I can do it in ACTION-158),
https://lists.w3.org/Archives/Public/public-ldp-wg/2014Oct/0018.html

Regarding the second comment, isn't that case covered in "Section 2.7
Structural Manipulation (Child Containers)"?
https://dvcs.w3.org/hg/ldpwg/raw-file/default/ldp-primer/ldp-primer.html#structural-manipulation-child-containers

Best Regards,
Nandana

On Thu, Mar 19, 2015 at 7:46 PM, Andrei Sambra <andrei@w3.org> wrote:

> Hi all,
>
> After reading the primer again, I would also like to make a couple of
> comments.
>
> First comment.
> --------------
>
> The example in section 2.3 "Creating a RDF resource (POST an RDF
> resource to an LDP-BC)" shows how a POST to a container creates a new
> resource in it.
>
> However, it does not indicate what type of resource is supposed to be
> created, since no Link header is present in the request. To me, the
> request should be following the client interaction model described in
> the LDP spec (section 5.2.3.4). One reason why I am trying to push for
> an explicit interaction is that POST should not by default create member
> resources. We should try to avoid overloading the semantics for a
> "blank" POST to a Container, in case we or someone else would like to
> use POST for a different interaction.
>
> For that reason, I suggest adding the appropriate Link header to the
> example:
>
> POST /alice/ HTTP/1.1
> Host: example.org
> Slug: foaf
> Content-Type: text/turtle
> Link: <http://www.w3.org/ns/ldp#Resource>; rel="type"
>
>
> Second comment (related).
> -------------------------
>
> There are no examples showing how to create containers! Is there any
> chance we can have at least one example? Again, the only difference
> between creating a resource and a container lies in the Link header
> being sent -- e.g. to create a "pictures" container under
> http://example.org/alice/, one could do the following:
>
> POST /alice/ HTTP/1.1
> Host: example.org
> Slug: pictures
> Content-Type: text/turtle
> Link: <http://www.w3.org/ns/ldp#BasicContainer>; rel="type"
>
>
> Please let me know if you think these are reasonable changes. I suppose
> I can take an ACTION and submit the changes myself, since I'm proposing
> them.
>
>
> Best,
> Andrei Sambra
>
>
>
>
Received on Monday, 23 March 2015 16:14:06 UTC

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