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

Re: Question regarding POST versus PUT for creating an LDPC

From: David Wood <david@3roundstones.com>
Date: Fri, 19 Apr 2013 09:25:00 -0400
Cc: public-ldp-wg@w3.org
Message-Id: <02C0BE96-7F97-4D85-8A5D-EC800DACBC54@3roundstones.com>
To: Andy Seaborne <andy.seaborne@epimorphics.com>
On Apr 19, 2013, at 09:21, Andy Seaborne <andy.seaborne@epimorphics.com> wrote:
> 
> On 19/04/13 07:01, Henry Story wrote:
>> 
>> On 18 Apr 2013, at 23:51, Arnaud Le Hors <lehors@us.ibm.com
>> <mailto:lehors@us.ibm.com>> wrote:
>> 
>>> All the spec currently says on this is:
>>> 
>>> 4.4.6 LDPR servers /MAY/ choose to allow the creation of new resources
>>> using HTTP PUT.
>>> 
>>> Which I read as trying to discourage this practice although it's not
>>> quite that clear. What you're describing only makes me want to add
>>> something like the following to reinforce that thought! :-)
>>> 
>>> LDPR clients SHOULD NOT try to create new resources using HTTP PUT.
>> 
>> 
>> +1
> 
> -1
> 
> Example 1:
> 
> A container of colors.
> 
> I want to add an entry for "black" and I want the name to
> be /colors/black.
> 
> PUTting to /colors/black and then linking seems a natural way to do that.
> 
> I don't want container generated names - I want to control the name.


How is this different from POSTing to container /colors/ with a Slug of 'black'?

If the server respects the slug, you get what you want.  If it doesn't, you were never going to get the URL you desire anyway.

Regards,
Dave
--
http://about.me/david_wood


> 
> Because next I want to create a special entry "black400" for "400% Registration Black" (which is used in commercial printing).  But as a general container for colors, there is no need to encode knowledge of commercial printing naming.
> 
> Example 2:
> 
> The WMO (World Meteorological Organisation) publishes code lists, currently as books and PDFs maybe soon as linked data.  The code items exist and the names are fixed.  Client-side control of URI is very important to them.
> 
> /0-20-086/6 is the code for "slush"
> 
> /C-6/001 is the code for the unit "meters" ... and it must be 001, not 1.
> 
> 	Andy
> 



Received on Friday, 19 April 2013 13:25:23 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:11:46 UTC