n3 2.11.2 → 3.0.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/N3Parser.js CHANGED
@@ -37,7 +37,8 @@ export default class N3Parser {
37
37
  // Whether the log:isImpliedBy predicate is supported
38
38
  this._isImpliedBy = options.isImpliedBy;
39
39
  // Whether an undeclared empty prefix resolves against the document IRI
40
- this._implicitEmptyPrefix = !!options.implicitEmptyPrefix;
40
+ // (enabled unless explicitly disabled)
41
+ this._implicitEmptyPrefix = options.implicitEmptyPrefix !== false;
41
42
  // Whether an empty formula is read as the boolean literal true,
42
43
  // as in the N3 spec tests (opt-in until the next major version)
43
44
  this._emptyFormulaAsTrue = !!options.emptyFormulaAsTrue;