@lde/pipeline 0.6.2 → 0.6.4
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.
|
@@ -4,6 +4,9 @@ import type { Quad, Stream } from '@rdfjs/types';
|
|
|
4
4
|
import type { Readable } from 'node:stream';
|
|
5
5
|
import { NotSupported } from '../step.js';
|
|
6
6
|
export { NotSupported } from '../step.js';
|
|
7
|
+
export interface Executor {
|
|
8
|
+
execute(dataset: ExecutableDataset): Promise<AsyncIterable<Quad> | NotSupported>;
|
|
9
|
+
}
|
|
7
10
|
/**
|
|
8
11
|
* A quad stream that is both an RDFJS Stream and Node.js Readable (async iterable).
|
|
9
12
|
* This is the actual return type from SparqlEndpointFetcher.fetchTriples().
|
|
@@ -40,7 +43,7 @@ export interface SparqlConstructExecutorOptions {
|
|
|
40
43
|
/**
|
|
41
44
|
* Options for `execute()`.
|
|
42
45
|
*/
|
|
43
|
-
export interface
|
|
46
|
+
export interface SparqlConstructExecuteOptions {
|
|
44
47
|
/**
|
|
45
48
|
* Explicit SPARQL endpoint URL. If not provided, uses the dataset's SPARQL distribution.
|
|
46
49
|
*/
|
|
@@ -82,7 +85,7 @@ export interface ExecuteOptions {
|
|
|
82
85
|
* }
|
|
83
86
|
* ```
|
|
84
87
|
*/
|
|
85
|
-
export declare class SparqlConstructExecutor {
|
|
88
|
+
export declare class SparqlConstructExecutor implements Executor {
|
|
86
89
|
private readonly query;
|
|
87
90
|
private readonly fetcher;
|
|
88
91
|
constructor(options: SparqlConstructExecutorOptions);
|
|
@@ -93,7 +96,7 @@ export declare class SparqlConstructExecutor {
|
|
|
93
96
|
* @param options Optional endpoint override and variable bindings.
|
|
94
97
|
* @returns AsyncIterable<Quad> stream of results, or NotSupported if no SPARQL endpoint available.
|
|
95
98
|
*/
|
|
96
|
-
execute(dataset: ExecutableDataset, options?:
|
|
99
|
+
execute(dataset: ExecutableDataset, options?: SparqlConstructExecuteOptions): Promise<QuadStream | NotSupported>;
|
|
97
100
|
/**
|
|
98
101
|
* Substitute template variables in the query.
|
|
99
102
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executor.d.ts","sourceRoot":"","sources":["../../src/sparql/executor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACjD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAG5C,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAG1C,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C;;;GAGG;AACH,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC;AAEjD;;GAEG;AACH,MAAM,WAAW,iBAAkB,SAAQ,OAAO;IAChD;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,8BAA8B;IAC7C;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,OAAO,CAAC,EAAE,qBAAqB,CAAC;CACjC;AAED;;GAEG;AACH,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"executor.d.ts","sourceRoot":"","sources":["../../src/sparql/executor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACjD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAG5C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AAE,IAAI,CAAC,8BAA8B,EAAE,OAAO,CAAC,GACtD,OAAO,CAAC,uBAAuB,CAAC;CAIpC;AAED;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,MAAM,EACb,YAAY,EAAE,YAAY,GAAG,IAAI,EACjC,OAAO,EAAE,iBAAiB,GACzB,MAAM,CAYR;AAED;;GAEG;AACH,wBAAsB,aAAa,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAErE"}
|
package/dist/sparql/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { SparqlConstructExecutor, substituteQueryTemplates, NotSupported, readQueryFile, type ExecutableDataset, type
|
|
1
|
+
export { SparqlConstructExecutor, substituteQueryTemplates, NotSupported, readQueryFile, type ExecutableDataset, type Executor, type SparqlConstructExecuteOptions, type SparqlConstructExecutorOptions, type QuadStream, } from './executor.js';
|
|
2
2
|
export { collect } from './collect.js';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -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,iBAAiB,EACtB,KAAK,
|
|
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,iBAAiB,EACtB,KAAK,QAAQ,EACb,KAAK,6BAA6B,EAClC,KAAK,8BAA8B,EACnC,KAAK,UAAU,GAChB,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lde/pipeline",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.4",
|
|
4
4
|
"repository": {
|
|
5
5
|
"url": "https://github.com/ldengine/lde",
|
|
6
6
|
"directory": "packages/pipeline"
|
|
@@ -35,10 +35,10 @@
|
|
|
35
35
|
"!**/*.tsbuildinfo"
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@lde/dataset": "0.6.
|
|
39
|
-
"@lde/dataset-registry-client": "0.6.
|
|
40
|
-
"@lde/sparql-importer": "0.2.
|
|
41
|
-
"@lde/sparql-server": "0.4.
|
|
38
|
+
"@lde/dataset": "0.6.2",
|
|
39
|
+
"@lde/dataset-registry-client": "0.6.4",
|
|
40
|
+
"@lde/sparql-importer": "0.2.2",
|
|
41
|
+
"@lde/sparql-server": "0.4.2",
|
|
42
42
|
"@rdfjs/types": "^2.0.1",
|
|
43
43
|
"c12": "^3.0.2",
|
|
44
44
|
"fetch-sparql-endpoint": "^6.0.0",
|