@lde/search-pipeline 0.41.2 → 0.42.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.
- package/dist/extraction.js +9 -1
- package/package.json +3 -3
package/dist/extraction.js
CHANGED
|
@@ -113,7 +113,7 @@ function buildFor(searchType, subject, schema, counter, visiting) {
|
|
|
113
113
|
const endpointField = endpointFieldOf(referenceType, field.ref.identity);
|
|
114
114
|
if (endpointField !== undefined) {
|
|
115
115
|
// An empty branch: an endpoint the graph says nothing else about keeps
|
|
116
|
-
// its row, and so its id, as it would inside an edge.
|
|
116
|
+
// its row, and so its id, as it would inside an edge – a literal too.
|
|
117
117
|
nestedBranches.push(factory.patternGroup([], factory.gen()));
|
|
118
118
|
const typeHop = buildTypeHop(referent, counter);
|
|
119
119
|
template.push(typeHop.triple);
|
|
@@ -122,6 +122,14 @@ function buildFor(searchType, subject, schema, counter, visiting) {
|
|
|
122
122
|
template.push(...hops.template);
|
|
123
123
|
nestedBranches.push(...hops.expansions);
|
|
124
124
|
}
|
|
125
|
+
else if (referenceType.literalField !== undefined) {
|
|
126
|
+
// A literal stated in place of the node has no values of its own to
|
|
127
|
+
// read, so it keeps its row through an empty branch. Not narrowed to
|
|
128
|
+
// literals: a branch is evaluated on its own, so a `FILTER(isLiteral)`
|
|
129
|
+
// in it sees the referent unbound and drops every row. A node that
|
|
130
|
+
// keeps its row this way, reading nothing, projects to nothing.
|
|
131
|
+
nestedBranches.push(factory.patternGroup([], factory.gen()));
|
|
132
|
+
}
|
|
125
133
|
const patterns = [
|
|
126
134
|
factory.patternBgp([factory.triple(subject, sourcePath, referent)], factory.gen()),
|
|
127
135
|
];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lde/search-pipeline",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.42.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,14 +25,14 @@
|
|
|
25
25
|
"!**/*.tsbuildinfo"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@lde/search": "^0.
|
|
28
|
+
"@lde/search": "^0.37.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.
|
|
35
|
+
"@lde/search-typesense": "^0.45.0",
|
|
36
36
|
"@rdfjs/types": "^2.0.1",
|
|
37
37
|
"n3": "^2.13.12",
|
|
38
38
|
"testcontainers": "^12.1.0",
|