@comunica/actor-query-operation-bgp-join 4.4.2-alpha.49.0 → 4.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.
- package/components/ActorQueryOperationBgpJoin.jsonld +1 -11
- package/components/components.jsonld +0 -0
- package/components/context.jsonld +0 -0
- package/lib/ActorQueryOperationBgpJoin.d.ts +1 -1
- package/lib/ActorQueryOperationBgpJoin.js +3 -3
- package/lib/ActorQueryOperationBgpJoin.js.map +1 -1
- package/lib/index.d.ts +0 -0
- package/lib/index.js +0 -0
- package/lib/index.js.map +0 -0
- package/package.json +7 -7
|
@@ -15,17 +15,7 @@
|
|
|
15
15
|
"@type": "GenericComponentExtension",
|
|
16
16
|
"component": "cbqo:components/ActorQueryOperationTypedMediated.jsonld#ActorQueryOperationTypedMediated",
|
|
17
17
|
"genericTypeInstances": [
|
|
18
|
-
|
|
19
|
-
"@type": "ParameterRangeIntersection",
|
|
20
|
-
"parameterRangeElements": [
|
|
21
|
-
{
|
|
22
|
-
"@type": "ParameterRangeWildcard"
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
"@type": "ParameterRangeWildcard"
|
|
26
|
-
}
|
|
27
|
-
]
|
|
28
|
-
}
|
|
18
|
+
"urn:npm:sparqlalgebrajs:Bgp"
|
|
29
19
|
]
|
|
30
20
|
}
|
|
31
21
|
],
|
|
File without changes
|
|
File without changes
|
|
@@ -2,7 +2,7 @@ import type { IActorQueryOperationTypedMediatedArgs } from '@comunica/bus-query-
|
|
|
2
2
|
import { ActorQueryOperationTypedMediated } from '@comunica/bus-query-operation';
|
|
3
3
|
import type { IActorTest, TestResult } from '@comunica/core';
|
|
4
4
|
import type { IActionContext, IQueryOperationResult } from '@comunica/types';
|
|
5
|
-
import { Algebra } from '
|
|
5
|
+
import type { Algebra } from 'sparqlalgebrajs';
|
|
6
6
|
/**
|
|
7
7
|
* A [Query Operation](https://github.com/comunica/comunica/tree/master/packages/bus-query-operation) actor
|
|
8
8
|
* that handles SPARQL BGP operations by rewriting it as a join operator.
|
|
@@ -4,21 +4,21 @@ exports.ActorQueryOperationBgpJoin = void 0;
|
|
|
4
4
|
const bus_query_operation_1 = require("@comunica/bus-query-operation");
|
|
5
5
|
const context_entries_1 = require("@comunica/context-entries");
|
|
6
6
|
const core_1 = require("@comunica/core");
|
|
7
|
-
const
|
|
7
|
+
const sparqlalgebrajs_1 = require("sparqlalgebrajs");
|
|
8
8
|
/**
|
|
9
9
|
* A [Query Operation](https://github.com/comunica/comunica/tree/master/packages/bus-query-operation) actor
|
|
10
10
|
* that handles SPARQL BGP operations by rewriting it as a join operator.
|
|
11
11
|
*/
|
|
12
12
|
class ActorQueryOperationBgpJoin extends bus_query_operation_1.ActorQueryOperationTypedMediated {
|
|
13
13
|
constructor(args) {
|
|
14
|
-
super(args,
|
|
14
|
+
super(args, 'bgp');
|
|
15
15
|
}
|
|
16
16
|
async testOperation(_operation, _context) {
|
|
17
17
|
return (0, core_1.passTestVoid)();
|
|
18
18
|
}
|
|
19
19
|
async runOperation(operation, context) {
|
|
20
20
|
const dataFactory = context.getSafe(context_entries_1.KeysInitQuery.dataFactory);
|
|
21
|
-
const algebraFactory = new
|
|
21
|
+
const algebraFactory = new sparqlalgebrajs_1.Factory(dataFactory);
|
|
22
22
|
return this.mediatorQueryOperation.mediate({
|
|
23
23
|
operation: algebraFactory.createJoin(operation.patterns),
|
|
24
24
|
context,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActorQueryOperationBgpJoin.js","sourceRoot":"","sources":["ActorQueryOperationBgpJoin.ts"],"names":[],"mappings":";;;AACA,uEAAiF;AACjF,+DAA0D;AAE1D,yCAA8C;AAE9C,
|
|
1
|
+
{"version":3,"file":"ActorQueryOperationBgpJoin.js","sourceRoot":"","sources":["ActorQueryOperationBgpJoin.ts"],"names":[],"mappings":";;;AACA,uEAAiF;AACjF,+DAA0D;AAE1D,yCAA8C;AAE9C,qDAA0C;AAG1C;;;GAGG;AACH,MAAa,0BAA2B,SAAQ,sDAA6C;IAC3F,YAAmB,IAA2C;QAC5D,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACrB,CAAC;IAEM,KAAK,CAAC,aAAa,CAAC,UAAuB,EAAE,QAAwB;QAC1E,OAAO,IAAA,mBAAY,GAAE,CAAC;IACxB,CAAC;IAEM,KAAK,CAAC,YAAY,CAAC,SAAsB,EAAE,OAAuB;QAEvE,MAAM,WAAW,GAAwB,OAAO,CAAC,OAAO,CAAC,+BAAa,CAAC,WAAW,CAAC,CAAC;QACpF,MAAM,cAAc,GAAG,IAAI,yBAAO,CAAC,WAAW,CAAC,CAAC;QAEhD,OAAO,IAAI,CAAC,sBAAsB,CAAC,OAAO,CAAC;YACzC,SAAS,EAAE,cAAc,CAAC,UAAU,CAAC,SAAS,CAAC,QAAQ,CAAC;YACxD,OAAO;SACR,CAAC,CAAC;IACL,CAAC;CACF;AAnBD,gEAmBC","sourcesContent":["import type { IActorQueryOperationTypedMediatedArgs } from '@comunica/bus-query-operation';\nimport { ActorQueryOperationTypedMediated } from '@comunica/bus-query-operation';\nimport { KeysInitQuery } from '@comunica/context-entries';\nimport type { IActorTest, TestResult } from '@comunica/core';\nimport { passTestVoid } from '@comunica/core';\nimport type { ComunicaDataFactory, IActionContext, IQueryOperationResult } from '@comunica/types';\nimport { Factory } from 'sparqlalgebrajs';\nimport type { Algebra } from 'sparqlalgebrajs';\n\n/**\n * A [Query Operation](https://github.com/comunica/comunica/tree/master/packages/bus-query-operation) actor\n * that handles SPARQL BGP operations by rewriting it as a join operator.\n */\nexport class ActorQueryOperationBgpJoin extends ActorQueryOperationTypedMediated<Algebra.Bgp> {\n public constructor(args: IActorQueryOperationTypedMediatedArgs) {\n super(args, 'bgp');\n }\n\n public async testOperation(_operation: Algebra.Bgp, _context: IActionContext): Promise<TestResult<IActorTest>> {\n return passTestVoid();\n }\n\n public async runOperation(operation: Algebra.Bgp, context: IActionContext):\n Promise<IQueryOperationResult> {\n const dataFactory: ComunicaDataFactory = context.getSafe(KeysInitQuery.dataFactory);\n const algebraFactory = new Factory(dataFactory);\n\n return this.mediatorQueryOperation.mediate({\n operation: algebraFactory.createJoin(operation.patterns),\n context,\n });\n }\n}\n"]}
|
package/lib/index.d.ts
CHANGED
|
File without changes
|
package/lib/index.js
CHANGED
|
File without changes
|
package/lib/index.js.map
CHANGED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@comunica/actor-query-operation-bgp-join",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.5.0",
|
|
4
4
|
"description": "A bgp-join query-operation actor",
|
|
5
5
|
"lsd:module": true,
|
|
6
6
|
"license": "MIT",
|
|
@@ -41,11 +41,11 @@
|
|
|
41
41
|
"build:components": "componentsjs-generator"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@comunica/bus-query-operation": "4.
|
|
45
|
-
"@comunica/context-entries": "4.
|
|
46
|
-
"@comunica/core": "4.
|
|
47
|
-
"@comunica/types": "4.
|
|
48
|
-
"
|
|
44
|
+
"@comunica/bus-query-operation": "^4.5.0",
|
|
45
|
+
"@comunica/context-entries": "^4.5.0",
|
|
46
|
+
"@comunica/core": "^4.5.0",
|
|
47
|
+
"@comunica/types": "^4.5.0",
|
|
48
|
+
"sparqlalgebrajs": "^5.0.2"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "2bcd98c387a021fc5c08d375793c205ca3d1bf0d"
|
|
51
51
|
}
|