Re: Turtle and CURIES

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 UTC