CWM: NTriples Can't Have New Lines In Literals

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