@lde/search-pipeline 0.58.0 → 0.58.1
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/search-stages.d.ts
CHANGED
|
@@ -114,7 +114,7 @@ export declare function searchStages(options: SearchStagesOptions): Stage<TypedS
|
|
|
114
114
|
/**
|
|
115
115
|
* An {@link ItemSelector} that selects every instance of a root type’s source
|
|
116
116
|
* class:
|
|
117
|
-
* `SELECT DISTINCT ?‹rootVariable› WHERE { ?‹rootVariable› a <class> FILTER(!isBlank(?‹rootVariable›)) }
|
|
117
|
+
* `SELECT DISTINCT ?‹rootVariable› WHERE { ?‹rootVariable› a <class> FILTER(!isBlank(?‹rootVariable›)) } ORDER BY ?‹rootVariable›`.
|
|
118
118
|
* A convenience for the **object grain**, where {@link RootType.class} really is
|
|
119
119
|
* the source class – **not** a default: root selection is a deployment concern,
|
|
120
120
|
* and three of the Dataset Register’s four catalog types have no source class at
|
|
@@ -127,6 +127,13 @@ export declare function searchStages(options: SearchStagesOptions): Stage<TypedS
|
|
|
127
127
|
* full, so pagination walks the whole class instead of stopping at the first
|
|
128
128
|
* page a client-side drop would leave short.
|
|
129
129
|
*
|
|
130
|
+
* **The roots are ordered** (`ORDER BY ?‹rootVariable›`): the selector pages with
|
|
131
|
+
* `LIMIT`/`OFFSET`, and without a total order an endpoint may answer each page
|
|
132
|
+
* in a different order, skipping or repeating roots between pages. The order
|
|
133
|
+
* holds the pages together only while the data does not change during the
|
|
134
|
+
* selection: a root added or removed before the current offset shifts every
|
|
135
|
+
* later page by one.
|
|
136
|
+
*
|
|
130
137
|
* `rootVariable` defaults to `root` and must match the stage’s
|
|
131
138
|
* {@link SearchStageType.rootVariable}; it must not be `dataset` (reserved by the
|
|
132
139
|
* SPARQL reader).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-stages.d.ts","sourceRoot":"","sources":["../src/search-stages.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,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AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,wBAAgB,aAAa,CAC3B,UAAU,EAAE,QAAQ,EACpB,YAAY,SAAS,EACrB,OAAO,CAAC,EAAE,MAAM,GACf,YAAY,CAWd;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,wBAAgB,cAAc,CAC5B,QAAQ,EAAE,GAAG,GACZ,WAAW,CAAC,eAAe,CAAC,WAAW,CAAC,CAAC,CAK3C;AAED,iEAAiE;AACjE,eAAO,MAAM,gBAAgB;;;CAA2C,CAAC"}
|
package/dist/search-stages.js
CHANGED
|
@@ -117,7 +117,7 @@ export function searchStages(options) {
|
|
|
117
117
|
/**
|
|
118
118
|
* An {@link ItemSelector} that selects every instance of a root type’s source
|
|
119
119
|
* class:
|
|
120
|
-
* `SELECT DISTINCT ?‹rootVariable› WHERE { ?‹rootVariable› a <class> FILTER(!isBlank(?‹rootVariable›)) }
|
|
120
|
+
* `SELECT DISTINCT ?‹rootVariable› WHERE { ?‹rootVariable› a <class> FILTER(!isBlank(?‹rootVariable›)) } ORDER BY ?‹rootVariable›`.
|
|
121
121
|
* A convenience for the **object grain**, where {@link RootType.class} really is
|
|
122
122
|
* the source class – **not** a default: root selection is a deployment concern,
|
|
123
123
|
* and three of the Dataset Register’s four catalog types have no source class at
|
|
@@ -130,6 +130,13 @@ export function searchStages(options) {
|
|
|
130
130
|
* full, so pagination walks the whole class instead of stopping at the first
|
|
131
131
|
* page a client-side drop would leave short.
|
|
132
132
|
*
|
|
133
|
+
* **The roots are ordered** (`ORDER BY ?‹rootVariable›`): the selector pages with
|
|
134
|
+
* `LIMIT`/`OFFSET`, and without a total order an endpoint may answer each page
|
|
135
|
+
* in a different order, skipping or repeating roots between pages. The order
|
|
136
|
+
* holds the pages together only while the data does not change during the
|
|
137
|
+
* selection: a root added or removed before the current offset shifts every
|
|
138
|
+
* later page by one.
|
|
139
|
+
*
|
|
133
140
|
* `rootVariable` defaults to `root` and must match the stage’s
|
|
134
141
|
* {@link SearchStageType.rootVariable}; it must not be `dataset` (reserved by the
|
|
135
142
|
* SPARQL reader).
|
|
@@ -156,7 +163,7 @@ export function selectByClass(searchType, rootVariable = 'root', pattern) {
|
|
|
156
163
|
}
|
|
157
164
|
const restriction = pattern === undefined ? '' : `{\n${pattern}\n}`;
|
|
158
165
|
return new SparqlItemSelector({
|
|
159
|
-
query: `SELECT DISTINCT ?${rootVariable} WHERE { ?${rootVariable} a <${searchType.class}> . ${restriction} FILTER(!isBlank(?${rootVariable})) }`,
|
|
166
|
+
query: `SELECT DISTINCT ?${rootVariable} WHERE { ?${rootVariable} a <${searchType.class}> . ${restriction} FILTER(!isBlank(?${rootVariable})) } ORDER BY ?${rootVariable}`,
|
|
160
167
|
});
|
|
161
168
|
}
|
|
162
169
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lde/search-pipeline",
|
|
3
|
-
"version": "0.58.
|
|
3
|
+
"version": "0.58.1",
|
|
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,7 +32,7 @@
|
|
|
32
32
|
"tslib": "^2.3.0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@lde/search-typesense": "^0.61.
|
|
35
|
+
"@lde/search-typesense": "^0.61.1",
|
|
36
36
|
"@rdfjs/types": "^2.0.1",
|
|
37
37
|
"n3": "^2.13.12",
|
|
38
38
|
"testcontainers": "^12.1.0",
|
|
@@ -40,6 +40,6 @@
|
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"@lde/dataset": "^0.10.1",
|
|
43
|
-
"@lde/pipeline": "^0.50.
|
|
43
|
+
"@lde/pipeline": "^0.50.3"
|
|
44
44
|
}
|
|
45
45
|
}
|