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

Re: [TTL] Differences between SPARQL and Turtle.

From: Richard Cyganiak <richard@cyganiak.de>
Date: Wed, 11 May 2011 22:45:42 +0100
Cc: Andy Seaborne <andy.seaborne@epimorphics.com>, public-rdf-wg@w3.org
Message-Id: <9E7EB1F2-9BC9-4F2E-95CE-CB035BF1ADB7@cyganiak.de>
To: Eric Prud'hommeaux <eric@w3.org>
(Sorry if this issue is moot by now)

On 4 May 2011, at 14:27, Eric Prud'hommeaux wrote:
>> # 8 Escape Processing
>> Proposal: Adopt Turtle style / Change SPARQL.
>> 
>> \u escapes can only appear in strings and IRIs
> 
> Richard +1'd this on the basis that allowing \u in local names would
> confused users.

Other reasons are actually more important:

1. Currently, \u in local names is not allowed in Turtle or N3
2. You can always fall back on full IRIs if you really need to escape something

> I'm not convinced and suspect that the RDB2RDF WG
> would want to give their users a way to algorithmically write
> shorthand like:
> 
>  @prefix : <http://foo.example/DB/People/> .
>  # triples for …People/ID=8 :
>  :ID\u003d8 :fname "Bob" ; :lname "Smith" .

Personally I prefer </DB/People/ID/8> or id:8 over :ID\u003d8, but maybe I'm just weird.

The way I see it, \uXXXX in prefixed names is not strictly necessary and doesn't add anything compelling.

Best,
Richard
Received on Thursday, 12 May 2011 00:20:31 GMT

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