W3C home > Mailing lists > Public > public-rww@w3.org > April 2012

Re: POSTing to a collection and GETing its index

From: Alexandre Bertails <bertails@w3.org>
Date: Mon, 09 Apr 2012 09:12:43 -0400
Message-ID: <4F82E04B.40908@w3.org>
To: Henry Story <henry.story@bblfish.net>
CC: Read-Write-Web <public-rww@w3.org>
Hi Henry,

On 04/08/2012 06:20 PM, Henry Story wrote:
> Hi,
>    As I understand POSTing a resource to a Collection should create a new resource.
> We want to allow collections to be POST only so that unknown people can post into
> a collection without seeing the other resource in it. (whilst perhaps allowing the
> POSTer to edit the resources he created in that collection). We would like the owner
> of the collection to be able to know what is in the collection: so that he can for
> example find the new resources POSTed there.
>    So some user should be able to
> POST /collection/ HTTP/1.1
> thereby having the read-write-web server create the resource
>    /collection/r42
> which he could later edit in case he made a mistake. But he would not be
> albe to find the elements of the collection by doing a
> GET /collection/

There is no perfect solution for handling collections. I kind of like
Sandro's idea [1]. Also, this is a place where using the WebDav verbs
(eg. MKCOL) should be considered IMO. But this could be a problem in
the browser.


[1] http://www.w3.org/2001/sw/wiki/REST#Creating_Collections

> as that would be protected. He certainly could not edit what ends up being the
> equivalent of /collection/index{.rdf} since he does not have access to that
> file. It must therefore be up to the ReadWriteWeb server to do three things:
>   1. create a name for the POSTed resource
>   2. update/display the collection (sioc:Collection?) index retrieved when
>      doing a GET /collection/
>   3. Only show a subset of those elements of the collection that an agent
>      has read access to
> I think the scala read-write-web does not have POST on a collection (a directory
> in unix terminology) create a new file currently. (It has a POST of a SPARQL update
> on an rdf information resource change it.)
> Does that sound right?
> 	Henry
> Social Web Architect
> http://bblfish.net/
Received on Monday, 9 April 2012 13:12:21 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:10:25 UTC