@comunica/actor-query-operation-bgp-join 3.2.4-alpha.47.0 → 3.3.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.
@@ -54,10 +54,6 @@
54
54
  {
55
55
  "@type": "ParameterRangeGenericTypeReference",
56
56
  "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_O"
57
- },
58
- {
59
- "@type": "ParameterRangeGenericTypeReference",
60
- "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_TS"
61
57
  }
62
58
  ]
63
59
  },
@@ -72,10 +68,6 @@
72
68
  {
73
69
  "@type": "ParameterRangeGenericTypeReference",
74
70
  "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_O"
75
- },
76
- {
77
- "@type": "ParameterRangeGenericTypeReference",
78
- "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_TS"
79
71
  }
80
72
  ]
81
73
  },
@@ -85,20 +77,6 @@
85
77
  },
86
78
  "comment": "The bus this actor subscribes to."
87
79
  },
88
- {
89
- "@id": "caqobj:components/ActorQueryOperationBgpJoin.jsonld#ActorQueryOperationBgpJoin_args_busFailMessage",
90
- "range": {
91
- "@type": "ParameterRangeUnion",
92
- "parameterRangeElements": [
93
- "xsd:string",
94
- {
95
- "@type": "ParameterRangeUndefined"
96
- }
97
- ]
98
- },
99
- "default": "Query operation processing failed: none of the configured actors were able to handle the operation type ${action.operation.type}",
100
- "comment": "The message that will be configured in the bus for reporting failures. This message may be a template string that contains references to the executed `action`. For example, the following templated string is allowed: \"RDF dereferencing failed: no actors could handle ${action.handle.mediaType}\""
101
- },
102
80
  {
103
81
  "@id": "caqobj:components/ActorQueryOperationBgpJoin.jsonld#ActorQueryOperationBgpJoin_args_beforeActors",
104
82
  "range": {
@@ -121,10 +99,6 @@
121
99
  {
122
100
  "@type": "ParameterRangeGenericTypeReference",
123
101
  "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_O"
124
- },
125
- {
126
- "@type": "ParameterRangeGenericTypeReference",
127
- "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_TS"
128
102
  }
129
103
  ]
130
104
  }
@@ -138,6 +112,13 @@
138
112
  }
139
113
  ],
140
114
  "memberFields": [
115
+ {
116
+ "@id": "caqobj:components/ActorQueryOperationBgpJoin.jsonld#ActorQueryOperationBgpJoin__member_FACTORY",
117
+ "memberFieldName": "FACTORY",
118
+ "range": {
119
+ "@type": "ParameterRangeWildcard"
120
+ }
121
+ },
141
122
  {
142
123
  "@id": "caqobj:components/ActorQueryOperationBgpJoin.jsonld#ActorQueryOperationBgpJoin__member_constructor",
143
124
  "memberFieldName": "constructor"
@@ -173,12 +154,6 @@
173
154
  "@id": "caqobj:components/ActorQueryOperationBgpJoin.jsonld#ActorQueryOperationBgpJoin_args_bus"
174
155
  }
175
156
  },
