W3C home > Mailing lists > Public > www-rdf-comments@w3.org > April to June 2002

Re: Broken n-triples in primer

From: Frank Manola <fmanola@mitre.org>
Date: Fri, 03 May 2002 18:51:01 -0400
Message-ID: <3CD31455.6060504@mitre.org>
To: Seth Russell <seth@robustai.net>
CC: Aaron Swartz <me@aaronsw.com>, www-rdf-comments@w3.org, Dave Beckett <dave.beckett@bristol.ac.uk>
To address both points:

1.  Several people have made the point about breaking N-triples.  We're 
breaking the lines in order to fit the N-triples on the page (if they're 
too long, the usual browser presentation breaks them anyway, usually at 
inconvenient points).  Would it be satisfactory to introduce the 
examples with text such as:

"As defined, each statement expressed in N-triples must occupy a single 
line of a file.  But if long URIs are used, such lines can get very 
long, so for the purpose of presentation in this document, the three 
parts of an N-triple are placed on separate lines, as shown below."?

If that isn't satisfactory, what do you suggest (I sort of oppose ugly 
presentations too)?  Note that the N-triples spec forbids explicit *line 
break characters* between the elements in the file;  it doesn't (because 
it can't) forbid a *presentation* that shows each element on a different 
line.  But if this is going to be really confusing, we'll fix it.

2.  The "N" in "N-triples" is there because N-triples derives from N3.


Seth Russell wrote:

> From: "Aaron Swartz" <me@aaronsw.com>
>>The Primer claims to be using N-Triples in examples like:
>><http://www.example.org/staffid/85740> .
>> - http://www.w3.org/TR/2002/WD-rdf-primer-20020426/
>>But N-Triples can't have line breaks in the middle of a statement.
> Good point.  Is it too late to allow line breaks in the middle of N-Triple
> statements?  Me thinks that is it wierd and contra productive to exclude
> them.  Most program code will be simpler if they were allowed ... also
> descriptions like in the Primer will be
> Incidentaly what does the 'N' in 'N-Triples' stand for ?  Me thinks this
> format would be better just called 'Triples'.
> Seth Russell

Frank Manola                   The MITRE Corporation
202 Burlington Road, MS A345   Bedford, MA 01730-1420
mailto:fmanola@mitre.org       voice: 781-271-8147   FAX: 781-271-875
Received on Friday, 3 May 2002 18:40:04 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:15:18 UTC