Add language for comments
authorGavin Carothers <>
Sun, 11 Aug 2013 16:39:47 -0700
changeset 975 d1984576560c
parent 974 5e350db15acb
child 976 7356c3baaf5d
Add language for comments
--- a/rdf-turtle/n-triples.html	Sun Aug 11 16:30:27 2013 -0700
+++ b/rdf-turtle/n-triples.html	Sun Aug 11 16:39:47 2013 -0700
@@ -222,6 +222,7 @@
         <li>Whitespace following <code>subject</code>, <code>predicate</code>, and <code>object</code> MUST be a single space, (<code>U+0020</code>) all other locations that allow whitespace MUST be empty.
+        <li>All comments MUST be removed.
         <li><code>HEX</code> MUST use only uppercase letters (<code>[A-F]</code>).
         <li>Characters not allowed directly in STRING_LITERAL_QUOTE (<code>U+0022</code>, <code>U+005C</code>, <code>U+000A</code>, <code>U+000D</code>) MUST use <code>ECHAR</code> not <code>UCHAR</code>.
         <li>Characters MUST be represented directly and not by <code>UCHAR</code>.
@@ -252,6 +253,7 @@
           <p>A N-Triples document is a Unicode [[!UNICODE]] character string encoded in UTF-8.
           Unicode codepoints only in the range U+0 to U+10FFFF inclusive are allowed.</p>
+          <p>Comments in N-Triples take the form of '<code>#</code>', outside an <code>IRIREF</code> or <code>STRING_LITERAL_QUOTE</code>, and continue to the end of line (<code>EOL</code>) or end of file if there is no end of line after the comment marker. Comments are treated as white space.</p>
           <p>The <abbr title="Extended Backus–Naur Form">EBNF</abbr> used here is defined in XML 1.0
           <p>Escape sequence rules are the same as Turtle