Allow blank nodes as graph labels
authorGavin Carothers <gavin@carothers.name>
Wed, 28 Aug 2013 08:34:31 -0700
changeset 1021 6c245016328c
parent 1020 677250c8f303
child 1022 489c82850087
Allow blank nodes as graph labels
nquads/nquads-bnf.html
nquads/nquads.bnf
--- a/nquads/nquads-bnf.html	Tue Aug 27 18:32:36 2013 -0700
+++ b/nquads/nquads-bnf.html	Wed Aug 28 08:34:31 2013 -0700
@@ -30,11 +30,11 @@
     <td>::=</td>
     <td><a href='#grammar-production-IRIREF'>IRIREF</a> <code>| </code> <a href='#grammar-production-BLANK_NODE_LABEL'>BLANK_NODE_LABEL</a> <code>| </code> <a href='#grammar-production-literal'>literal</a></td>
 </tr>
-            <tr id="grammar-production-graphLabel" data-grammar-original="[6]  graphLabel         ::= IRIREF" data-grammar-expression="(&#x27;id&#x27;, &#x27;IRIREF&#x27;)" >
+            <tr id="grammar-production-graphLabel" data-grammar-original="[6]  graphLabel         ::= IRIREF | BLANK_NODE_LABEL" data-grammar-expression="(&#x27;|&#x27;, [(&#x27;id&#x27;, &#x27;IRIREF&#x27;), (&#x27;id&#x27;, &#x27;BLANK_NODE_LABEL&#x27;)])" >
     <td>[6]</td>
     <td><code>graphLabel</code></td>
     <td>::=</td>
-    <td><a href='#grammar-production-IRIREF'>IRIREF</a></td>
+    <td><a href='#grammar-production-IRIREF'>IRIREF</a> <code>| </code> <a href='#grammar-production-BLANK_NODE_LABEL'>BLANK_NODE_LABEL</a></td>
 </tr>
             <tr id="grammar-production-literal" data-grammar-original="[7]  literal            ::= STRING_LITERAL_QUOTE (&#x27;^^&#x27; IRIREF | (&#x27;@&#x27; LANG) )?" data-grammar-expression="(&#x27;,&#x27;, [(&#x27;id&#x27;, &#x27;STRING_LITERAL_QUOTE&#x27;), (&#x27;?&#x27;, (&#x27;|&#x27;, [(&#x27;,&#x27;, [(&quot;&#x27;&quot;, &#x27;^^&#x27;), (&#x27;id&#x27;, &#x27;IRIREF&#x27;)]), (&#x27;,&#x27;, [(&quot;&#x27;&quot;, &#x27;@&#x27;), (&#x27;id&#x27;, &#x27;LANG&#x27;)])]))])" >
     <td>[7]</td>
--- a/nquads/nquads.bnf	Tue Aug 27 18:32:36 2013 -0700
+++ b/nquads/nquads.bnf	Wed Aug 28 08:34:31 2013 -0700
@@ -3,7 +3,7 @@
 [3]  subject            ::= IRIREF | BLANK_NODE_LABEL
 [4]  predicate          ::= IRIREF 
 [5]  object             ::= IRIREF | BLANK_NODE_LABEL | literal
-[6]  graphLabel         ::= IRIREF
+[6]  graphLabel         ::= IRIREF | BLANK_NODE_LABEL
 [7]  literal            ::= STRING_LITERAL_QUOTE ('^^' IRIREF | ('@' LANG) )?
 
 @terminals