@comunica/actor-rdf-join-inner-multi-sequential 2.4.0 → 2.5.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.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ActorRdfJoinMultiSequential.js","sourceRoot":"","sources":["ActorRdfJoinMultiSequential.ts"],"names":[],"mappings":";;;AAAA,uEAEuC;AAOvC,yDAAsD;AAGtD,qDAA0C;AAE1C;;;GAGG;AACH,MAAa,2BAA4B,SAAQ,2BAAY;IAK3D,YAAmB,IAAsC;QACvD,KAAK,CAAC,IAAI,EAAE;YACV,WAAW,EAAE,OAAO;YACpB,YAAY,EAAE,kBAAkB;YAChC,YAAY,EAAE,CAAC;YACf,eAAe,EAAE,IAAI;SACtB,CAAC,CAAC;IACL,CAAC;IAES,KAAK,CAAC,SAAS,CAAC,MAAsB;QAC9C,kFAAkF;QAClF,MAAM,UAAU,GAAe;YAC7B,MAAM,EAAE,yCAAmB,CAAC,eAAe,CAAC,MAAM,IAAI,CAAC,YAAY;iBAChE,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,IAAI,EAAE,OAAO,EAAE,CAAE,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAE,EAAE,OAAO,EAAE,MAAM,CAAC,OAAO,EAAE,CAAC,CAAC;YAC9G,SAAS,EAAE,2BAA2B,CAAC,OAAO;iBAC3C,UAAU,CAAC,CAAE,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAE,EAAE,KAAK,CAAC;SACnF,CAAC;QACF,MAAM,gBAAgB,GAAiB,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QAC/D,gBAAgB,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC;QACjC,OAAO;YACL,MAA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3D,CAAC;IACJ,CAAC;;AAlDH,kEAmDC;AAhDwB,mCAAO,GAAG,IAAI,yBAAO,EAAE,CAAC","sourcesContent":["import {\n ActorQueryOperation,\n} from '@comunica/bus-query-operation';\nimport type {\n IActionRdfJoin,\n IActorRdfJoinOutputInner,\n IActorRdfJoinArgs,\n MediatorRdfJoin,\n} from '@comunica/bus-rdf-join';\nimport { ActorRdfJoin } from '@comunica/bus-rdf-join';\nimport type { IMediatorTypeJoinCoefficients } from '@comunica/mediatortype-join-coefficients';\nimport type { MetadataBindings, IJoinEntry } from '@comunica/types';\nimport { Factory } from 'sparqlalgebrajs';\n\n/**\n * A Multi Sequential RDF Join Actor.\n * It accepts 3 or more streams, joins the first two, and joins the result with the remaining streams.\n */\nexport class ActorRdfJoinMultiSequential extends ActorRdfJoin {\n public readonly mediatorJoin: MediatorRdfJoin;\n\n public static readonly FACTORY = new Factory();\n\n public constructor(args: IActorRdfJoinMultiSequentialArgs) {\n super(args, {\n logicalType: 'inner',\n physicalName: 'multi-sequential',\n limitEntries: 3,\n limitEntriesMin: true,\n });\n }\n\n protected async getOutput(action: IActionRdfJoin): Promise<IActorRdfJoinOutputInner> {\n // Join the two first streams, and then join the result with the remaining streams\n const firstEntry: IJoinEntry = {\n output: ActorQueryOperation.getSafeBindings(await this.mediatorJoin\n .mediate({ type: action.type, entries: [ action.entries[0], action.entries[1] ], context: action.context })),\n operation: ActorRdfJoinMultiSequential.FACTORY\n .createJoin([ action.entries[0].operation, action.entries[1].operation ], false),\n };\n const remainingEntries: IJoinEntry[] = action.entries.slice(1);\n remainingEntries[0] = firstEntry;\n return {\n result: await this.mediatorJoin.mediate({\n type: action.type,\n entries: remainingEntries,\n context: action.context,\n }),\n };\n }\n\n protected async getJoinCoefficients(\n action: IActionRdfJoin,\n metadatas: MetadataBindings[],\n ): Promise<IMediatorTypeJoinCoefficients> {\n const requestInitialTimes = ActorRdfJoin.getRequestInitialTimes(metadatas);\n const requestItemTimes = ActorRdfJoin.getRequestItemTimes(metadatas);\n return {\n iterations: metadatas[0].cardinality.value * metadatas[1].cardinality.value *\n metadatas.slice(2).reduce((acc, metadata) => acc * metadata.cardinality.value, 1),\n persistedItems: 0,\n blockingItems: 0,\n requestTime: requestInitialTimes[0] + metadatas[0].cardinality.value * requestItemTimes[0] +\n requestInitialTimes[1] + metadatas[1].cardinality.value * requestItemTimes[1] +\n metadatas.slice(2)\n .reduce((sum, metadata, i) => sum + requestInitialTimes[i] +\n metadata.cardinality.value * requestItemTimes[i], 0),\n };\n }\n}\n\nexport interface IActorRdfJoinMultiSequentialArgs extends IActorRdfJoinArgs {\n /**\n * A mediator for joining Bindings streams\n */\n mediatorJoin: MediatorRdfJoin;\n}\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gEAA8C","sourcesContent":["export * from './ActorRdfJoinMultiSequential';\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@comunica/actor-rdf-join-inner-multi-sequential",
3
- "version": "2.4.0",
3
+ "version": "2.5.0",
4
4
  "description": "A multi-sequential rdf-join actor",
5
5
  "lsd:module": true,
6
6
  "main": "lib/index.js",
@@ -28,13 +28,14 @@
28
28
  "files": [
29
29
  "components",
30
30
  "lib/**/*.d.ts",
31
- "lib/**/*.js"
31
+ "lib/**/*.js",
32
+ "lib/**/*.js.map"
32
33
  ],
33
34
  "dependencies": {
34
- "@comunica/bus-query-operation": "^2.4.0",
35
- "@comunica/bus-rdf-join": "^2.4.0",
36
- "@comunica/mediatortype-join-coefficients": "^2.4.0",
37
- "@comunica/types": "^2.4.0",
35
+ "@comunica/bus-query-operation": "^2.5.0",
36
+ "@comunica/bus-rdf-join": "^2.5.0",
37
+ "@comunica/mediatortype-join-coefficients": "^2.5.0",
38
+ "@comunica/types": "^2.5.0",
38
39
  "sparqlalgebrajs": "^4.0.0"
39
40
  },
40
41
  "scripts": {
@@ -42,5 +43,5 @@
42
43
  "build:ts": "node \"../../node_modules/typescript/bin/tsc\"",
43
44
  "build:components": "componentsjs-generator"
44
45
  },
45
- "gitHead": "cb5a1560c9ab9ebaf3335888a1411a7e1654de1e"
46
+ "gitHead": "349d57f5d1e539200e980bdff96973c2e0b66caa"
46
47
  }
package/LICENSE.txt DELETED
@@ -1,22 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright © 2017–now Ruben Taelman, Joachim Van Herwegen
4
- Comunica Association and Ghent University – imec, Belgium
5
-
6
- Permission is hereby granted, free of charge, to any person obtaining a copy
7
- of this software and associated documentation files (the "Software"), to deal
8
- in the Software without restriction, including without limitation the rights
9
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
- copies of the Software, and to permit persons to whom the Software is
11
- furnished to do so, subject to the following conditions:
12
-
13
- The above copyright notice and this permission notice shall be included in
14
- all copies or substantial portions of the Software.
15
-
16
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22
- THE SOFTWARE.