Re: Linked Data Platform ISSUE-20: What is the base URI of a POSTed document?

On 11 Oct 2012, at 14:15, Andy Seaborne <> wrote:

> On 11/10/12 12:56, Henry Story wrote:
>> What are these violations of the URI spec?
>> RFC3986 permits relative URLs ( in section 42 no less;-)
> Section 5.1.3 defines how the base URI is determined - it's not an arbitrary choice.  RDF does not allow relative URIs.

yes, those are evident problems with those specs, which is part of the reasons
why RDF has had a lot of trouble catching on. Later specs one can see trying
to find space for these evidently important concepts, eg:
Some concrete syntaxes permit relative IRIs as a shorthand for absolute IRIs, and define how to resolve the relative IRIs against a base IRI.

I mean even RDF/XML has space for relative URLs! Every web designer knows about

> The complete solution is POST to container, get back a Location:, maybe a 301 (Moved Permanently), and PUT or POST to the location.

One can do a LOT better. Just follow RFC5995


   POST /collection;add-member/ HTTP/1.1
   Content-Type: text/plain
   Slug: Sample Title
   Content-Length: 67

   @prefix foaf: <>
   <> a foaf:Document .


   HTTP/1.1 201 Created

>  But it's a round trip and (arguably) an impractical nuisance.
> If you want to use N-triples (no base URI), and the subject is the BPR, then you have to know the BPR URI before creating the N-Triples.
> 	Andy

Social Web Architect

Received on Thursday, 11 October 2012 12:37:14 UTC