W3C home > Mailing lists > Public > public-rdf-wg@w3.org > February 2012

Fwd: Turtle feature request : multi-line comments (was Re: Proposed conventions: System Triplestore, turtle Command, Text Embedded Turtle)

From: Ivan Herman <ivan@w3.org>
Date: Tue, 7 Feb 2012 12:38:02 +0100
Cc: W3C RDF WG <public-rdf-wg@w3.org>
Message-Id: <93A66898-E7AB-4056-B9A4-12624AC18022@w3.org>
To: Gavin Carothers <gavin@carothers.name>, Eric Prud'hommeaux <eric@w3.org>
Gavin, Eric,

I am not sure you follow this thread.

Ivan

Begin forwarded message:

> Resent-From: semantic-web@w3.org
> From: Danny Ayers <danny.ayers@gmail.com>
> Subject: Turtle feature request : multi-line comments (was Re: Proposed conventions: System Triplestore, turtle Command, Text Embedded Turtle)
> Date: February 3, 2012 18:37:20 GMT+01:00
> To: Semantic Web <semantic-web@w3.org>
> Cc: Tim Berners-Lee <timbl@w3.org>, Dave Beckett <dave@dajobe.org>
> Archived-At: <http://www.w3.org/mid/CAM=Pv=RwEtwbFFF+aeqDxScj2a1wX1=E4WmOga8DRRCL4XLSDg@mail.gmail.com>
> List-Id: <semantic-web.w3.org>
> 
> [added cc to dajobe & timbl]
> 
> One use case for multi-line (block) comments is mixing text and data
> notes in the same document and being easily able to separate out the
> two later (see earlier posts in this thread). When quickly jotting
> notes the # is inconvenient/ugly and block comments make convenient
> chunks for extraction.
> (There's also the potential for adding any comments as annotation
> triples at parse time, though that's almost certainly best left out of
> scope.)
> 
> I'm not sure of the impact such an addition might have, I think none
> but probably only because I've missed something obvious. Maintaining
> validity of existing documents seems an essential requirement. I've no
> idea of the situation with N3 - on a quick skim of [1] I couldn't see
> references to any kind of comments, not even in the BNF.
> 
> Regarding specific syntax, Turtle shares the use of # for single-line
> comments and """ for long literals with Python, and Python also
> supports """ for comments - but this would be a modal marker, which as
> David points out earlier in this thread can cause problems. (and I
> also wonder why Turtle doesn't already support this style)
> 
> Would /* and */ be more suitable (as Steve suggested) perhaps..?
> 
> (Making the markers in Text Embedded Turtle non-modal basically makes
> it Turtle with block comments, much better idea :)
> 
> Cheers,
> Danny.
> 
> [1] http://www.w3.org/TeamSubmission/n3/
> 
> -- 
> http://dannyayers.com
> 
> http://webbeep.it  - text to tones and back again
> 


----
Ivan Herman, W3C Semantic Web Activity Lead
Home: http://www.w3.org/People/Ivan/
mobile: +31-641044153
FOAF: http://www.ivan-herman.net/foaf.rdf







Received on Tuesday, 7 February 2012 11:39:56 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 16:25:47 GMT