W3C home > Mailing lists > Public > www-archive@w3.org > October 2001

CWM NTriples Output Bug

From: Sean B. Palmer <sean@mysterylights.com>
Date: Sat, 20 Oct 2001 03:34:41 +0100
Message-ID: <05a501c1590f$e2cf4320$7ce793c3@y0r1d9>
To: "Tim Berners-Lee" <timbl@w3.org>, "Dan Connolly" <connolly@w3.org>
Cc: <www-archive+n3bugs@w3.org>
There's another bug in CWM, Llyn, or whatever does the N3 processing these
days, in that literals with "\n" in them don't get reduced. For example:-

[[[
@prefix : <http://infomesh.net/2001/10/test-uri/#> .

:a :b """Some data on
two lines""" .
]]]

becomes:-

[[[
    <http://example.org/#a>     <http://example.org/#b> """Some data on
two lines""" .
]]]

but the literal should have been converted to:-

   "Some data on \ntwo lines"

because newlines/triple quoting syntax is outlawed in NTriples (see the
"literal" EBNF production in [1], and the quoting rules in [2]).

[1] http://www.w3.org/TR/2001/WD-rdf-testcases-20010912/
[2] http://www.w3.org/TR/2001/WD-rdf-testcases-20010912/#ntrip_strings

Cheers,

--
Kindest Regards,
Sean B. Palmer
@prefix : <http://webns.net/roughterms/> .
:Sean :hasHomepage <http://purl.org/net/sbp/> .
Received on Friday, 19 October 2001 22:35:50 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 7 November 2012 14:17:14 GMT