W3C home > Mailing lists > Public > public-rdf-wg@w3.org > May 2011

Re: Turtle and CURIES

From: Andy Seaborne <andy.seaborne@epimorphics.com>
Date: Tue, 24 May 2011 10:05:41 +0100
Message-ID: <4DDB74E5.5010902@epimorphics.com>
To: Alex Hall <alexhall@revelytix.com>
CC: public-rdf-wg@w3.org
I've asked Jonathan about what was meant and he'll answer on www-tag.

On 23/05/11 16:22, Alex Hall wrote:

> But, they seem to be suggesting a naming scheme where the local names
> 'a', 'b', 'c', ... become the IRIs <http://example.com/a#>,
> <http://example.com/b#>, <http://example.com/c#>, ...  To make that
> legal Turtle, you have to allocate a new namespace for each local name,
> e.g.:
>
> @prefix a: <http://example.com/a#>
> @prefix b: <http://example.com/b#>
> @prefix c: <http://example.com/c#>
>
> { a: b: c: }
>
> That's just not feasible for documents with large numbers of local names.

If there is just one problematic prefix, there is a @base trick:

@base <http://example.com/> .

<a#> <b#> <c#> .

else fall back to writing full IRIs.  Unlike RDF/XML it's always 
possible - it's just verbose/ugly.

	Andy
Received on Tuesday, 24 May 2011 09:06:12 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 16:25:43 GMT