Re: MKCOL for making collections

>>>> 
>>>>> ISSUE-36: Can applications create new containers?
>>>>> 
>>>>> We cannot make a collection by POSTing a doument on a collection, since that
>>>>> creates a resource. We therefore would need a different HTTP Method to do this.
>>>>> 
>>>> 
>>>> Why can't we do this?  A Container/Collection IS a resource.  So
>>>> therefore POST'ing the representation of it seems like the most
>>>> obvious way to create one.
>>> 
>>> I agree with Henry's premises: this way of creating containers should
>>> be discussed. The reason is that this strategy forces you to look into
>>> each RDF document that is POSTed, to search for the triples saying
>>> "hey, by the way, I'm an LDPC!".
>>> 
>>> It's not that it's impossible, it's just very annoying in practice. So
>>> it's at least not perfect.
>> 
>> Thanks :-) I was just writing this up.
>> 
>> Next interesting enough would be the question as to whether a link would
>> do to a special resource for creating a collection in your collection.
>> You could have
>> 
>> <> ldp:createCollection <xxx> .
> 
> You wouldn't do that anyway. Something like that is more appropriate:
> 
> <> a ldp:container .
> 

Alexandre, 

Sounds good! I agree. And spec doesn't need anything additional to support that. 

I think however that this is client directing the server in what to do, and it is more useful for the server to to be directing the client ... what do you think ? 

Roger

Received on Tuesday, 22 January 2013 16:54:12 UTC