n3 1.26.0 → 2.0.0-beta.2
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 +0 -7
- package/browser/n3.min.js +1 -1
- package/lib/IRIs.js +4 -3
- package/lib/N3DataFactory.js +34 -6
- package/lib/N3Lexer.js +35 -17
- package/lib/N3Parser.js +206 -44
- package/lib/N3Store.js +23 -24
- package/lib/N3Util.js +0 -6
- package/lib/N3Writer.js +11 -9
- package/lib/index.js +2 -9
- package/package.json +24 -12
- package/src/IRIs.js +7 -6
- package/src/N3DataFactory.js +38 -9
- package/src/N3Lexer.js +37 -17
- package/src/N3Parser.js +229 -53
- package/src/N3Store.js +21 -22
- package/src/N3Util.js +0 -5
- package/src/N3Writer.js +11 -7
- package/src/index.js +0 -3
- package/lib/BaseIRI.js +0 -93
- package/lib/Util.js +0 -9
- package/src/BaseIRI.js +0 -101
- package/src/Util.js +0 -3
package/README.md
CHANGED
|
@@ -159,13 +159,6 @@ prefix or, if set to an empty string, completely disable prefixing:
|
|
|
159
159
|
const parser = new N3.Parser({ blankNodePrefix: '' });
|
|
160
160
|
```
|
|
161
161
|
|
|
162
|
-
The parser can output a backwards chaining rule such as `_:q <= _:p.` in two ways:
|
|
163
|
-
- as `_:p log:implies _:q.` (default)
|
|
164
|
-
- as `_:q log:isImpliedBy _:p.` (when the `isImpliedBy` flag is set to `true`)
|
|
165
|
-
```JavaScript
|
|
166
|
-
const parser = new N3.Parser({ isImpliedBy: true });
|
|
167
|
-
```
|
|
168
|
-
|
|
169
162
|
### From an RDF stream to quads
|
|
170
163
|
|
|
171
164
|
`N3.Parser` can parse [Node.js streams](http://nodejs.org/api/stream.html) as they grow,
|