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

Re: [TTL] Long literals

From: Steve Harris <steve.harris@garlik.com>
Date: Thu, 31 Mar 2011 10:26:38 +0100
Cc: RDF-WG <public-rdf-wg@w3.org>
Message-Id: <DA6469B8-03B5-4CF8-9C28-B8580B6E08E2@garlik.com>
To: Andy Seaborne <andy.seaborne@epimorphics.com>
IMHO, it should be the same as SPARQL (though I have no clear idea of what that is).

One of the usecases for having a common syntax is that you can cut-n-paste Turtle text into a SPARQL query and it will match, but not if one has normalisation rules, and one doesn't.

- Steve

On 2011-03-31, at 10:12, Andy Seaborne wrote:

> What is the newline process in long literals?
> 
> """
> abc
> def
> """
> 
> '''
> abc
> def
> '''
> 
> which of CR(\r) NL(\n), CR, NL is it?
> 
> XML behaves as if it's &#xA; i.e. NL (also know as LF).
> 
> As \r escapes apply,
> 
> """\r
> abc\r
> def\r
> """
> 
> would be the CR NL version.
> 
> It's hard to write the NL form if the default is CR NL.
> 
> So NL newlines seems appropriate. It just needs stating though.
> 
> (It can be achieved for a CR NL systems line MS-Windows by simply striping out any raw CR in the input stream anywhere in the input as the NL will achieve the same effect.)
> 
> 	Andy
> 

-- 
Steve Harris, CTO, Garlik Limited
1-3 Halford Road, Richmond, TW10 6AW, UK
+44 20 8439 8203  http://www.garlik.com/
Registered in England and Wales 535 7233 VAT # 849 0517 11
Registered office: Thames House, Portsmouth Road, Esher, Surrey, KT10 9AD
Received on Thursday, 31 March 2011 09:27:11 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:04:04 UTC