@comunica/bus-bindings-aggregator-factory 3.2.4-alpha.47.0 → 4.0.1
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/ActorBindingsAggregatorFactory.jsonld +15 -14
- package/components/components.jsonld +1 -1
- package/components/context.jsonld +1 -1
- package/lib/ActorBindingsAggregatorFactory.d.ts +3 -1
- package/lib/ActorBindingsAggregatorFactory.js +5 -1
- package/lib/ActorBindingsAggregatorFactory.js.map +1 -1
- package/package.json +7 -7
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"@context": [
|
|
3
|
-
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-bindings-aggregator-factory/^
|
|
4
|
-
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/core/^
|
|
3
|
+
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-bindings-aggregator-factory/^4.0.0/components/context.jsonld",
|
|
4
|
+
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/core/^4.0.0/components/context.jsonld"
|
|
5
5
|
],
|
|
6
6
|
"@id": "npmd:@comunica/bus-bindings-aggregator-factory",
|
|
7
7
|
"components": [
|
|
@@ -58,37 +58,37 @@
|
|
|
58
58
|
"genericTypeInstances": [
|
|
59
59
|
{
|
|
60
60
|
"@type": "ParameterRangeGenericTypeReference",
|
|
61
|
-
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^
|
|
61
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_I"
|
|
62
62
|
},
|
|
63
63
|
{
|
|
64
64
|
"@type": "ParameterRangeGenericTypeReference",
|
|
65
|
-
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^
|
|
65
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_T"
|
|
66
66
|
},
|
|
67
67
|
{
|
|
68
68
|
"@type": "ParameterRangeGenericTypeReference",
|
|
69
|
-
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^
|
|
69
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_O"
|
|
70
70
|
},
|
|
71
71
|
{
|
|
72
72
|
"@type": "ParameterRangeGenericTypeReference",
|
|
73
|
-
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^
|
|
73
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_TS"
|
|
74
74
|
}
|
|
75
75
|
]
|
|
76
76
|
},
|
|
77
77
|
{
|
|
78
78
|
"@type": "ParameterRangeGenericTypeReference",
|
|
79
|
-
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^
|
|
79
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_I"
|
|
80
80
|
},
|
|
81
81
|
{
|
|
82
82
|
"@type": "ParameterRangeGenericTypeReference",
|
|
83
|
-
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^
|
|
83
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_T"
|
|
84
84
|
},
|
|
85
85
|
{
|
|
86
86
|
"@type": "ParameterRangeGenericTypeReference",
|
|
87
|
-
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^
|
|
87
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_O"
|
|
88
88
|
},
|
|
89
89
|
{
|
|
90
90
|
"@type": "ParameterRangeGenericTypeReference",
|
|
91
|
-
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^
|
|
91
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_TS"
|
|
92
92
|
}
|
|
93
93
|
]
|
|
94
94
|
},
|
|
@@ -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
|
{
|
|
@@ -124,19 +125,19 @@
|
|
|
124
125
|
"genericTypeInstances": [
|
|
125
126
|
{
|
|
126
127
|
"@type": "ParameterRangeGenericTypeReference",
|
|
127
|
-
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^
|
|
128
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_I"
|
|
128
129
|
},
|
|
129
130
|
{
|
|
130
131
|
"@type": "ParameterRangeGenericTypeReference",
|
|
131
|
-
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^
|
|
132
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_T"
|
|
132
133
|
},
|
|
133
134
|
{
|
|
134
135
|
"@type": "ParameterRangeGenericTypeReference",
|
|
135
|
-
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^
|
|
136
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_O"
|
|
136
137
|
},
|
|
137
138
|
{
|
|
138
139
|
"@type": "ParameterRangeGenericTypeReference",
|
|
139
|
-
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^
|
|
140
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_TS"
|
|
140
141
|
}
|
|
141
142
|
]
|
|
142
143
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"@context": [
|
|
3
|
-
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-bindings-aggregator-factory/^
|
|
3
|
+
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-bindings-aggregator-factory/^4.0.0/components/context.jsonld"
|
|
4
4
|
],
|
|
5
5
|
"@id": "npmd:@comunica/bus-bindings-aggregator-factory",
|
|
6
6
|
"@type": "Module",
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"https://linkedsoftwaredependencies.org/bundles/npm/componentsjs/^6.0.0/components/context.jsonld",
|
|
4
4
|
{
|
|
5
5
|
"npmd": "https://linkedsoftwaredependencies.org/bundles/npm/",
|
|
6
|
-
"cbbaf": "npmd:@comunica/bus-bindings-aggregator-factory/^
|
|
6
|
+
"cbbaf": "npmd:@comunica/bus-bindings-aggregator-factory/^4.0.0/",
|
|
7
7
|
"ActorBindingsAggregatorFactory": {
|
|
8
8
|
"@id": "cbbaf:components/ActorBindingsAggregatorFactory.jsonld#ActorBindingsAggregatorFactory",
|
|
9
9
|
"@prefix": true,
|
|
@@ -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 -
|
|
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 -
|
|
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;
|
|
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": "
|
|
3
|
+
"version": "4.0.1",
|
|
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": "
|
|
40
|
-
"@comunica/context-entries": "
|
|
41
|
-
"@comunica/core": "
|
|
42
|
-
"@comunica/types": "
|
|
43
|
-
"@comunica/utils-expression-evaluator": "
|
|
39
|
+
"@comunica/bus-expression-evaluator-factory": "^4.0.1",
|
|
40
|
+
"@comunica/context-entries": "^4.0.1",
|
|
41
|
+
"@comunica/core": "^4.0.1",
|
|
42
|
+
"@comunica/types": "^4.0.1",
|
|
43
|
+
"@comunica/utils-expression-evaluator": "^4.0.1",
|
|
44
44
|
"@rdfjs/types": "*",
|
|
45
45
|
"rdf-string": "^1.6.3",
|
|
46
46
|
"sparqlalgebrajs": "^4.2.0"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "67831ba79e45ea1ced41fe3f83c5d6e8802dbeaa"
|
|
49
49
|
}
|