@lde/pipeline-void 0.2.28 → 0.2.29

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.
@@ -1,4 +1,4 @@
1
- import { Stage, SparqlSelector, SparqlConstructExecutor, readQueryFile, } from '@lde/pipeline';
1
+ import { Stage, SparqlItemSelector, SparqlConstructExecutor, readQueryFile, } from '@lde/pipeline';
2
2
  import { resolve, dirname } from 'node:path';
3
3
  import { fileURLToPath } from 'node:url';
4
4
  const __dirname = dirname(fileURLToPath(import.meta.url));
@@ -14,7 +14,7 @@ async function createPerClassStage(queryFilename) {
14
14
  const executor = new SparqlConstructExecutor({ query: rawQuery });
15
15
  return new Stage({
16
16
  name: queryFilename,
17
- selector: (distribution) => {
17
+ itemSelector: (distribution) => {
18
18
  const subjectFilter = distribution.subjectFilter ?? '';
19
19
  const fromClause = distribution.namedGraph
20
20
  ? `FROM <${distribution.namedGraph}>`
@@ -25,7 +25,7 @@ async function createPerClassStage(queryFilename) {
25
25
  `WHERE { ${subjectFilter} ?s a ?class . }`,
26
26
  'LIMIT 1000',
27
27
  ].join('\n');
28
- return new SparqlSelector({
28
+ return new SparqlItemSelector({
29
29
  query: selectorQuery,
30
30
  endpoint: distribution.accessUrl,
31
31
  pageSize: 1000,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lde/pipeline-void",
3
- "version": "0.2.28",
3
+ "version": "0.2.29",
4
4
  "description": "VOiD (Vocabulary of Interlinked Datasets) statistical analysis for RDF datasets",
5
5
  "repository": {
6
6
  "url": "https://github.com/ldengine/lde",
@@ -24,7 +24,7 @@
24
24
  "!**/*.tsbuildinfo"
25
25
  ],
26
26
  "dependencies": {
27
- "@lde/pipeline": "0.6.26",
27
+ "@lde/pipeline": "0.6.27",
28
28
  "@rdfjs/types": "^2.0.1",
29
29
  "n3": "^1.17.0",
30
30
  "tslib": "^2.3.0"