Re: Colons in compact URIs, e.G. dbpedia:Category:Bluegrass_music

On 2015-10 -09, at 08:00, Andy Seaborne <andy@seaborne.org> wrote:

> 
> 
> On 09/10/15 11:57, Stian Soiland-Reyes wrote:
>> Excerpts from Michael Brunnbauer's message of 2015-10-09 10:38:33 +0100:
>>> 
>>> hi all,
>>> 
>>> is dbpedia:Category:Bluegrass_music a valid compact URI?
>>> It seems not, because http://www.w3.org/TR/curie/ says:
>> 
>> No, because it can't be consistently represented as a CURIE in
>> syntaxes like RDF/XML or Turtle. It could still be valid in some syntaxes
>> like JSON-LD or RDFa.
> 
> Colons are legal without escaping in the local part in Turtle (and SPARQL 1.1)
> 
> [168s] 	PN_LOCAL 	::=
>  	(PN_CHARS_U | ':' | [0-9] | PLX)
>        ((PN_CHARS | '.' | ':' | PLX)* (PN_CHARS | ':' | PLX))?
> 
> 	Andy
> 

Another way in which Turtle has ended up arbitrarily different from N3 it seems.	:-(
You cannot use a colon in N3.   cwm for example rejects it. 
I would not recommend you use it.

$ echo ' :x a :Category:Bluegrass_music . ' | cwm 

Bad syntax (expected '.' or '}' or ']' at end of statement) at ^ in:
" :x a :Category^:Bluegrass_music . 
"

>> 
>>> 
>> 
> 
> 

Received on Friday, 9 October 2015 12:32:30 UTC