Skip to content

Commit 03ff9b4

Browse files
committed
Rename _getTripleEndReader to _getContextEndReader.
This name better reflects its current functionality.
1 parent cf1511a commit 03ff9b4

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

lib/N3Parser.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -294,9 +294,9 @@ N3Parser.prototype = {
294294
return;
295295
// In N3 mode, the object might be a path
296296
if (this._n3Mode)
297-
return this._getPathReader(this._getTripleEndReader());
297+
return this._getPathReader(this._getContextEndReader());
298298
}
299-
return this._getTripleEndReader();
299+
return this._getContextEndReader();
300300
},
301301

302302
// ### `_readPredicateOrNamedGraph` reads a triple's predicate, or a named graph
@@ -343,7 +343,7 @@ N3Parser.prototype = {
343343
return empty ? this._readPredicateOrNamedGraph : this._readPredicateAfterBlank;
344344
// If the blank node was the object, restore previous context and read punctuation
345345
else
346-
return this._getTripleEndReader();
346+
return this._getContextEndReader();
347347
},
348348

349349
// ### `_readPredicateAfterBlank` reads a predicate after an anonymous blank node
@@ -396,7 +396,7 @@ N3Parser.prototype = {
396396
}
397397
// The list was in the parent context's object
398398
else {
399-
next = this._getTripleEndReader();
399+
next = this._getContextEndReader();
400400
// No list tail if this was an empty list
401401
if (this._object === RDF_NIL)
402402
return next;
@@ -482,9 +482,9 @@ N3Parser.prototype = {
482482
this._triple(this._subject, RDF_FIRST, this._object, this._graph);
483483
// Continue with the rest of the input
484484
if (suffix)
485-
return this._getTripleEndReader();
485+
return this._getContextEndReader();
486486
else {
487-
this._readCallback = this._getTripleEndReader();
487+
this._readCallback = this._getContextEndReader();
488488
return this._readCallback(token);
489489
}
490490
},
@@ -502,7 +502,7 @@ N3Parser.prototype = {
502502
this._restoreContext();
503503
// If the formula was the subject, continue reading the predicate.
504504
// If the formula was the object, read punctuation.
505-
return this._object === null ? this._readPredicate : this._getTripleEndReader();
505+
return this._object === null ? this._readPredicate : this._getContextEndReader();
506506
},
507507

508508
// ### `_readPunctuation` reads punctuation between triples or triple parts
@@ -682,7 +682,7 @@ N3Parser.prototype = {
682682
this._subject = null;
683683
}
684684
// Read a dot
685-
this._readCallback = this._getTripleEndReader();
685+
this._readCallback = this._getContextEndReader();
686686
return this._readCallback(token);
687687
}
688688
},
@@ -750,8 +750,8 @@ N3Parser.prototype = {
750750
return this._readPath;
751751
},
752752

753-
// ### `_getTripleEndReader` gets the next reader function at the end of a triple
754-
_getTripleEndReader: function () {
753+
// ### `_getContextEndReader` gets the next reader function at the end of a context
754+
_getContextEndReader: function () {
755755
var contextStack = this._contextStack;
756756
if (!contextStack.length)
757757
return this._readPunctuation;

0 commit comments

Comments
 (0)