@lde/search-pipeline 0.29.3 → 0.30.0

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.
@@ -100,8 +100,9 @@ export interface SearchStagesOptions {
100
100
  export declare function searchStages(options: SearchStagesOptions): Stage<TypedSearchDocument>[];
101
101
  /**
102
102
  * An {@link ItemSelector} that selects every instance of a root type’s source
103
- * class: `SELECT ?‹rootVariable› WHERE { ?‹rootVariable› a <class> }`. A
104
- * convenience for the **object grain**, where {@link RootType.class} really is
103
+ * class:
104
+ * `SELECT DISTINCT ?‹rootVariable› WHERE { ?‹rootVariable› a <class> FILTER(!isBlank(?‹rootVariable›)) }`.
105
+ * A convenience for the **object grain**, where {@link RootType.class} really is
105
106
  * the source class – **not** a default: root selection is a deployment concern,
106
107
  * and three of the Dataset Register’s four catalog types have no source class at
107
108
  * all (their entry point – “registered, newest registration, has a title” – is a
@@ -1 +1 @@
1
- {"version":3,"file":"search-stages.d.ts","sourceRoot":"","sources":["../src/search-stages.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,KAAK,EAEL,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,YAAY,EAClB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAgB,KAAK,QAAQ,EAAE,KAAK,YAAY,EAAE,MAAM,aAAa,CAAC;AAE7E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAEtE,kDAAkD;AAClD,MAAM,WAAW,eAAe;IAC9B;;;;;;OAMG;IACH,UAAU,EAAE,QAAQ,CAAC;IACrB;;;;;OAKG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,YAAY,EAAE,YAAY,CAAC;IAC3B;;;;;;;;OAQG;IACH,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB;;;;;;;;;;;;;;;OAeG;IACH,SAAS,CAAC,EAAE,aAAa,CAAC,aAA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;;;;;;OAMG;IACH,UAAU,EAAE,QAAQ,CAAC;IACrB;;;;;OAKG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,YAAY,EAAE,YAAY,CAAC;IAC3B;;;;;;;;OAQG;IACH,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB;;;;;;;;;;;;;;;OAeG;IACH,SAAS,CAAC,EAAE,aAAa,CAAC,aAAa,CAAC,GAAG,aAAa,CAAC,aAAa,CAAC,EAAE,CAAC;IAC1E;;;;;OAKG;IACH,SAAS,CAAC,EAAE,YAAY,CAAC,mBAAmB,CAAC,CAAC,WAAW,CAAC,CAAC;IAC3D;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,8EAA8E;IAC9E,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,wCAAwC;AACxC,MAAM,WAAW,mBAAmB;IAClC;;;OAGG;IACH,MAAM,EAAE,YAAY,CAAC;IACrB,4DAA4D;IAC5D,KAAK,EAAE,SAAS,eAAe,EAAE,CAAC;CACnC;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,YAAY,CAC1B,OAAO,EAAE,mBAAmB,GAC3B,KAAK,CAAC,mBAAmB,CAAC,EAAE,CA6E9B;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,aAAa,CAC3B,UAAU,EAAE,QAAQ,EACpB,YAAY,SAAS,GACpB,YAAY,CAId;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,wBAAgB,cAAc,CAC5B,QAAQ,EAAE,GAAG,GACZ,WAAW,CAAC,eAAe,CAAC,WAAW,CAAC,CAAC,CAE3C"}
@@ -84,8 +84,9 @@ export function searchStages(options) {
84
84
  }
85
85
  /**
86
86
  * An {@link ItemSelector} that selects every instance of a root type’s source
87
- * class: `SELECT ?‹rootVariable› WHERE { ?‹rootVariable› a <class> }`. A
88
- * convenience for the **object grain**, where {@link RootType.class} really is
87
+ * class:
88
+ * `SELECT DISTINCT ?‹rootVariable› WHERE { ?‹rootVariable› a <class> FILTER(!isBlank(?‹rootVariable›)) }`.
89
+ * A convenience for the **object grain**, where {@link RootType.class} really is
89
90
  * the source class – **not** a default: root selection is a deployment concern,
90
91
  * and three of the Dataset Register’s four catalog types have no source class at
91
92
  * all (their entry point – “registered, newest registration, has a title” – is a
@@ -103,7 +104,7 @@ export function searchStages(options) {
103
104
  */
104
105
  export function selectByClass(searchType, rootVariable = 'root') {
105
106
  return new SparqlItemSelector({
106
- query: `SELECT ?${rootVariable} WHERE { ?${rootVariable} a <${searchType.class}> FILTER(!isBlank(?${rootVariable})) }`,
107
+ query: `SELECT DISTINCT ?${rootVariable} WHERE { ?${rootVariable} a <${searchType.class}> FILTER(!isBlank(?${rootVariable})) }`,
107
108
  });
108
109
  }
109
110
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lde/search-pipeline",
3
- "version": "0.29.3",
3
+ "version": "0.30.0",
4
4
  "description": "Search indexing as an @lde/pipeline instance: a Writer<Quad> that applies the @lde/search projection to extracted RDF and fans each document out to the transactional engine writer for its type's collection. Glue between the pipeline quad world and the search-engine document world; owns no projection or engine logic itself.",
5
5
  "repository": {
6
6
  "url": "git+https://github.com/ldelements/lde.git",
@@ -25,21 +25,21 @@
25
25
  "!**/*.tsbuildinfo"
26
26
  ],
27
27
  "dependencies": {
28
- "@lde/search": "^0.27.1",
28
+ "@lde/search": "^0.28.0",
29
29
  "@traqula/generator-sparql-1-1": "^1.3.1",
30
30
  "@traqula/parser-sparql-1-1": "^1.3.1",
31
31
  "@traqula/rules-sparql-1-1": "^1.2.0",
32
32
  "tslib": "^2.3.0"
33
33
  },
34
34
  "devDependencies": {
35
- "@lde/search-typesense": "^0.32.3",
35
+ "@lde/search-typesense": "^0.33.0",
36
36
  "@rdfjs/types": "^2.0.1",
37
37
  "n3": "^2.7.12",
38
38
  "testcontainers": "^12.1.0",
39
39
  "typesense": "^3.1.1"
40
40
  },
41
41
  "peerDependencies": {
42
- "@lde/dataset": "^0.7.9",
43
- "@lde/pipeline": "^0.36.8"
42
+ "@lde/dataset": "^0.8.0",
43
+ "@lde/pipeline": "^0.37.0"
44
44
  }
45
45
  }