- From: Arnaud Le Hors <lehors@us.ibm.com>
- Date: Fri, 3 May 2013 09:51:25 -0700
- To: "public-ldp-wg@w3.org" <public-ldp-wg@w3.org>
- Message-ID: <OF87E5AD43.F08A791E-ON88257B60.005C336F-88257B60.005C9921@us.ibm.com>
I think these are good questions to ask. The spec is currently silent about these. We already agreed to clarify that containers can be created using POST to another container just like any other resource. The spec currently allows servers to create resources using PUT (section 4.4.6) I would expect the same to be true for containers and PATCH. Now, the question of type casting is a different one. I wouldn't necessary want to disallow it but I certainly wouldn't require it. -- Arnaud Le Hors - Software Standards Architect - IBM Software Group Nandana Mihindukulasooriya <nmihindu@fi.upm.es> wrote on 05/03/2013 03:40:26 AM: > From: Nandana Mihindukulasooriya <nmihindu@fi.upm.es> > To: Pierre-Antoine Champin <pierre-antoine.champin@liris.cnrs.fr>, > Cc: Henry Story <henry.story@bblfish.net>, "public-ldp-wg@w3.org" > <public-ldp-wg@w3.org> > Date: 05/03/2013 03:42 AM > Subject: Re: PUT,POST,PATCH of <> a ldp:Container > > Hi, > > On Thu, May 2, 2013 at 11:18 PM, Pierre-Antoine Champin <pierre- > antoine.champin@liris.cnrs.fr> wrote: > Hi Henry, > > On Thu, May 2, 2013 at 9:47 PM, Henry Story <henry.story@bblfish.net> wrote: > A POST of a graph that contains the triple > > <> a ldp:Container . > > SHOULD/MUST create an ldp:Container > > yes > > > Question: > > 1. Does a PUT of a graph that contains that triple create an ldp:Container ? > > 2. Does a PATCH that adds that triple turn that resource into an > ldp:Container ? > > 3. Does a PATCH that removes that triple make that ldp:Container > into a simple LDPR ? > > 4. if a POST were to append the posted graph to an LDPR would > posting that triple turn > that LDPR into an LDPC? > > Note that I'm not saying that the spec must forbid this, I'm only > saying it should not mandate it. > > I also think we should not mandate 1,2, and 3. I am trying to think > of any practical use-case where you have to convert a container into > a resource and vice versa. May be it is easier to think about a use- > case where you want to convert a LDPR into a LDPC but I couldn't > think of a good one yet. Henry, do you have one in your mind ? > > Best Regards, > Nandana
Received on Friday, 3 May 2013 16:52:09 UTC