n3 2.11.2 → 2.11.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/README.md +7 -0
- package/browser/n3.esm.min.js +12 -12
- package/browser/n3.min.js +12 -12
- package/lib/N3Lexer.js +11 -0
- package/lib/N3Parser.js +24 -18
- package/lib/N3Writer.js +35 -9
- package/lib/Util.js +1 -1
- package/package.json +1 -1
- package/src/N3Lexer.js +14 -0
- package/src/N3Parser.js +26 -18
- package/src/N3Writer.js +38 -12
- package/src/Util.js +1 -1
package/README.md
CHANGED
|
@@ -234,6 +234,13 @@ matching N3's formula-scoped blank node semantics
|
|
|
234
234
|
const parser = new N3.Parser({ format: 'N3', formulaScopedBlankNodes: true });
|
|
235
235
|
```
|
|
236
236
|
|
|
237
|
+
The parser rejects triple terms nested more than 1024 levels deep,
|
|
238
|
+
so that the resulting quads stay within what the store and writer can traverse.
|
|
239
|
+
The `maxTripleTermDepth` option changes this limit (`Infinity` removes it):
|
|
240
|
+
```JavaScript
|
|
241
|
+
const parser = new N3.Parser({ maxTripleTermDepth: 64 });
|
|
242
|
+
```
|
|
243
|
+
|
|
237
244
|
### From an RDF stream to quads
|
|
238
245
|
|
|
239
246
|
`N3.Parser` can parse [Node.js streams](http://nodejs.org/api/stream.html) as they grow,
|