n3 2.13.7 → 2.13.9
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 +2 -2
- package/browser/n3.min.js +2 -2
- package/lib/N3DataFactory.js +3 -2
- package/lib/N3Store.js +2 -1
- package/package.json +2 -2
- package/src/N3DataFactory.js +3 -2
- package/src/N3Store.js +5 -1
package/README.md
CHANGED
|
@@ -326,6 +326,9 @@ const streamParser = new N3.StreamParser(),
|
|
|
326
326
|
|
|
327
327
|
## Writing
|
|
328
328
|
|
|
329
|
+
`N3.Writer` writes each quad as it arrives, so it cannot write N3 formulas (graphs used as terms).
|
|
330
|
+
For full writing, including formulas, use [n3-full-writer](https://github.com/jeswr/n3-full-writer).
|
|
331
|
+
|
|
329
332
|
### From quads to a string
|
|
330
333
|
|
|
331
334
|
`N3.Writer` serializes quads as an RDF document.
|
|
@@ -620,6 +623,10 @@ They are maintained separately from N3.js; please report issues with them in the
|
|
|
620
623
|
| [n3.js-messages](https://www.npmjs.com/package/n3.js-messages) | Parses and writes [RDF Messages](https://w3c-cg.github.io/rsp/spec/messages) (message-delimited Turtle, TriG, N-Triples and N-Quads). |
|
|
621
624
|
| [@jeswr/n3-provenance](https://github.com/jeswr/n3-provenance) | Experimental. Maps the terms of parsed quads back to their source positions in the input document. Terms that the parser generates, such as list nodes and reification scaffolding, have no position. It builds on the parser's `onToken` and `onTokenEnd` callbacks, but also subclasses private parser and index internals, so it is pinned to a specific N3.js revision. |
|
|
622
625
|
| [n3-match-bgp](https://github.com/jeswr/n3-match-bgp) | Experimental. Matches basic graph patterns against a `Store`, or any RDF/JS dataset, and yields RDF/JS `Bindings`. It is being worked on as a consideration for the RDF/JS specifications, and will only move into N3.js if it lands there. On a `Store`, it joins on private index internals for speed. |
|
|
626
|
+
| [n3-full-writer](https://github.com/jeswr/n3-full-writer) | Experimental. Writes complete N3 documents, including formulas, by holding back the statements that use formulas until the end. It was proposed for N3.js in [#822](https://github.com/rdfjs/N3.js/pull/822). It extends `N3.Writer` and overrides private writer methods. |
|
|
627
|
+
|
|
628
|
+
Features intended for N3.js itself are considered once their specification is settled.
|
|
629
|
+
If you would like to see one of these packages in N3.js, please open an issue or discussion.
|
|
623
630
|
|
|
624
631
|
To list a package here, open a pull request that adds a row to this table.
|
|
625
632
|
|