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

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

> On 11/10/12 14:29, Kingsley Idehen wrote:
>>> I thinkAndy was saying that that the RDF triples -/containing absolute
>>> URIs/- are the data.
>> But that simply isn't accurate.
> Kingsley -
> We can resolve this quite simply - what do the specs say?  We can wish for one thing but that does not make it automatically true.
> So please reference the spec text - I'm quite happy to be shown to be wrong here, it wouldn't be the first time!

:-) Ok so please hold on here
Some concrete syntaxes permit relative IRIs as a shorthand for absolute IRIs, and define how to resolve the relative IRIs against a base IRI.

( They should really say "most")

The syntaxes can only specify how to resolve a relative URI relative to a base URI.
It is up to other specs to define how you get the BASE url. For example it is
not necessarily the URL you GET, because http allows the server to return a 301
which changes how you interpret the relative URLs in the graph. If you open a file
on the file system, you don't even use HTTP but the relative URL is then

So the same here with POST. With POST *we* define how we get the BASE URL.
We are not the first to do so, as I mentioned previously here is an RFC
which I suppose had a lot of reviews

Adapted that section to Turtle you get:


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

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


  HTTP/1.1 201 Created

Good so I think we can multiply the number of RFCs and documents on this subject.

> 	Andy

Social Web Architect

Received on Thursday, 11 October 2012 14:26:45 UTC