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/README.md +5 -3
- package/browser/n3.esm.min.js +12 -12
- package/browser/n3.min.js +12 -12
- package/lib/N3Lexer.js +133 -148
- package/lib/N3Parser.js +2 -1
- package/package.json +29 -2
- package/src/N3Lexer.js +142 -162
- package/src/N3Parser.js +2 -1
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
|
-
|
|
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;
|