@comunica/actor-query-operation-bgp-join 4.4.0 → 4.4.2-alpha.49.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.
@@ -15,7 +15,17 @@
15
15
  "@type": "GenericComponentExtension",
16
16
  "component": "cbqo:components/ActorQueryOperationTypedMediated.jsonld#ActorQueryOperationTypedMediated",
17
17
  "genericTypeInstances": [
18
- "urn:npm:sparqlalgebrajs:Bgp"
18
+ {
19
+ "@type": "ParameterRangeIntersection",
20
+ "parameterRangeElements": [
21
+ {
22
+ "@type": "ParameterRangeWildcard"
23
+ },
24
+ {
25
+ "@type": "ParameterRangeWildcard"
26
+ }
27
+ ]
28
+ }
19
29
  ]
20
30
  }
21
31
  ],
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 type { Algebra } from 'sparqlalgebrajs';
5
+ import { Algebra } from '@comunica/utils-algebra';
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 sparqlalgebrajs_1 = require("sparqlalgebrajs");
7
+ const utils_algebra_1 = require("@comunica/utils-algebra");
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, 'bgp');
14
+ super(args, utils_algebra_1.Algebra.Types.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 sparqlalgebrajs_1.Factory(dataFactory);
21
+ const algebraFactory = new utils_algebra_1.AlgebraFactory(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,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"]}
1
+ {"version":3,"file":"ActorQueryOperationBgpJoin.js","sourceRoot":"","sources":["ActorQueryOperationBgpJoin.ts"],"names":[],"mappings":";;;AACA,uEAAiF;AACjF,+DAA0D;AAE1D,yCAA8C;AAE9C,2DAAkE;AAElE;;;GAGG;AACH,MAAa,0BAA2B,SAAQ,sDAA6C;IAC3F,YAAmB,IAA2C;QAC5D,KAAK,CAAC,IAAI,EAAE,uBAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACjC,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,8BAAc,CAAC,WAAW,CAAC,CAAC;QAEvD,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 { AlgebraFactory, Algebra } from '@comunica/utils-algebra';\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, Algebra.Types.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 AlgebraFactory(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.4.0",
3
+ "version": "4.4.2-alpha.49.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.4.0",
45
- "@comunica/context-entries": "^4.4.0",
46
- "@comunica/core": "^4.4.0",
47
- "@comunica/types": "^4.4.0",
48
- "sparqlalgebrajs": "^4.3.8"
44
+ "@comunica/bus-query-operation": "4.4.2-alpha.49.0",
45
+ "@comunica/context-entries": "4.4.2-alpha.49.0",
46
+ "@comunica/core": "4.4.2-alpha.49.0",
47
+ "@comunica/types": "4.4.2-alpha.49.0",
48
+ "@comunica/utils-algebra": "4.4.2-alpha.49.0"
49
49
  },
50
- "gitHead": "27acde56dfe0c1ff1162c1f46818ad752296ca88"
50
+ "gitHead": "ef6f96cfd8faf7c37955bb7e0fe9f6fc6a994bdf"
51
51
  }