Comments in n-triples format?

What would others think of modifying the n-triples grammar[1] to allow 
comment lines like the following?

   # This is a comment line
   <http://example/foo> <http://example/bar> <http://example/baz> .

At present, comments are not allowed in n-triples, though they are 
allowed in Turtle and SPARQL.  I certainly don't want to make n-triples 
overly complicated, but a comment on a line by itself would be very easy 
to strip out when parsing, and it is very helpful to be able to have 
comments in a document, for the benefit of a human reader.  A comment at 
the beginning is often used to indicate the purpose of the document, the 
authorship, copyright, license info, etc.  Including such information 
directly in the file makes it is easy to find.

To some extent this can be done already, because if a comment is added 
to an n-triples document, the document would still be valid Turtle 
(because every n-triples document is valid Turtle) even it it is no 
longer valid n-triples.  Still, I'm wondering if this might be a 
beneficial change to n-triples.

What do others think?

David

1. N-triples grammar:
https://dvcs.w3.org/hg/rdf/raw-file/default/rdf-turtle/n-triples.html#n-triples-grammar

Received on Wednesday, 17 July 2013 16:44:49 UTC