n3 1.18.0 → 1.19.0
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 +3 -3
- package/browser/n3.min.js +1 -1
- package/lib/N3Store.js +200 -7
- package/lib/N3Writer.js +3 -3
- package/package.json +1 -1
- package/src/N3Store.js +231 -7
- package/src/N3Writer.js +4 -3
package/README.md
CHANGED
|
@@ -306,8 +306,8 @@ const store1 = new N3.Store([], { entityIndex });
|
|
|
306
306
|
const store2 = new N3.Store([], { entityIndex });
|
|
307
307
|
```
|
|
308
308
|
|
|
309
|
-
### [`
|
|
310
|
-
This store adheres to the `
|
|
309
|
+
### [`Dataset` Interface](https://rdf.js.org/dataset-spec/#dataset-interface)
|
|
310
|
+
This store adheres to the `Dataset` interface which exposes the following properties
|
|
311
311
|
|
|
312
312
|
Attributes:
|
|
313
313
|
- `size` — A non-negative integer that specifies the number of quads in the set.
|
|
@@ -320,7 +320,7 @@ Methods:
|
|
|
320
320
|
- `[Symbol.iterator]` — Implements the iterator protocol to allow iteration over all `quads` in the dataset as in the example above.
|
|
321
321
|
|
|
322
322
|
### Addition and deletion of quads
|
|
323
|
-
The store
|
|
323
|
+
The store implements the following manipulation methods in addition to the standard [`Dataset` Interface](https://rdf.js.org/dataset-spec/#dataset-interface)
|
|
324
324
|
([documentation](http://rdfjs.github.io/N3.js/docs/N3Store.html)):
|
|
325
325
|
- `addQuad` to insert one quad
|
|
326
326
|
- `addQuads` to insert an array of quads
|