@vortex-rdf/vortex-rdf-store 0.2.0 → 0.2.1
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 +4 -4
- package/entry/browser.d.ts +0 -2
- package/entry/browser.js +0 -2
- package/entry/node.d.ts +0 -2
- package/entry/node.js +0 -2
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -165,14 +165,14 @@ The default `{ builder: 'Unsorted', layout: 'Dictionary' }` already gives compac
|
|
|
165
165
|
For one-shot conversions without holding a store:
|
|
166
166
|
|
|
167
167
|
```javascript
|
|
168
|
-
import { rdf_to_vortex, vortex_to_rdf
|
|
168
|
+
import { rdf_to_vortex, vortex_to_rdf } from '@vortex-rdf/vortex-rdf-store';
|
|
169
169
|
|
|
170
170
|
const bytes = await rdf_to_vortex(turtleText, 'turtle', { builder: 'Sorted' });
|
|
171
171
|
const text = await vortex_to_rdf(bytes, 'nquads');
|
|
172
172
|
|
|
173
|
-
// N-Quads
|
|
174
|
-
const bytes2 = await
|
|
175
|
-
const text2 = await
|
|
173
|
+
// N-Quads is just another format
|
|
174
|
+
const bytes2 = await rdf_to_vortex(nquadsText, 'nquads');
|
|
175
|
+
const text2 = await vortex_to_rdf(bytes2, 'nquads');
|
|
176
176
|
```
|
|
177
177
|
|
|
178
178
|
### TypeScript support
|
package/entry/browser.d.ts
CHANGED
package/entry/browser.js
CHANGED
package/entry/node.d.ts
CHANGED
package/entry/node.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vortex-rdf/vortex-rdf-store",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "High-performance, zero-copy columnar RDF serialization format",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
@@ -34,7 +34,8 @@
|
|
|
34
34
|
"prepublishOnly": "npm run build",
|
|
35
35
|
"test": "vitest run",
|
|
36
36
|
"bench": "tsx --expose-gc --max-old-space-size=8192 bench/compare.bench.ts",
|
|
37
|
-
"bench:build": "npm run build && npm run bench"
|
|
37
|
+
"bench:build": "npm run build && npm run bench",
|
|
38
|
+
"bench:codspeed": "tsx --expose-gc bench/codspeed.bench.ts"
|
|
38
39
|
},
|
|
39
40
|
"keywords": [
|
|
40
41
|
"rdf",
|