176
- {
177
- "keyRaw": "busFailMessage",
178
- "value": {
179
- "@id": "caqobj:components/ActorQueryOperationBgpJoin.jsonld#ActorQueryOperationBgpJoin_args_busFailMessage"
180
- }
181
- },
182
157
  {
183
158
  "keyRaw": "beforeActors",
184
159
  "value": {
@@ -17,9 +17,6 @@
17
17
  "args_bus": {
18
18
  "@id": "caqobj:components/ActorQueryOperationBgpJoin.jsonld#ActorQueryOperationBgpJoin_args_bus"
19
19
  },
20
- "args_busFailMessage": {
21
- "@id": "caqobj:components/ActorQueryOperationBgpJoin.jsonld#ActorQueryOperationBgpJoin_args_busFailMessage"
22
- },
23
20
  "args_beforeActors": {
24
21
  "@id": "caqobj:components/ActorQueryOperationBgpJoin.jsonld#ActorQueryOperationBgpJoin_args_beforeActors",
25
22
  "@container": "@list"
@@ -33,9 +30,6 @@
33
30
  "bus": {
34
31
  "@id": "caqobj:components/ActorQueryOperationBgpJoin.jsonld#ActorQueryOperationBgpJoin_args_bus"
35
32
  },
36
- "busFailMessage": {
37
- "@id": "caqobj:components/ActorQueryOperationBgpJoin.jsonld#ActorQueryOperationBgpJoin_args_busFailMessage"
38
- },
39
33
  "beforeActors": {
40
34
  "@id": "caqobj:components/ActorQueryOperationBgpJoin.jsonld#ActorQueryOperationBgpJoin_args_beforeActors",
41
35
  "@container": "@list"
@@ -1,14 +1,16 @@
1
1
  import type { IActorQueryOperationTypedMediatedArgs } from '@comunica/bus-query-operation';
2
2
  import { ActorQueryOperationTypedMediated } from '@comunica/bus-query-operation';
3
- import type { IActorTest, TestResult } from '@comunica/core';
3
+ import type { IActorTest } from '@comunica/core';
4
4
  import type { IActionContext, IQueryOperationResult } from '@comunica/types';
5
+ import { Factory } from 'sparqlalgebrajs';
5
6
  import type { Algebra } from 'sparqlalgebrajs';
6
7
  /**
7
8
  * A [Query Operation](https://github.com/comunica/comunica/tree/master/packages/bus-query-operation) actor
8
9
  * that handles SPARQL BGP operations by rewriting it as a join operator.
9
10
  */
10
11
  export declare class ActorQueryOperationBgpJoin extends ActorQueryOperationTypedMediated<Algebra.Bgp> {
12
+ static readonly FACTORY: Factory;
11
13
  constructor(args: IActorQueryOperationTypedMediatedArgs);
12
- testOperation(_operation: Algebra.Bgp, _context: IActionContext): Promise<TestResult<IActorTest>>;
14
+ testOperation(_operation: Algebra.Bgp, _context: IActionContext): Promise<IActorTest>;
13
15
  runOperation(operation: Algebra.Bgp, context: IActionContext): Promise<IQueryOperationResult>;
14
16
  }
@@ -2,8 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ActorQueryOperationBgpJoin = void 0;
4
4
  const bus_query_operation_1 = require("@comunica/bus-query-operation");
5
- const context_entries_1 = require("@comunica/context-entries");
6
- const core_1 = require("@comunica/core");
7
5
  const sparqlalgebrajs_1 = require("sparqlalgebrajs");
8
6
  /**
9
7
  * A [Query Operation](https://github.com/comunica/comunica/tree/master/packages/bus-query-operation) actor
@@ -14,16 +12,15 @@ class ActorQueryOperationBgpJoin extends bus_query_operation_1.ActorQueryOperati
14
12
  super(args, 'bgp');
15
13
  }
16
14
  async testOperation(_operation, _context) {
17
- return (0, core_1.passTestVoid)();
15
+ return true;
18
16
  }
19
17
  async runOperation(operation, context) {
20
- const dataFactory = context.getSafe(context_entries_1.KeysInitQuery.dataFactory);
21
- const algebraFactory = new sparqlalgebrajs_1.Factory(dataFactory);
22
18
  return this.mediatorQueryOperation.mediate({
23
- operation: algebraFactory.createJoin(operation.patterns),
19
+ operation: ActorQueryOperationBgpJoin.FACTORY.createJoin(operation.patterns),
24
20
  context,
25
21
  });
26
22
  }
27
23
  }
28
24
  exports.ActorQueryOperationBgpJoin = ActorQueryOperationBgpJoin;
25
+ ActorQueryOperationBgpJoin.FACTORY = new sparqlalgebrajs_1.Factory();
29
26
  //# sourceMappingURL=ActorQueryOperationBgpJoin.js.map
@@ -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;AAGjF,qDAA0C;AAG1C;;;GAGG;AACH,MAAa,0BAA2B,SAAQ,sDAA6C;IAG3F,YAAmB,IAA2C;QAC5D,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACrB,CAAC;IAEM,KAAK,CAAC,aAAa,CAAC,UAAuB,EAAE,QAAwB;QAC1E,OAAO,IAAI,CAAC;IACd,CAAC;IAEM,KAAK,CAAC,YAAY,CAAC,SAAsB,EAAE,OAAuB;QAEvE,OAAO,IAAI,CAAC,sBAAsB,CAAC,OAAO,CAAC;YACzC,SAAS,EAAE,0BAA0B,CAAC,OAAO,CAAC,UAAU,CAAC,SAAS,CAAC,QAAQ,CAAC;YAC5E,OAAO;SACR,CAAC,CAAC;IACL,CAAC;;AAjBH,gEAkBC;AAjBwB,kCAAO,GAAG,IAAI,yBAAO,EAAE,CAAC","sourcesContent":["import type { IActorQueryOperationTypedMediatedArgs } from '@comunica/bus-query-operation';\nimport { ActorQueryOperationTypedMediated } from '@comunica/bus-query-operation';\nimport type { IActorTest } from '@comunica/core';\nimport type { 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 static readonly FACTORY = new Factory();\n\n public constructor(args: IActorQueryOperationTypedMediatedArgs) {\n super(args, 'bgp');\n }\n\n public async testOperation(_operation: Algebra.Bgp, _context: IActionContext): Promise<IActorTest> {\n return true;\n }\n\n public async runOperation(operation: Algebra.Bgp, context: IActionContext):\n Promise<IQueryOperationResult> {\n return this.mediatorQueryOperation.mediate({\n operation: ActorQueryOperationBgpJoin.FACTORY.createJoin(operation.patterns),\n context,\n });\n }\n}\n"]}
package/package.json CHANGED
@@ -1,13 +1,9 @@
1
1
  {
2
2
  "name": "@comunica/actor-query-operation-bgp-join",
3
- "version": "3.2.4-alpha.47.0",
3
+ "version": "3.3.0",
4
4
  "description": "A bgp-join query-operation actor",
5
5
  "lsd:module": true,
6
6
  "license": "MIT",
7
- "funding": {
8
- "type": "opencollective",
9
- "url": "https://opencollective.com/comunica-association"
10
- },
11
7
  "homepage": "https://comunica.dev/",
12
8
  "repository": {
13
9
  "type": "git",
@@ -41,11 +37,10 @@
41
37
  "build:components": "componentsjs-generator"
42
38
  },
43
39
  "dependencies": {
44
- "@comunica/bus-query-operation": "3.2.4-alpha.47.0",
45
- "@comunica/context-entries": "3.2.4-alpha.47.0",
46
- "@comunica/core": "3.2.4-alpha.47.0",
47
- "@comunica/types": "3.2.4-alpha.47.0",
48
- "sparqlalgebrajs": "^4.3.8"
40
+ "@comunica/bus-query-operation": "^3.3.0",
41
+ "@comunica/core": "^3.3.0",
42
+ "@comunica/types": "^3.3.0",
43
+ "sparqlalgebrajs": "^4.3.7"
49
44
  },
50
- "gitHead": "85bd4c5cf07dfc293ebbc3a1416b70e2db8bfc48"
45
+ "gitHead": "02bde397d206f1f5a523643a6a604c89e792e2f9"
51
46
  }