@comunica/bus-rdf-join 2.2.0 → 2.2.2-alpha.13.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/lib/ActorRdfJoin.js +12 -7
- package/package.json +9 -10
package/lib/ActorRdfJoin.js
CHANGED
|
@@ -214,17 +214,22 @@ class ActorRdfJoin extends core_1.Actor {
|
|
|
214
214
|
parentPhysicalQueryPlanNode = action.context.get(context_entries_1.KeysInitQuery.physicalQueryPlanNode);
|
|
215
215
|
action.context = action.context.set(context_entries_1.KeysInitQuery.physicalQueryPlanNode, action);
|
|
216
216
|
}
|
|
217
|
-
const { result, physicalPlanMetadata } = await this.getOutput(action);
|
|
218
|
-
const metadatas = await ActorRdfJoin.getMetadatas(action.entries);
|
|
219
217
|
// Log to physical plan
|
|
220
218
|
const physicalQueryPlanLogger = action.context.get(context_entries_1.KeysInitQuery
|
|
221
219
|
.physicalQueryPlanLogger);
|
|
220
|
+
let planMetadata;
|
|
222
221
|
if (this.includeInLogs && physicalQueryPlanLogger) {
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
222
|
+
planMetadata = {};
|
|
223
|
+
physicalQueryPlanLogger.logOperation(`join-${this.logicalType}`, this.physicalName, action, parentPhysicalQueryPlanNode, this.name, planMetadata);
|
|
224
|
+
}
|
|
225
|
+
// Get action output
|
|
226
|
+
const { result, physicalPlanMetadata } = await this.getOutput(action);
|
|
227
|
+
const metadatas = await ActorRdfJoin.getMetadatas(action.entries);
|
|
228
|
+
// Fill in the physical plan metadata after determining action output
|
|
229
|
+
if (planMetadata) {
|
|
230
|
+
Object.assign(planMetadata, physicalPlanMetadata);
|
|
231
|
+
planMetadata.cardinalities = metadatas.map(ActorRdfJoin.getCardinality);
|
|
232
|
+
planMetadata.joinCoefficients = await this.getJoinCoefficients(action, metadatas);
|
|
228
233
|
}
|
|
229
234
|
// Cache metadata
|
|
230
235
|
result.metadata = bus_query_operation_1.ActorQueryOperation.cachifyMetadata(result.metadata);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@comunica/bus-rdf-join",
|
|
3
|
-
"version": "2.2.0",
|
|
3
|
+
"version": "2.2.2-alpha.13.0",
|
|
4
4
|
"description": "A comunica bus for rdf-join events.",
|
|
5
5
|
"lsd:module": true,
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -30,21 +30,20 @@
|
|
|
30
30
|
"lib/**/*.js"
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@comunica/bus-query-operation": "
|
|
34
|
-
"@comunica/bus-rdf-join-selectivity": "
|
|
35
|
-
"@comunica/context-entries": "
|
|
36
|
-
"@comunica/core": "
|
|
37
|
-
"@comunica/mediatortype-join-coefficients": "
|
|
38
|
-
"@comunica/types": "
|
|
33
|
+
"@comunica/bus-query-operation": "2.2.2-alpha.13.0",
|
|
34
|
+
"@comunica/bus-rdf-join-selectivity": "2.2.2-alpha.13.0",
|
|
35
|
+
"@comunica/context-entries": "2.2.2-alpha.13.0",
|
|
36
|
+
"@comunica/core": "2.2.2-alpha.13.0",
|
|
37
|
+
"@comunica/mediatortype-join-coefficients": "2.2.2-alpha.13.0",
|
|
38
|
+
"@comunica/types": "2.2.2-alpha.13.0",
|
|
39
39
|
"@rdfjs/types": "*",
|
|
40
40
|
"rdf-data-factory": "^1.1.0",
|
|
41
|
-
"rdf-string": "^1.5.0"
|
|
42
|
-
"sparqlalgebrajs": "^4.0.0"
|
|
41
|
+
"rdf-string": "^1.5.0"
|
|
43
42
|
},
|
|
44
43
|
"scripts": {
|
|
45
44
|
"build": "npm run build:ts && npm run build:components",
|
|
46
45
|
"build:ts": "node \"../../node_modules/typescript/bin/tsc\"",
|
|
47
46
|
"build:components": "componentsjs-generator"
|
|
48
47
|
},
|
|
49
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "f3a79b04bcf5f96767847cc335145491ccba68ff"
|
|
50
49
|
}
|