Skip to content

Commit 0539be9

Browse files
committed
chore: clarify use of graph term in quoted quads
1 parent 2f0f57d commit 0539be9

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/N3Parser.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,8 @@ export default class N3Parser {
641641

642642
this._saveContext('{|', this._graph, this._subject, this._predicate, this._object);
643643

644-
// Note - we always use the default graph for the quoted triple component
644+
// As a convention we use set the graph term as the Default Graph in quads representing quoted triples
645+
// see https://github.com/rdfjs/N3.js/pull/311#discussion_r1061039556 for details
645646
this._subject = this._quad(this._subject, this._predicate, this._object, this.DEFAULTGRAPH);
646647
this._predicate = null;
647648
this._object = null;
@@ -899,7 +900,8 @@ export default class N3Parser {
899900
if (token.type === '{|') {
900901
this._saveContext('{|', this._graph, this._subject, this._predicate, this._object);
901902

902-
// Note - we always use the default graph for the quoted triple component
903+
// As a convention we use set the graph term as the Default Graph in quads representing quoted triples
904+
// see https://github.com/rdfjs/N3.js/pull/311#discussion_r1061039556 for details
903905
this._subject = this._quad(this._subject, this._predicate, this._object, this.DEFAULTGRAPH);
904906
this._predicate = null;
905907
this._object = null;

0 commit comments

Comments
 (0)