@comunica/actor-query-operation-join 3.0.1-alpha.45.0 → 3.0.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/README.md
CHANGED
|
@@ -23,7 +23,7 @@ After installing, this package can be added to your engine's configuration as fo
|
|
|
23
23
|
{
|
|
24
24
|
"@context": [
|
|
25
25
|
...
|
|
26
|
-
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-query-operation-join/^3.0.0/components/context.jsonld"
|
|
26
|
+
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-query-operation-join/^3.0.0/components/context.jsonld"
|
|
27
27
|
],
|
|
28
28
|
"actors": [
|
|
29
29
|
...
|
|
@@ -37,9 +37,7 @@ After installing, this package can be added to your engine's configuration as fo
|
|
|
37
37
|
}
|
|
38
38
|
```
|
|
39
39
|
|
|
40
|
-
|
|
41
40
|
### Config Parameters
|
|
42
41
|
|
|
43
42
|
* `mediatorQueryOperation`: A mediator over the [Query Operation bus](https://github.com/comunica/comunica/tree/master/packages/bus-query-operation).
|
|
44
43
|
* `mediatorJoin`: A mediator over the [RDF Join bus](https://github.com/comunica/comunica/tree/master/packages/bus-rdf-join).
|
|
45
|
-
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"@context": [
|
|
3
|
-
"https://linkedsoftwaredependencies.org/bundles/npm/componentsjs/^
|
|
3
|
+
"https://linkedsoftwaredependencies.org/bundles/npm/componentsjs/^6.0.0/components/context.jsonld",
|
|
4
4
|
{
|
|
5
5
|
"npmd": "https://linkedsoftwaredependencies.org/bundles/npm/",
|
|
6
6
|
"caqoj": "npmd:@comunica/actor-query-operation-join/^3.0.0/",
|
|
@@ -10,7 +10,7 @@ import type { Algebra } from 'sparqlalgebrajs';
|
|
|
10
10
|
export declare class ActorQueryOperationJoin extends ActorQueryOperationTypedMediated<Algebra.Join> {
|
|
11
11
|
readonly mediatorJoin: MediatorRdfJoin;
|
|
12
12
|
constructor(args: IActorQueryOperationJoinArgs);
|
|
13
|
-
testOperation(
|
|
13
|
+
testOperation(_operation: Algebra.Join, _context: IActionContext): Promise<IActorTest>;
|
|
14
14
|
runOperation(operationOriginal: Algebra.Join, context: IActionContext): Promise<IQueryOperationResult>;
|
|
15
15
|
}
|
|
16
16
|
export interface IActorQueryOperationJoinArgs extends IActorQueryOperationTypedMediatedArgs {
|
|
@@ -9,7 +9,7 @@ class ActorQueryOperationJoin extends bus_query_operation_1.ActorQueryOperationT
|
|
|
9
9
|
constructor(args) {
|
|
10
10
|
super(args, 'join');
|
|
11
11
|
}
|
|
12
|
-
async testOperation(
|
|
12
|
+
async testOperation(_operation, _context) {
|
|
13
13
|
return true;
|
|
14
14
|
}
|
|
15
15
|
async runOperation(operationOriginal, context) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActorQueryOperationJoin.js","sourceRoot":"","sources":["ActorQueryOperationJoin.ts"],"names":[],"mappings":";;;AACA,uEAGuC;AAMvC;;GAEG;AACH,MAAa,uBAAwB,SAAQ,sDAA8C;IAGzF,YAAmB,IAAkC;QACnD,KAAK,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;IACtB,CAAC;IAEM,KAAK,CAAC,aAAa,CAAC,
|
|
1
|
+
{"version":3,"file":"ActorQueryOperationJoin.js","sourceRoot":"","sources":["ActorQueryOperationJoin.ts"],"names":[],"mappings":";;;AACA,uEAGuC;AAMvC;;GAEG;AACH,MAAa,uBAAwB,SAAQ,sDAA8C;IAGzF,YAAmB,IAAkC;QACnD,KAAK,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;IACtB,CAAC;IAEM,KAAK,CAAC,aAAa,CAAC,UAAwB,EAAE,QAAwB;QAC3E,OAAO,IAAI,CAAC;IACd,CAAC;IAEM,KAAK,CAAC,YAAY,CACvB,iBAA+B,EAC/B,OAAuB;QAEvB,MAAM,OAAO,GAAiB,CAAC,MAAM,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,KAAK;aACrE,GAAG,CAAC,KAAK,EAAC,YAAY,EAAC,EAAE,CAAC,CAAC;YAC1B,MAAM,EAAE,MAAM,IAAI,CAAC,sBAAsB,CAAC,OAAO,CAAC,EAAE,SAAS,EAAE,YAAY,EAAE,OAAO,EAAE,CAAC;YACvF,SAAS,EAAE,YAAY;SACxB,CAAC,CAAC,CAAC,CAAC;aACJ,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC,CAAC;YAC/B,MAAM,EAAE,yCAAmB,CAAC,eAAe,CAAC,MAAM,CAAC;YACnD,SAAS;SACV,CAAC,CAAC,CAAC;QAEN,OAAO,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,CAAC;IACxE,CAAC;CACF;AA3BD,0DA2BC","sourcesContent":["import type { IActorQueryOperationTypedMediatedArgs } from '@comunica/bus-query-operation';\nimport {\n ActorQueryOperation,\n ActorQueryOperationTypedMediated,\n} from '@comunica/bus-query-operation';\nimport type { MediatorRdfJoin } from '@comunica/bus-rdf-join';\nimport type { IActorTest } from '@comunica/core';\nimport type { IQueryOperationResult, IActionContext, IJoinEntry } from '@comunica/types';\nimport type { Algebra } from 'sparqlalgebrajs';\n\n/**\n * A comunica Join Query Operation Actor.\n */\nexport class ActorQueryOperationJoin extends ActorQueryOperationTypedMediated<Algebra.Join> {\n public readonly mediatorJoin: MediatorRdfJoin;\n\n public constructor(args: IActorQueryOperationJoinArgs) {\n super(args, 'join');\n }\n\n public async testOperation(_operation: Algebra.Join, _context: IActionContext): Promise<IActorTest> {\n return true;\n }\n\n public async runOperation(\n operationOriginal: Algebra.Join,\n context: IActionContext,\n ): Promise<IQueryOperationResult> {\n const entries: IJoinEntry[] = (await Promise.all(operationOriginal.input\n .map(async subOperation => ({\n output: await this.mediatorQueryOperation.mediate({ operation: subOperation, context }),\n operation: subOperation,\n }))))\n .map(({ output, operation }) => ({\n output: ActorQueryOperation.getSafeBindings(output),\n operation,\n }));\n\n return this.mediatorJoin.mediate({ type: 'inner', entries, context });\n }\n}\n\nexport interface IActorQueryOperationJoinArgs extends IActorQueryOperationTypedMediatedArgs {\n /**\n * A mediator for joining Bindings streams\n */\n mediatorJoin: MediatorRdfJoin;\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,47 +1,47 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@comunica/actor-query-operation-join",
|
|
3
|
-
"version": "3.0.1
|
|
3
|
+
"version": "3.0.1",
|
|
4
4
|
"description": "A join query-operation actor",
|
|
5
5
|
"lsd:module": true,
|
|
6
|
-
"
|
|
7
|
-
"
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"homepage": "https://comunica.dev/",
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
10
10
|
"url": "https://github.com/comunica/comunica.git",
|
|
11
11
|
"directory": "packages/actor-query-operation-join"
|
|
12
12
|
},
|
|
13
|
-
"
|
|
14
|
-
"
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/comunica/comunica/issues"
|
|
15
15
|
},
|
|
16
|
-
"sideEffects": false,
|
|
17
16
|
"keywords": [
|
|
18
17
|
"comunica",
|
|
19
18
|
"actor",
|
|
20
19
|
"query-operation",
|
|
21
20
|
"join"
|
|
22
21
|
],
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
|
|
22
|
+
"sideEffects": false,
|
|
23
|
+
"main": "lib/index.js",
|
|
24
|
+
"typings": "lib/index",
|
|
25
|
+
"publishConfig": {
|
|
26
|
+
"access": "public"
|
|
26
27
|
},
|
|
27
|
-
"homepage": "https://comunica.dev/",
|
|
28
28
|
"files": [
|
|
29
29
|
"components",
|
|
30
30
|
"lib/**/*.d.ts",
|
|
31
31
|
"lib/**/*.js",
|
|
32
32
|
"lib/**/*.js.map"
|
|
33
33
|
],
|
|
34
|
-
"dependencies": {
|
|
35
|
-
"@comunica/bus-query-operation": "3.0.1-alpha.45.0",
|
|
36
|
-
"@comunica/bus-rdf-join": "3.0.1-alpha.45.0",
|
|
37
|
-
"@comunica/core": "3.0.1-alpha.45.0",
|
|
38
|
-
"@comunica/types": "3.0.1-alpha.45.0",
|
|
39
|
-
"sparqlalgebrajs": "^4.3.3"
|
|
40
|
-
},
|
|
41
34
|
"scripts": {
|
|
42
35
|
"build": "npm run build:ts && npm run build:components",
|
|
43
36
|
"build:ts": "node \"../../node_modules/typescript/bin/tsc\"",
|
|
44
37
|
"build:components": "componentsjs-generator"
|
|
45
38
|
},
|
|
46
|
-
"
|
|
39
|
+
"dependencies": {
|
|
40
|
+
"@comunica/bus-query-operation": "^3.0.1",
|
|
41
|
+
"@comunica/bus-rdf-join": "^3.0.1",
|
|
42
|
+
"@comunica/core": "^3.0.1",
|
|
43
|
+
"@comunica/types": "^3.0.1",
|
|
44
|
+
"sparqlalgebrajs": "^4.3.3"
|
|
45
|
+
},
|
|
46
|
+
"gitHead": "9c0b537cd927d29590c287fe882185d88a65461b"
|
|
47
47
|
}
|