@comunica/bus-bindings-aggregator-factory 4.0.1-alpha.48.0 → 4.0.2

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.
@@ -109,6 +109,7 @@
109
109
  }
110
110
  ]
111
111
  },
112
+ "default": "Creation of Aggregator failed: none of the configured actors were able to handle ${action.expr.aggregator}",
112
113
  "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}\""
113
114
  },
114
115
  {
@@ -17,7 +17,9 @@ import type { Algebra } from 'sparqlalgebrajs';
17
17
  export declare abstract class ActorBindingsAggregatorFactory<TS = undefined> extends Actor<IActionBindingsAggregatorFactory, IActorTest, IActorBindingsAggregatorFactoryOutput, TS> {
18
18
  protected readonly mediatorExpressionEvaluatorFactory: MediatorExpressionEvaluatorFactory;
19
19
  /**
20
- * @param args - @defaultNested {<default_bus> a <cc:components/Bus.jsonld#Bus>} bus
20
+ * @param args -
21
+ * \ @defaultNested {<default_bus> a <cc:components/Bus.jsonld#Bus>} bus
22
+ * \ @defaultNested {Creation of Aggregator failed: none of the configured actors were able to handle ${action.expr.aggregator}} busFailMessage
21
23
  */
22
24
  protected constructor(args: IActorBindingsAggregatorFactoryArgs<TS>);
23
25
  }
@@ -14,9 +14,13 @@ const core_1 = require("@comunica/core");
14
14
  * @see IActorBindingsAggregatorFactoryOutput
15
15
  */
16
16
  class ActorBindingsAggregatorFactory extends core_1.Actor {
17
+ /* eslint-disable max-len */
17
18
  /**
18
- * @param args - @defaultNested {<default_bus> a <cc:components/Bus.jsonld#Bus>} bus
19
+ * @param args -
20
+ * \ @defaultNested {<default_bus> a <cc:components/Bus.jsonld#Bus>} bus
21
+ * \ @defaultNested {Creation of Aggregator failed: none of the configured actors were able to handle ${action.expr.aggregator}} busFailMessage
19
22
  */
23
+ /* eslint-enable max-len */
20
24
  constructor(args) {
21
25
  super(args);
22
26
  this.mediatorExpressionEvaluatorFactory = args.mediatorExpressionEvaluatorFactory;
@@ -1 +1 @@
1
- {"version":3,"file":"ActorBindingsAggregatorFactory.js","sourceRoot":"","sources":["ActorBindingsAggregatorFactory.ts"],"names":[],"mappings":";;;AAIA,yCAAuC;AAIvC;;;;;;;;;;GAUG;AACH,MAAsB,8BAA+C,SAAQ,YAK5E;IAGC;;OAEG;IACH,YAAsB,IAA6C;QACjE,KAAK,CAAC,IAAI,CAAC,CAAC;QACZ,IAAI,CAAC,kCAAkC,GAAG,IAAI,CAAC,kCAAkC,CAAC;IACpF,CAAC;CACF;AAfD,wEAeC","sourcesContent":["import type {\n MediatorExpressionEvaluatorFactory,\n} from '@comunica/bus-expression-evaluator-factory';\nimport type { IAction, IActorArgs, IActorOutput, IActorTest, Mediate } from '@comunica/core';\nimport { Actor } from '@comunica/core';\nimport type * as RDF from '@rdfjs/types';\nimport type { Algebra } from 'sparqlalgebrajs';\n\n/**\n * A comunica actor for creating Binding-Aggregator-factories.\n *\n * Actor types:\n * * Input: IActionBindingsAggregatorFactory: A SPARQL expression and a factory for an expression evaluator.\n * * Test: <none>\n * * Output: IActorBindingsAggregatorFactoryOutput: An aggregator of RDF bindings.\n *\n * @see IActionBindingsAggregatorFactory\n * @see IActorBindingsAggregatorFactoryOutput\n */\nexport abstract class ActorBindingsAggregatorFactory<TS = undefined> extends Actor<\nIActionBindingsAggregatorFactory,\nIActorTest,\nIActorBindingsAggregatorFactoryOutput,\nTS\n> {\n protected readonly mediatorExpressionEvaluatorFactory: MediatorExpressionEvaluatorFactory;\n\n /**\n * @param args - @defaultNested {<default_bus> a <cc:components/Bus.jsonld#Bus>} bus\n */\n protected constructor(args: IActorBindingsAggregatorFactoryArgs<TS>) {\n super(args);\n this.mediatorExpressionEvaluatorFactory = args.mediatorExpressionEvaluatorFactory;\n }\n}\n\nexport interface IActionBindingsAggregatorFactory extends IAction {\n expr: Algebra.AggregateExpression;\n}\n\n/**\n * Instances of this interface perform a specific aggregation of bindings.\n * You can put bindings and when all bindings have been put, request the result.\n */\nexport interface IBindingsAggregator {\n /**\n * Registers bindings to the aggregator. Each binding you put has the ability to change the aggregation result.\n * @param bindings the bindings to put.\n */\n putBindings: (bindings: RDF.Bindings) => Promise<void>;\n\n /**\n * Request the result term of aggregating the bindings you have put in the aggregator.\n */\n result: () => Promise<RDF.Term | undefined>;\n}\n\nexport interface IActorBindingsAggregatorFactoryOutput extends IActorOutput, IBindingsAggregator {}\n\nexport interface IActorBindingsAggregatorFactoryArgs<TS = undefined> extends IActorArgs<\nIActionBindingsAggregatorFactory,\nIActorTest,\nIActorBindingsAggregatorFactoryOutput,\nTS\n> {\n mediatorExpressionEvaluatorFactory: MediatorExpressionEvaluatorFactory;\n}\n\nexport type MediatorBindingsAggregatorFactory = Mediate<\nIActionBindingsAggregatorFactory,\nIActorBindingsAggregatorFactoryOutput\n>;\n"]}
1
+ {"version":3,"file":"ActorBindingsAggregatorFactory.js","sourceRoot":"","sources":["ActorBindingsAggregatorFactory.ts"],"names":[],"mappings":";;;AAIA,yCAAuC;AAIvC;;;;;;;;;;GAUG;AACH,MAAsB,8BAA+C,SAAQ,YAK5E;IAEC,4BAA4B;IAC5B;;;;OAIG;IACH,2BAA2B;IAC3B,YAAsB,IAA6C;QACjE,KAAK,CAAC,IAAI,CAAC,CAAC;QACZ,IAAI,CAAC,kCAAkC,GAAG,IAAI,CAAC,kCAAkC,CAAC;IACpF,CAAC;CACF;AAlBD,wEAkBC","sourcesContent":["import type {\n MediatorExpressionEvaluatorFactory,\n} from '@comunica/bus-expression-evaluator-factory';\nimport type { IAction, IActorArgs, IActorOutput, IActorTest, Mediate } from '@comunica/core';\nimport { Actor } from '@comunica/core';\nimport type * as RDF from '@rdfjs/types';\nimport type { Algebra } from 'sparqlalgebrajs';\n\n/**\n * A comunica actor for creating Binding-Aggregator-factories.\n *\n * Actor types:\n * * Input: IActionBindingsAggregatorFactory: A SPARQL expression and a factory for an expression evaluator.\n * * Test: <none>\n * * Output: IActorBindingsAggregatorFactoryOutput: An aggregator of RDF bindings.\n *\n * @see IActionBindingsAggregatorFactory\n * @see IActorBindingsAggregatorFactoryOutput\n */\nexport abstract class ActorBindingsAggregatorFactory<TS = undefined> extends Actor<\nIActionBindingsAggregatorFactory,\nIActorTest,\nIActorBindingsAggregatorFactoryOutput,\nTS\n> {\n protected readonly mediatorExpressionEvaluatorFactory: MediatorExpressionEvaluatorFactory;\n /* eslint-disable max-len */\n /**\n * @param args -\n * \\ @defaultNested {<default_bus> a <cc:components/Bus.jsonld#Bus>} bus\n * \\ @defaultNested {Creation of Aggregator failed: none of the configured actors were able to handle ${action.expr.aggregator}} busFailMessage\n */\n /* eslint-enable max-len */\n protected constructor(args: IActorBindingsAggregatorFactoryArgs<TS>) {\n super(args);\n this.mediatorExpressionEvaluatorFactory = args.mediatorExpressionEvaluatorFactory;\n }\n}\n\nexport interface IActionBindingsAggregatorFactory extends IAction {\n expr: Algebra.AggregateExpression;\n}\n\n/**\n * Instances of this interface perform a specific aggregation of bindings.\n * You can put bindings and when all bindings have been put, request the result.\n */\nexport interface IBindingsAggregator {\n /**\n * Registers bindings to the aggregator. Each binding you put has the ability to change the aggregation result.\n * @param bindings the bindings to put.\n */\n putBindings: (bindings: RDF.Bindings) => Promise<void>;\n\n /**\n * Request the result term of aggregating the bindings you have put in the aggregator.\n */\n result: () => Promise<RDF.Term | undefined>;\n}\n\nexport interface IActorBindingsAggregatorFactoryOutput extends IActorOutput, IBindingsAggregator {}\n\nexport interface IActorBindingsAggregatorFactoryArgs<TS = undefined> extends IActorArgs<\nIActionBindingsAggregatorFactory,\nIActorTest,\nIActorBindingsAggregatorFactoryOutput,\nTS\n> {\n mediatorExpressionEvaluatorFactory: MediatorExpressionEvaluatorFactory;\n}\n\nexport type MediatorBindingsAggregatorFactory = Mediate<\nIActionBindingsAggregatorFactory,\nIActorBindingsAggregatorFactoryOutput\n>;\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@comunica/bus-bindings-aggregator-factory",
3
- "version": "4.0.1-alpha.48.0",
3
+ "version": "4.0.2",
4
4
  "description": "A comunica actor for creating Binding-Aggregators.",
5
5
  "lsd:module": true,
6
6
  "license": "MIT",
@@ -36,14 +36,14 @@
36
36
  "build:components": "componentsjs-generator"
37
37
  },
38
38
  "dependencies": {
39
- "@comunica/bus-expression-evaluator-factory": "4.0.1-alpha.48.0",
40
- "@comunica/context-entries": "4.0.1-alpha.48.0",
41
- "@comunica/core": "4.0.1-alpha.48.0",
42
- "@comunica/types": "4.0.1-alpha.48.0",
43
- "@comunica/utils-expression-evaluator": "4.0.1-alpha.48.0",
39
+ "@comunica/bus-expression-evaluator-factory": "^4.0.2",
40
+ "@comunica/context-entries": "^4.0.2",
41
+ "@comunica/core": "^4.0.2",
42
+ "@comunica/types": "^4.0.2",
43
+ "@comunica/utils-expression-evaluator": "^4.0.2",
44
44
  "@rdfjs/types": "*",
45
45
  "rdf-string": "^1.6.3",
46
46
  "sparqlalgebrajs": "^4.2.0"
47
47
  },
48
- "gitHead": "4cc37905eab2c94a2e1d9cee0f51c53604f07da1"
48
+ "gitHead": "b60deab76821557f8d027208ab743d3c66fc60ea"
49
49
  }