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

CWM: NTriples Can't Have New Lines In Literals

From: Sean B. Palmer <sean@mysterylights.com>
Date: Thu, 22 Nov 2001 18:34:20 -0000
Message-ID: <060d01c17384$4eae2f00$deda93c3@localhost>
To: "Tim Berners-Lee" <timbl@w3.org>, "Dan Connolly" <connolly@w3.org>
Cc: <www-archive+n3bugs@w3.org>
According to the NTriples "specification" [1], NTriples can't contain
new lines in the literals - i.e., it does not support the triple
quoting for strings construct that N3 does. However, CWM still outputs
material such as the following using -ntriples in the command line:-

   :x :y """x
   y z""" .

Attached as <<cwmntcleaner.py>> is the Python program I use to clean
it up at the moment, but it'd be easier if CWM could output valid
NTriples [ignoring literals-as-subjects] itself :-)

[1] http://www.w3.org/TR/2001/WD-rdf-testcases-20011115/#ntrip_grammar

Kindest Regards,
Sean B. Palmer
@prefix : <http://webns.net/roughterms/> .
:Sean :hasHomepage <http://purl.org/net/sbp/> .

Received on Thursday, 22 November 2001 13:34:56 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:31:39 UTC