@lde/search-pipeline 0.37.0 → 0.38.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.
@@ -139,6 +139,11 @@ export declare function selectByClass(searchType: RootType, rootVariable?: strin
139
139
  * IRI, which is how a DCAT register that crawls per registration stores it (the
140
140
  * NDE Dataset Register does so for every registration it holds).
141
141
  *
142
+ * A dataset identified by a `file:` URL, as `Dataset.localFile` makes it,
143
+ * has no registration, so it keeps reading its own data: whatever the file says
144
+ * about itself is all there is to index. A registered dataset whose data happens
145
+ * to be a local file still reads its description from the register.
146
+ *
142
147
  * Routing is deployment topology, deliberately kept out of the
143
148
  * {@link SearchType}: a type is defined by its `class`, not by where its
144
149
  * triples come from, so the same declaration serves a deployment that sources
@@ -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,aAAa,CAAC,GAAG,aAAa,CAAC,aAAa,CAAC,EAAE,CAAC;IAC1E;;;;;OAKG;IACH,SAAS,CAAC,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AAC;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,wBAAgB,cAAc,CAC5B,QAAQ,EAAE,GAAG,GACZ,WAAW,CAAC,eAAe,CAAC,WAAW,CAAC,CAAC,CAK3C"}
@@ -127,6 +127,11 @@ export function selectByClass(searchType, rootVariable = 'root') {
127
127
  * IRI, which is how a DCAT register that crawls per registration stores it (the
128
128
  * NDE Dataset Register does so for every registration it holds).
129
129
  *
130
+ * A dataset identified by a `file:` URL, as `Dataset.localFile` makes it,
131
+ * has no registration, so it keeps reading its own data: whatever the file says
132
+ * about itself is all there is to index. A registered dataset whose data happens
133
+ * to be a local file still reads its description from the register.
134
+ *
130
135
  * Routing is deployment topology, deliberately kept out of the
131
136
  * {@link SearchType}: a type is defined by its `class`, not by where its
132
137
  * triples come from, so the same declaration serves a deployment that sources
@@ -147,5 +152,7 @@ export function selectByClass(searchType, rootVariable = 'root') {
147
152
  * ```
148
153
  */
149
154
  export function registrySource(endpoint) {
150
- return (dataset) => Distribution.sparql(endpoint, dataset.iri.toString());
155
+ return (dataset, distribution) => dataset.iri.protocol === 'file:'
156
+ ? distribution
157
+ : Distribution.sparql(endpoint, dataset.iri.toString());
151
158
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lde/search-pipeline",
3
- "version": "0.37.0",
3
+ "version": "0.38.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",
@@ -32,14 +32,14 @@
32
32
  "tslib": "^2.3.0"
33
33
  },
34
34
  "devDependencies": {
35
- "@lde/search-typesense": "^0.40.0",
35
+ "@lde/search-typesense": "^0.41.0",
36
36
  "@rdfjs/types": "^2.0.1",
37
37
  "n3": "^2.13.12",
38
38
  "testcontainers": "^12.1.0",
39
39
  "typesense": "^3.1.1"
40
40
  },
41
41
  "peerDependencies": {
42
- "@lde/dataset": "^0.9.0",
43
- "@lde/pipeline": "^0.40.0"
42
+ "@lde/dataset": "^0.10.0",
43
+ "@lde/pipeline": "^0.41.0"
44
44
  }
45
45
  }