@lde/pipeline 0.6.16 → 0.6.17
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/dist/sparql/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export { SparqlConstructExecutor, substituteQueryTemplates, NotSupported, readQueryFile, type ExecuteOptions, type Executor, type SparqlConstructExecutorOptions, type QuadStream, type VariableBindings, } from './executor.js';
|
|
2
|
-
export { collect } from './collect.js';
|
|
3
2
|
export { SparqlSelector, type SparqlSelectorOptions } from './selector.js';
|
|
4
3
|
export { injectValues } from './values.js';
|
|
5
4
|
export { withDefaultGraph } from './graph.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/sparql/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,wBAAwB,EACxB,YAAY,EACZ,aAAa,EACb,KAAK,cAAc,EACnB,KAAK,QAAQ,EACb,KAAK,8BAA8B,EACnC,KAAK,UAAU,EACf,KAAK,gBAAgB,GACtB,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/sparql/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,wBAAwB,EACxB,YAAY,EACZ,aAAa,EACb,KAAK,cAAc,EACnB,KAAK,QAAQ,EACb,KAAK,8BAA8B,EACnC,KAAK,UAAU,EACf,KAAK,gBAAgB,GACtB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,cAAc,EAAE,KAAK,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAE3E,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC"}
|
package/dist/sparql/index.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export { SparqlConstructExecutor, substituteQueryTemplates, NotSupported, readQueryFile, } from './executor.js';
|
|
2
|
-
export { collect } from './collect.js';
|
|
3
2
|
export { SparqlSelector } from './selector.js';
|
|
4
3
|
export { injectValues } from './values.js';
|
|
5
4
|
export { withDefaultGraph } from './graph.js';
|
package/package.json
CHANGED
package/dist/sparql/collect.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { Store } from 'n3';
|
|
2
|
-
import type { QuadStream } from './executor.js';
|
|
3
|
-
/**
|
|
4
|
-
* Collect all quads from a stream into an N3 Store.
|
|
5
|
-
*
|
|
6
|
-
* @param stream The quad stream to collect from.
|
|
7
|
-
* @returns Promise that resolves to a Store containing all quads.
|
|
8
|
-
*
|
|
9
|
-
* @example
|
|
10
|
-
* ```typescript
|
|
11
|
-
* const result = await executor.execute(dataset);
|
|
12
|
-
* if (!(result instanceof NotSupported)) {
|
|
13
|
-
* const store = await collect(result);
|
|
14
|
-
* console.log(`Collected ${store.size} quads`);
|
|
15
|
-
* }
|
|
16
|
-
* ```
|
|
17
|
-
*/
|
|
18
|
-
export declare function collect(stream: QuadStream): Promise<Store>;
|
|
19
|
-
//# sourceMappingURL=collect.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"collect.d.ts","sourceRoot":"","sources":["../../src/sparql/collect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,IAAI,CAAC;AAC3B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,OAAO,CAAC,MAAM,EAAE,UAAU,GAAG,OAAO,CAAC,KAAK,CAAC,CAMhE"}
|
package/dist/sparql/collect.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { Store } from 'n3';
|
|
2
|
-
/**
|
|
3
|
-
* Collect all quads from a stream into an N3 Store.
|
|
4
|
-
*
|
|
5
|
-
* @param stream The quad stream to collect from.
|
|
6
|
-
* @returns Promise that resolves to a Store containing all quads.
|
|
7
|
-
*
|
|
8
|
-
* @example
|
|
9
|
-
* ```typescript
|
|
10
|
-
* const result = await executor.execute(dataset);
|
|
11
|
-
* if (!(result instanceof NotSupported)) {
|
|
12
|
-
* const store = await collect(result);
|
|
13
|
-
* console.log(`Collected ${store.size} quads`);
|
|
14
|
-
* }
|
|
15
|
-
* ```
|
|
16
|
-
*/
|
|
17
|
-
export async function collect(stream) {
|
|
18
|
-
const store = new Store();
|
|
19
|
-
for await (const quad of stream) {
|
|
20
|
-
store.addQuad(quad);
|
|
21
|
-
}
|
|
22
|
-
return store;
|
|
23
|
-
}
|