n3 3.0.0-alpha.2 → 3.0.0-alpha.3
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 +8 -9
- package/browser/n3.esm.min.js +1 -1
- package/browser/n3.min.js +1 -1
- package/lib/N3Parser.js +2 -2
- package/lib/N3Writer.js +1 -1
- package/package.json +1 -1
- package/src/N3Parser.js +2 -2
- package/src/N3Writer.js +1 -1
package/lib/N3Parser.js
CHANGED
|
@@ -61,8 +61,8 @@ class N3Parser {
|
|
|
61
61
|
});
|
|
62
62
|
// Disable explicit quantifiers by default
|
|
63
63
|
this._explicitQuantifiers = !!options.explicitQuantifiers;
|
|
64
|
-
//
|
|
65
|
-
this._formulaScopedBlankNodes =
|
|
64
|
+
// Scope blank node labels to formulas only, unless explicitly disabled
|
|
65
|
+
this._formulaScopedBlankNodes = options.formulaScopedBlankNodes !== false;
|
|
66
66
|
// Disable parsing of unsupported versions by default
|
|
67
67
|
this._parseUnsupportedVersions = !!options.parseUnsupportedVersions;
|
|
68
68
|
this._version = options.version;
|
package/lib/N3Writer.js
CHANGED
|
@@ -79,7 +79,7 @@ class N3Writer {
|
|
|
79
79
|
this._prefixIRIs = Object.create(null);
|
|
80
80
|
if (options.baseIRI) {
|
|
81
81
|
this._baseIri = new _BaseIRI.default(options.baseIRI);
|
|
82
|
-
if (options.writeBase) this._write(`@base <${options.baseIRI}>.\n`);
|
|
82
|
+
if (options.writeBase !== false) this._write(`@base <${options.baseIRI}>.\n`);
|
|
83
83
|
}
|
|
84
84
|
options.prefixes && this.addPrefixes(options.prefixes);
|
|
85
85
|
} else {
|
package/package.json
CHANGED
package/src/N3Parser.js
CHANGED
|
@@ -50,8 +50,8 @@ export default class N3Parser {
|
|
|
50
50
|
this._lexer = options.lexer || new N3Lexer({ lineMode: isLineMode, n3: isN3, isImpliedBy: this._isImpliedBy });
|
|
51
51
|
// Disable explicit quantifiers by default
|
|
52
52
|
this._explicitQuantifiers = !!options.explicitQuantifiers;
|
|
53
|
-
//
|
|
54
|
-
this._formulaScopedBlankNodes =
|
|
53
|
+
// Scope blank node labels to formulas only, unless explicitly disabled
|
|
54
|
+
this._formulaScopedBlankNodes = options.formulaScopedBlankNodes !== false;
|
|
55
55
|
// Disable parsing of unsupported versions by default
|
|
56
56
|
this._parseUnsupportedVersions = !!options.parseUnsupportedVersions;
|
|
57
57
|
this._version = options.version;
|
package/src/N3Writer.js
CHANGED
|
@@ -61,7 +61,7 @@ export default class N3Writer {
|
|
|
61
61
|
this._prefixIRIs = Object.create(null);
|
|
62
62
|
if (options.baseIRI) {
|
|
63
63
|
this._baseIri = new BaseIRI(options.baseIRI);
|
|
64
|
-
if (options.writeBase)
|
|
64
|
+
if (options.writeBase !== false)
|
|
65
65
|
this._write(`@base <${options.baseIRI}>.\n`);
|
|
66
66
|
}
|
|
67
67
|
options.prefixes && this.addPrefixes(options.prefixes);
|