n3 1.16.3 → 1.16.4

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/lib/N3Parser.js CHANGED
@@ -99,7 +99,7 @@ class N3Parser {
99
99
  this._inversePredicate = false; // In N3, blank nodes are scoped to a formula
100
100
  // (using a dot as separator, as a blank node label cannot start with it)
101
101
 
102
- this._prefixes._ = this._graph ? `${this._graph.id.substr(2)}.` : '.'; // Quantifiers are scoped to a formula
102
+ this._prefixes._ = this._graph ? `${this._graph.value}.` : '.'; // Quantifiers are scoped to a formula
103
103
 
104
104
  this._quantified = Object.create(this._quantified);
105
105
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n3",
3
- "version": "1.16.3",
3
+ "version": "1.16.4",
4
4
  "description": "Lightning fast, asynchronous, streaming Turtle / N3 / RDF library.",
5
5
  "author": "Ruben Verborgh <ruben.verborgh@gmail.com>",
6
6
  "keywords": [
@@ -32,6 +32,7 @@
32
32
  "@babel/core": "^7.16.0",
33
33
  "@babel/preset-env": "^7.16.0",
34
34
  "@babel/register": "^7.16.0",
35
+ "@rdfjs/data-model": "^1",
35
36
  "arrayify-stream": "^1.0.0",
36
37
  "browserify": "^17.0.0",
37
38
  "chai": "^4.0.2",
@@ -42,6 +43,7 @@
42
43
  "mocha": "^8.0.0",
43
44
  "nyc": "^14.1.1",
44
45
  "pre-commit": "^1.2.2",
46
+ "rdf-isomorphic": "^1.3.1",
45
47
  "rdf-test-suite": "^1.19.2",
46
48
  "streamify-string": "^1.0.1",
47
49
  "uglify-js": "^3.14.3"
package/src/N3Parser.js CHANGED
@@ -86,7 +86,7 @@ export default class N3Parser {
86
86
  this._inversePredicate = false;
87
87
  // In N3, blank nodes are scoped to a formula
88
88
  // (using a dot as separator, as a blank node label cannot start with it)
89
- this._prefixes._ = (this._graph ? `${this._graph.id.substr(2)}.` : '.');
89
+ this._prefixes._ = (this._graph ? `${this._graph.value}.` : '.');
90
90
  // Quantifiers are scoped to a formula
91
91
  this._quantified = Object.create(this._quantified);
92
92
  }