W3C home > Mailing lists > Public > www-tag@w3.org > September 2011

Re: naive question: why prefer absolute URIs to # URIs for linked data?

From: Rob Styles <rob.styles@talis.com>
Date: Wed, 14 Sep 2011 15:17:40 +0100
Message-ID: <CAOqX0aT3PmwgLaS0rwzC95LpsuZWpwQtcYbA_7omDVqHAEzqPA@mail.gmail.com>
To: www-tag@w3.org
From: Tim Berners-Lee <timbl@w3.org>
Date: Fri, 2 Sep 2011 15:41:36 -0400
Cc: Jonathan Rees <jar@creativecommons.org>, Harry Halpin <
hhalpin@ibiblio.org>, Manu Sporny <msporny@digitalbazaar.com>,
Message-Id: <97CDCA3F-5482-4504-A67C-C4D80B692313@w3.org>
To: Ian Davis <me@iandavis.com>

On 2011-08 -31, at 16:52, Ian Davis wrote:


> Also the server can't log accesses to the full URI which means you don't
get accurate analytics.

With the #it method above it can as there is a 1-1 correspondence.

The lack of the hash doesn't allow you to distinguish between those
requesting the full NIR URI with the hash and those requesting the document
URI. This may result in the same resource being served but as both are valid
URIs and may appear in different datasets for different purposes it does
limit the analytics that are possible.

> 3) You can't use HTTP headers or status codes to refer to a hash URI. For
example you can't 404 a hash URI or redirect it.

With the #it method above it can as there is a 1-1 correspondence.

There is a case where you can't and that is where URIs have been incorrectly
formed. A request to http://example.com/#it and a request
http://example.com/#not_it will appear the same and result in a response of
200 and a document describing #it in both cases, where the ideal is to be
able to return a 404 for #not_it as the resource is not found,

> 4) The role of the fragment is changing in modern web development
practice. Its becoming a bearer of state and/or part of the interaction
architecture of an application. See #! URLs or javascript techniques for
tabbed pages.

The fact that people are building on the fragid in one way doesn't mean we
also build on it in this way.

It makes it harder to work with Linked Data in combination with a stateful
javascript site if the # is used both for stateful functionality with the
script and to indicate a NIR URI. You cannot use URIs that do both as only
one frag is allowed.

> Ian



Rob Styles
Senior Technical Consultant
Received on Wednesday, 14 September 2011 14:18:12 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:56:40 UTC