Skip to content

Commit

Permalink
Update Turtle grammar for Triple Term to be `<<(ttSubject verb ttObje…
Browse files Browse the repository at this point in the history
…ct)>>` instead of `<<(ttSubject predicate ttObject)>>`. This allows `a` in addition to an IRI.
  • Loading branch information
gkellogg committed Sep 7, 2024
1 parent bc0650c commit af0e1ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spec/turtle-bnf.html
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@
<td>[27]</td>
<td><code>tripleTerm</code></td>
<td>::=</td>
<td>'<code class="grammar-literal">&lt;&lt;(</code>' <a href="#grammar-production-ttSubject">ttSubject</a> <a href="#grammar-production-predicate">predicate</a> <a href="#grammar-production-ttObject">ttObject</a> '<code class="grammar-literal">)&gt;&gt;</code>'</td>
<td>'<code class="grammar-literal">&lt;&lt;(</code>' <a href="#grammar-production-ttSubject">ttSubject</a> <a href="#grammar-production-verb">verb</a> <a href="#grammar-production-ttObject">ttObject</a> '<code class="grammar-literal">)&gt;&gt;</code>'</td>
</tr>
<tr id="grammar-production-ttSubject">
<td>[28]</td>
Expand Down
2 changes: 1 addition & 1 deletion spec/turtle.bnf
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ PrefixedName ::= PNAME_LN | PNAME_NS
BlankNode ::= BLANK_NODE_LABEL | ANON
reifier ::= '~' (iri | BlankNode)?
reifiedTriple ::= '<<' (subject | reifiedTriple) verb object reifier? '>>'
tripleTerm ::= '<<(' ttSubject predicate ttObject ')>>'
tripleTerm ::= '<<(' ttSubject verb ttObject ')>>'
ttSubject ::= iri | BlankNode
ttObject ::= iri | BlankNode | literal | tripleTerm
annotation ::= (reifier | annotationBlock)*
Expand Down

0 comments on commit af0e1ed

Please sign in to comment.