ISSUE-43: hint at naming a resource on creation
slug
hint at naming a resource on creation
- State:
- CLOSED
- Product:
- Linked Data Platform Spec
- Raised by:
- Henry Story
- Opened on:
- 2013-01-08
- Description:
- There are many cases when creating resources the user
would like to be able to suggest the name
or the final part of the name of the resource created
(excluding the extension). It makes sense for example
that a foaf profile be named by a URI ending in
"card" when created in a collection.
So for example if one POSTs a foaf Profile to a
collection
http://co.example/customer/joe/
a client may like it to be called "card" ie have the URL
http://co.example/customer/card
Or if joe wishes to create an image in a collection that
he names "Family on the Beach" he would like the server
to not just name the resource
http://co.example/customer/joe/pix/ASDASFD123.jpg
but perhaps more something like
http://co.example/customer/joe/pix/2013-FamilyOnTheBeach.jpg
Of course the server may not respect this for good reasons
such as the server having a policy of only giving obscure names to
resources for security reasons to avoid information leakage through
names, or in order because strict adherence to the name would create
a name clash with an existing resource.
http://www.w3.org/2013/03/13-ldp-irc#T17-14-44
- Related Actions Items:
ACTION-64 on John Arwe to [EDITOR] Use the Slug Header from the Atom Protocol, per resolution of issue-43 - due 2013-05-24, closed- Related emails:
- LDP Rec (from eric@w3.org on 2015-02-20)
- Re: Question regarding POST versus PUT for creating an LDPC (from andy.seaborne@epimorphics.com on 2013-04-19)
- Re: ldp-ISSUE-59 (recursive-delete): Reconsider usage of Aggregate/Composite construct to get predictable container delete behavior [Linked Data Platform core] (from ashok.malhotra@oracle.com on 2013-04-05)
- Re: naming resources - Slug-Header - ISSUE-43 (from Erik.Wilde@emc.com on 2013-01-10)
- Re: naming resources - Slug-Header - ISSUE-43 (from henry.story@bblfish.net on 2013-01-10)
- ldp-ISSUE-43 (slug): hint at naming a resource on creation [Linked Data Platform core] (from sysbot+tracker@w3.org on 2013-01-08)
Related notes:
One proposal is to simply use the Slug Header from the Atom Protocol
https://tools.ietf.org/html/rfc5023#section-9.7
Another proposal is for the server to use some relation in the RDF content to guide his naming.
See discussion:
http://lists.w3.org/Archives/Public/public-ldp-wg/2013Jan/0018.html
Resolution: Use slug.
See http://www.w3.org/2012/ldp/meeting/2013-03-13#resolution_2
and http://www.w3.org/2012/ldp/meeting/2013-03-13#resolution_3
Display change log