n3 1.17.1 → 1.17.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 +10 -6
- package/browser/n3.min.js +1 -1
- package/lib/IRIs.js +4 -5
- package/lib/N3DataFactory.js +121 -138
- package/lib/N3Lexer.js +107 -140
- package/lib/N3Parser.js +275 -403
- package/lib/N3Store.js +295 -318
- package/lib/N3StreamParser.js +12 -15
- package/lib/N3StreamWriter.js +7 -11
- package/lib/N3Util.js +19 -25
- package/lib/N3Writer.js +122 -152
- package/lib/index.js +4 -18
- package/package.json +42 -18
- package/src/N3DataFactory.js +32 -25
- package/src/N3Lexer.js +1 -1
- package/src/N3Store.js +69 -50
- package/src/N3StreamParser.js +1 -1
package/README.md
CHANGED
|
@@ -282,14 +282,18 @@ Then, we find triples with `:Mickey` as subject.
|
|
|
282
282
|
```JavaScript
|
|
283
283
|
const store = new N3.Store();
|
|
284
284
|
store.add(
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
285
|
+
quad(
|
|
286
|
+
namedNode('http://ex.org/Pluto'),
|
|
287
|
+
namedNode('http://ex.org/type'),
|
|
288
|
+
namedNode('http://ex.org/Dog')
|
|
289
|
+
)
|
|
288
290
|
);
|
|
289
291
|
store.add(
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
292
|
+
quad(
|
|
293
|
+
namedNode('http://ex.org/Mickey'),
|
|
294
|
+
namedNode('http://ex.org/type'),
|
|
295
|
+
namedNode('http://ex.org/Mouse')
|
|
296
|
+
)
|
|
293
297
|
);
|
|
294
298
|
|
|
295
299
|
// Retrieve all quads
|