@comunica/actor-bindings-aggregator-factory-sum 3.2.4-alpha.47.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/LICENSE.txt +22 -0
- package/README.md +35 -0
- package/components/ActorBindingsAggregatorFactorySum.jsonld +216 -0
- package/components/SumAggregator.jsonld +100 -0
- package/components/components.jsonld +12 -0
- package/components/context.jsonld +82 -0
- package/lib/ActorBindingsAggregatorFactorySum.d.ts +16 -0
- package/lib/ActorBindingsAggregatorFactorySum.js +32 -0
- package/lib/ActorBindingsAggregatorFactorySum.js.map +1 -0
- package/lib/SumAggregator.d.ts +13 -0
- package/lib/SumAggregator.js +33 -0
- package/lib/SumAggregator.js.map +1 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.js +19 -0
- package/lib/index.js.map +1 -0
- package/package.json +49 -0
package/LICENSE.txt
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright © 2017–now Ruben Taelman, Joachim Van Herwegen
|
|
4
|
+
Comunica Association and Ghent University – imec, Belgium
|
|
5
|
+
|
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
in the Software without restriction, including without limitation the rights
|
|
9
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
furnished to do so, subject to the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be included in
|
|
14
|
+
all copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
22
|
+
THE SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# Comunica Bindings Aggregator Factory Sum Actor
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/@comunica/actor-bindings-aggregator-factory-sum)
|
|
4
|
+
|
|
5
|
+
A comunica bindings aggregator factory for the sum aggregator.
|
|
6
|
+
|
|
7
|
+
This module is part of the [Comunica framework](https://github.com/comunica/comunica),
|
|
8
|
+
and should only be used by [developers that want to build their own query engine](https://comunica.dev/docs/modify/).
|
|
9
|
+
|
|
10
|
+
[Click here if you just want to query with Comunica](https://comunica.dev/docs/query/).
|
|
11
|
+
|
|
12
|
+
## Install
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
$ yarn add @comunica/actor-bindings-aggregator-factory-sum
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Configure
|
|
19
|
+
|
|
20
|
+
After installing, this package can be added to your engine's configuration as follows:
|
|
21
|
+
```text
|
|
22
|
+
{
|
|
23
|
+
"@context": [
|
|
24
|
+
...
|
|
25
|
+
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-bindings-aggregator-factory-sum/^1.0.0/components/context.jsonld"
|
|
26
|
+
],
|
|
27
|
+
"actors": [
|
|
28
|
+
...
|
|
29
|
+
{
|
|
30
|
+
"@id": "urn:comunica:default:bindings-aggregator-factory/actors#sum",
|
|
31
|
+
"@type": "ActorBindingsAggregatorFactorySum"
|
|
32
|
+
}
|
|
33
|
+
]
|
|
34
|
+
}
|
|
35
|
+
```
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
{
|
|
2
|
+
"@context": [
|
|
3
|
+
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-bindings-aggregator-factory-sum/^3.0.0/components/context.jsonld",
|
|
4
|
+
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/core/^3.0.0/components/context.jsonld",
|
|
5
|
+
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-bindings-aggregator-factory/^3.0.0/components/context.jsonld"
|
|
6
|
+
],
|
|
7
|
+
"@id": "npmd:@comunica/actor-bindings-aggregator-factory-sum",
|
|
8
|
+
"components": [
|
|
9
|
+
{
|
|
10
|
+
"@id": "cabafs:components/ActorBindingsAggregatorFactorySum.jsonld#ActorBindingsAggregatorFactorySum",
|
|
11
|
+
"@type": "Class",
|
|
12
|
+
"requireElement": "ActorBindingsAggregatorFactorySum",
|
|
13
|
+
"extends": [
|
|
14
|
+
"cbbaf:components/ActorBindingsAggregatorFactory.jsonld#ActorBindingsAggregatorFactory"
|
|
15
|
+
],
|
|
16
|
+
"comment": "A comunica Sum Expression Evaluator Aggregate Actor.",
|
|
17
|
+
"parameters": [
|
|
18
|
+
{
|
|
19
|
+
"@id": "cabafs:components/ActorBindingsAggregatorFactorySum.jsonld#ActorBindingsAggregatorFactorySum_args_mediatorFunctionFactory",
|
|
20
|
+
"range": "cc:components/Mediator.jsonld#Mediator"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"@id": "cabafs:components/ActorBindingsAggregatorFactorySum.jsonld#ActorBindingsAggregatorFactorySum_args_mediatorExpressionEvaluatorFactory",
|
|
24
|
+
"range": "cc:components/Mediator.jsonld#Mediator"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"@id": "cabafs:components/ActorBindingsAggregatorFactorySum.jsonld#ActorBindingsAggregatorFactorySum_args_name",
|
|
28
|
+
"range": "xsd:string",
|
|
29
|
+
"default": {
|
|
30
|
+
"@id": "rdf:subject"
|
|
31
|
+
},
|
|
32
|
+
"comment": "The name for this actor."
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"@id": "cabafs:components/ActorBindingsAggregatorFactorySum.jsonld#ActorBindingsAggregatorFactorySum_args_bus",
|
|
36
|
+
"range": {
|
|
37
|
+
"@type": "ParameterRangeGenericComponent",
|
|
38
|
+
"component": "cc:components/Bus.jsonld#Bus",
|
|
39
|
+
"genericTypeInstances": [
|
|
40
|
+
{
|
|
41
|
+
"@type": "ParameterRangeGenericComponent",
|
|
42
|
+
"component": "cc:components/Actor.jsonld#Actor",
|
|
43
|
+
"genericTypeInstances": [
|
|
44
|
+
{
|
|
45
|
+
"@type": "ParameterRangeGenericTypeReference",
|
|
46
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_I"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"@type": "ParameterRangeGenericTypeReference",
|
|
50
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_T"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"@type": "ParameterRangeGenericTypeReference",
|
|
54
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_O"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"@type": "ParameterRangeGenericTypeReference",
|
|
58
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_TS"
|
|
59
|
+
}
|
|
60
|
+
]
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"@type": "ParameterRangeGenericTypeReference",
|
|
64
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_I"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"@type": "ParameterRangeGenericTypeReference",
|
|
68
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_T"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"@type": "ParameterRangeGenericTypeReference",
|
|
72
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_O"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"@type": "ParameterRangeGenericTypeReference",
|
|
76
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_TS"
|
|
77
|
+
}
|
|
78
|
+
]
|
|
79
|
+
},
|
|
80
|
+
"default": {
|
|
81
|
+
"@id": "cbbaf:components/ActorBindingsAggregatorFactory.jsonld#ActorBindingsAggregatorFactory_default_bus",
|
|
82
|
+
"@type": "cc:components/Bus.jsonld#Bus"
|
|
83
|
+
},
|
|
84
|
+
"comment": "The bus this actor subscribes to."
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"@id": "cabafs:components/ActorBindingsAggregatorFactorySum.jsonld#ActorBindingsAggregatorFactorySum_args_busFailMessage",
|
|
88
|
+
"range": {
|
|
89
|
+
"@type": "ParameterRangeUnion",
|
|
90
|
+
"parameterRangeElements": [
|
|
91
|
+
"xsd:string",
|
|
92
|
+
{
|
|
93
|
+
"@type": "ParameterRangeUndefined"
|
|
94
|
+
}
|
|
95
|
+
]
|
|
96
|
+
},
|
|
97
|
+
"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}\""
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"@id": "cabafs:components/ActorBindingsAggregatorFactorySum.jsonld#ActorBindingsAggregatorFactorySum_args_beforeActors",
|
|
101
|
+
"range": {
|
|
102
|
+
"@type": "ParameterRangeUnion",
|
|
103
|
+
"parameterRangeElements": [
|
|
104
|
+
{
|
|
105
|
+
"@type": "ParameterRangeArray",
|
|
106
|
+
"parameterRangeValue": {
|
|
107
|
+
"@type": "ParameterRangeGenericComponent",
|
|
108
|
+
"component": "cc:components/Actor.jsonld#Actor",
|
|
109
|
+
"genericTypeInstances": [
|
|
110
|
+
{
|
|
111
|
+
"@type": "ParameterRangeGenericTypeReference",
|
|
112
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_I"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"@type": "ParameterRangeGenericTypeReference",
|
|
116
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_T"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"@type": "ParameterRangeGenericTypeReference",
|
|
120
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_O"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"@type": "ParameterRangeGenericTypeReference",
|
|
124
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_TS"
|
|
125
|
+
}
|
|
126
|
+
]
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"@type": "ParameterRangeUndefined"
|
|
131
|
+
}
|
|
132
|
+
]
|
|
133
|
+
},
|
|
134
|
+
"comment": "Actor that must be registered in the bus before this actor."
|
|
135
|
+
}
|
|
136
|
+
],
|
|
137
|
+
"memberFields": [
|
|
138
|
+
{
|
|
139
|
+
"@id": "cabafs:components/ActorBindingsAggregatorFactorySum.jsonld#ActorBindingsAggregatorFactorySum__member_mediatorFunctionFactory",
|
|
140
|
+
"memberFieldName": "mediatorFunctionFactory"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"@id": "cabafs:components/ActorBindingsAggregatorFactorySum.jsonld#ActorBindingsAggregatorFactorySum__member_constructor",
|
|
144
|
+
"memberFieldName": "constructor"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"@id": "cabafs:components/ActorBindingsAggregatorFactorySum.jsonld#ActorBindingsAggregatorFactorySum__member_test",
|
|
148
|
+
"memberFieldName": "test"
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"@id": "cabafs:components/ActorBindingsAggregatorFactorySum.jsonld#ActorBindingsAggregatorFactorySum__member_run",
|
|
152
|
+
"memberFieldName": "run"
|
|
153
|
+
}
|
|
154
|
+
],
|
|
155
|
+
"constructorArguments": [
|
|
156
|
+
{
|
|
157
|
+
"@id": "cabafs:components/ActorBindingsAggregatorFactorySum.jsonld#ActorBindingsAggregatorFactorySum_args__constructorArgument",
|
|
158
|
+
"fields": [
|
|
159
|
+
{
|
|
160
|
+
"keyRaw": "mediatorFunctionFactory",
|
|
161
|
+
"value": {
|
|
162
|
+
"@id": "cabafs:components/ActorBindingsAggregatorFactorySum.jsonld#ActorBindingsAggregatorFactorySum_args_mediatorFunctionFactory"
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"keyRaw": "mediatorExpressionEvaluatorFactory",
|
|
167
|
+
"value": {
|
|
168
|
+
"@id": "cabafs:components/ActorBindingsAggregatorFactorySum.jsonld#ActorBindingsAggregatorFactorySum_args_mediatorExpressionEvaluatorFactory"
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"keyRaw": "name",
|
|
173
|
+
"value": {
|
|
174
|
+
"@id": "cabafs:components/ActorBindingsAggregatorFactorySum.jsonld#ActorBindingsAggregatorFactorySum_args_name"
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"keyRaw": "bus",
|
|
179
|
+
"value": {
|
|
180
|
+
"@id": "cabafs:components/ActorBindingsAggregatorFactorySum.jsonld#ActorBindingsAggregatorFactorySum_args_bus"
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"keyRaw": "busFailMessage",
|
|
185
|
+
"value": {
|
|
186
|
+
"@id": "cabafs:components/ActorBindingsAggregatorFactorySum.jsonld#ActorBindingsAggregatorFactorySum_args_busFailMessage"
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"keyRaw": "beforeActors",
|
|
191
|
+
"value": {
|
|
192
|
+
"@id": "cabafs:components/ActorBindingsAggregatorFactorySum.jsonld#ActorBindingsAggregatorFactorySum_args_beforeActors"
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
]
|
|
196
|
+
}
|
|
197
|
+
]
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"@id": "cabafs:components/ActorBindingsAggregatorFactorySum.jsonld#IActorBindingsAggregatorFactorySumArgs",
|
|
201
|
+
"@type": "AbstractClass",
|
|
202
|
+
"requireElement": "IActorBindingsAggregatorFactorySumArgs",
|
|
203
|
+
"extends": [
|
|
204
|
+
"cbbaf:components/ActorBindingsAggregatorFactory.jsonld#IActorBindingsAggregatorFactoryArgs"
|
|
205
|
+
],
|
|
206
|
+
"parameters": [],
|
|
207
|
+
"memberFields": [
|
|
208
|
+
{
|
|
209
|
+
"@id": "cabafs:components/ActorBindingsAggregatorFactorySum.jsonld#IActorBindingsAggregatorFactorySumArgs__member_mediatorFunctionFactory",
|
|
210
|
+
"memberFieldName": "mediatorFunctionFactory"
|
|
211
|
+
}
|
|
212
|
+
],
|
|
213
|
+
"constructorArguments": []
|
|
214
|
+
}
|
|
215
|
+
]
|
|
216
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
{
|
|
2
|
+
"@context": [
|
|
3
|
+
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-bindings-aggregator-factory-sum/^3.0.0/components/context.jsonld",
|
|
4
|
+
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/types/^3.0.0/components/context.jsonld",
|
|
5
|
+
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-function-factory/^3.0.0/components/context.jsonld"
|
|
6
|
+
],
|
|
7
|
+
"@id": "npmd:@comunica/actor-bindings-aggregator-factory-sum",
|
|
8
|
+
"components": [
|
|
9
|
+
{
|
|
10
|
+
"@id": "cabafs:components/SumAggregator.jsonld#SumAggregator",
|
|
11
|
+
"@type": "Class",
|
|
12
|
+
"requireElement": "SumAggregator",
|
|
13
|
+
"parameters": [
|
|
14
|
+
{
|
|
15
|
+
"@id": "cabafs:components/SumAggregator.jsonld#SumAggregator_distinct",
|
|
16
|
+
"range": "xsd:boolean"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"@id": "cabafs:components/SumAggregator.jsonld#SumAggregator_evaluator",
|
|
20
|
+
"range": "ct:components/ExpressionEvaluator.jsonld#IExpressionEvaluator"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"@id": "cabafs:components/SumAggregator.jsonld#SumAggregator_additionFunction",
|
|
24
|
+
"range": "cbff:components/ActorFunctionFactory.jsonld#ITermFunction"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"@id": "cabafs:components/SumAggregator.jsonld#SumAggregator_throwError",
|
|
28
|
+
"range": {
|
|
29
|
+
"@type": "ParameterRangeUnion",
|
|
30
|
+
"parameterRangeElements": [
|
|
31
|
+
"xsd:boolean",
|
|
32
|
+
{
|
|
33
|
+
"@type": "ParameterRangeUndefined"
|
|
34
|
+
}
|
|
35
|
+
]
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"@id": "cabafs:components/SumAggregator.jsonld#SumAggregator_dataFactory",
|
|
40
|
+
"range": {
|
|
41
|
+
"@type": "ParameterRangeIntersection",
|
|
42
|
+
"parameterRangeElements": [
|
|
43
|
+
"urn:npm:@rdfjs/types:DataFactory",
|
|
44
|
+
{
|
|
45
|
+
"@type": "ParameterRangeWildcard"
|
|
46
|
+
}
|
|
47
|
+
]
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
],
|
|
51
|
+
"memberFields": [
|
|
52
|
+
{
|
|
53
|
+
"@id": "cabafs:components/SumAggregator.jsonld#SumAggregator__member_dataFactory",
|
|
54
|
+
"memberFieldName": "dataFactory"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"@id": "cabafs:components/SumAggregator.jsonld#SumAggregator__member_additionFunction",
|
|
58
|
+
"memberFieldName": "additionFunction"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"@id": "cabafs:components/SumAggregator.jsonld#SumAggregator__member_state",
|
|
62
|
+
"memberFieldName": "state"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"@id": "cabafs:components/SumAggregator.jsonld#SumAggregator__member_constructor",
|
|
66
|
+
"memberFieldName": "constructor"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"@id": "cabafs:components/SumAggregator.jsonld#SumAggregator__member_emptyValueTerm",
|
|
70
|
+
"memberFieldName": "emptyValueTerm"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"@id": "cabafs:components/SumAggregator.jsonld#SumAggregator__member_putTerm",
|
|
74
|
+
"memberFieldName": "putTerm"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"@id": "cabafs:components/SumAggregator.jsonld#SumAggregator__member_termResult",
|
|
78
|
+
"memberFieldName": "termResult"
|
|
79
|
+
}
|
|
80
|
+
],
|
|
81
|
+
"constructorArguments": [
|
|
82
|
+
{
|
|
83
|
+
"@id": "cabafs:components/SumAggregator.jsonld#SumAggregator_evaluator"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"@id": "cabafs:components/SumAggregator.jsonld#SumAggregator_distinct"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"@id": "cabafs:components/SumAggregator.jsonld#SumAggregator_dataFactory"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"@id": "cabafs:components/SumAggregator.jsonld#SumAggregator_additionFunction"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"@id": "cabafs:components/SumAggregator.jsonld#SumAggregator_throwError"
|
|
96
|
+
}
|
|
97
|
+
]
|
|
98
|
+
}
|
|
99
|
+
]
|
|
100
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"@context": [
|
|
3
|
+
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-bindings-aggregator-factory-sum/^3.0.0/components/context.jsonld"
|
|
4
|
+
],
|
|
5
|
+
"@id": "npmd:@comunica/actor-bindings-aggregator-factory-sum",
|
|
6
|
+
"@type": "Module",
|
|
7
|
+
"requireName": "@comunica/actor-bindings-aggregator-factory-sum",
|
|
8
|
+
"import": [
|
|
9
|
+
"cabafs:components/ActorBindingsAggregatorFactorySum.jsonld",
|
|
10
|
+
"cabafs:components/SumAggregator.jsonld"
|
|
11
|
+
]
|
|
12
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
{
|
|
2
|
+
"@context": [
|
|
3
|
+
"https://linkedsoftwaredependencies.org/bundles/npm/componentsjs/^6.0.0/components/context.jsonld",
|
|
4
|
+
{
|
|
5
|
+
"npmd": "https://linkedsoftwaredependencies.org/bundles/npm/",
|
|
6
|
+
"cabafs": "npmd:@comunica/actor-bindings-aggregator-factory-sum/^3.0.0/",
|
|
7
|
+
"ActorBindingsAggregatorFactorySum": {
|
|
8
|
+
"@id": "cabafs:components/ActorBindingsAggregatorFactorySum.jsonld#ActorBindingsAggregatorFactorySum",
|
|
9
|
+
"@prefix": true,
|
|
10
|
+
"@context": {
|
|
11
|
+
"args_mediatorFunctionFactory": {
|
|
12
|
+
"@id": "cabafs:components/ActorBindingsAggregatorFactorySum.jsonld#ActorBindingsAggregatorFactorySum_args_mediatorFunctionFactory"
|
|
13
|
+
},
|
|
14
|
+
"args_mediatorExpressionEvaluatorFactory": {
|
|
15
|
+
"@id": "cabafs:components/ActorBindingsAggregatorFactorySum.jsonld#ActorBindingsAggregatorFactorySum_args_mediatorExpressionEvaluatorFactory"
|
|
16
|
+
},
|
|
17
|
+
"args_name": {
|
|
18
|
+
"@id": "cabafs:components/ActorBindingsAggregatorFactorySum.jsonld#ActorBindingsAggregatorFactorySum_args_name"
|
|
19
|
+
},
|
|
20
|
+
"args_bus": {
|
|
21
|
+
"@id": "cabafs:components/ActorBindingsAggregatorFactorySum.jsonld#ActorBindingsAggregatorFactorySum_args_bus"
|
|
22
|
+
},
|
|
23
|
+
"args_busFailMessage": {
|
|
24
|
+
"@id": "cabafs:components/ActorBindingsAggregatorFactorySum.jsonld#ActorBindingsAggregatorFactorySum_args_busFailMessage"
|
|
25
|
+
},
|
|
26
|
+
"args_beforeActors": {
|
|
27
|
+
"@id": "cabafs:components/ActorBindingsAggregatorFactorySum.jsonld#ActorBindingsAggregatorFactorySum_args_beforeActors",
|
|
28
|
+
"@container": "@list"
|
|
29
|
+
},
|
|
30
|
+
"mediatorFunctionFactory": {
|
|
31
|
+
"@id": "cabafs:components/ActorBindingsAggregatorFactorySum.jsonld#ActorBindingsAggregatorFactorySum_args_mediatorFunctionFactory"
|
|
32
|
+
},
|
|
33
|
+
"mediatorExpressionEvaluatorFactory": {
|
|
34
|
+
"@id": "cabafs:components/ActorBindingsAggregatorFactorySum.jsonld#ActorBindingsAggregatorFactorySum_args_mediatorExpressionEvaluatorFactory"
|
|
35
|
+
},
|
|
36
|
+
"name": {
|
|
37
|
+
"@id": "cabafs:components/ActorBindingsAggregatorFactorySum.jsonld#ActorBindingsAggregatorFactorySum_args_name"
|
|
38
|
+
},
|
|
39
|
+
"bus": {
|
|
40
|
+
"@id": "cabafs:components/ActorBindingsAggregatorFactorySum.jsonld#ActorBindingsAggregatorFactorySum_args_bus"
|
|
41
|
+
},
|
|
42
|
+
"busFailMessage": {
|
|
43
|
+
"@id": "cabafs:components/ActorBindingsAggregatorFactorySum.jsonld#ActorBindingsAggregatorFactorySum_args_busFailMessage"
|
|
44
|
+
},
|
|
45
|
+
"beforeActors": {
|
|
46
|
+
"@id": "cabafs:components/ActorBindingsAggregatorFactorySum.jsonld#ActorBindingsAggregatorFactorySum_args_beforeActors",
|
|
47
|
+
"@container": "@list"
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"IActorBindingsAggregatorFactorySumArgs": {
|
|
52
|
+
"@id": "cabafs:components/ActorBindingsAggregatorFactorySum.jsonld#IActorBindingsAggregatorFactorySumArgs",
|
|
53
|
+
"@prefix": true,
|
|
54
|
+
"@context": {}
|
|
55
|
+
},
|
|
56
|
+
"SumAggregator": {
|
|
57
|
+
"@id": "cabafs:components/SumAggregator.jsonld#SumAggregator",
|
|
58
|
+
"@prefix": true,
|
|
59
|
+
"@context": {
|
|
60
|
+
"distinct": {
|
|
61
|
+
"@id": "cabafs:components/SumAggregator.jsonld#SumAggregator_distinct"
|
|
62
|
+
},
|
|
63
|
+
"evaluator": {
|
|
64
|
+
"@id": "cabafs:components/SumAggregator.jsonld#SumAggregator_evaluator"
|
|
65
|
+
},
|
|
66
|
+
"additionFunction": {
|
|
67
|
+
"@id": "cabafs:components/SumAggregator.jsonld#SumAggregator_additionFunction"
|
|
68
|
+
},
|
|
69
|
+
"throwError": {
|
|
70
|
+
"@id": "cabafs:components/SumAggregator.jsonld#SumAggregator_throwError"
|
|
71
|
+
},
|
|
72
|
+
"dataFactory": {
|
|
73
|
+
"@id": "cabafs:components/SumAggregator.jsonld#SumAggregator_dataFactory"
|
|
74
|
+
},
|
|
75
|
+
"tion": {
|
|
76
|
+
"@id": "cabafs:components/SumAggregator.jsonld#SumAggregator_additionFunction"
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
]
|
|
82
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { IActionBindingsAggregatorFactory, IActorBindingsAggregatorFactoryArgs, IActorBindingsAggregatorFactoryOutput } from '@comunica/bus-bindings-aggregator-factory';
|
|
2
|
+
import { ActorBindingsAggregatorFactory } from '@comunica/bus-bindings-aggregator-factory';
|
|
3
|
+
import type { MediatorFunctionFactoryUnsafe } from '@comunica/bus-function-factory';
|
|
4
|
+
import type { IActorTest, TestResult } from '@comunica/core';
|
|
5
|
+
export interface IActorBindingsAggregatorFactorySumArgs extends IActorBindingsAggregatorFactoryArgs {
|
|
6
|
+
mediatorFunctionFactory: MediatorFunctionFactoryUnsafe;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* A comunica Sum Expression Evaluator Aggregate Actor.
|
|
10
|
+
*/
|
|
11
|
+
export declare class ActorBindingsAggregatorFactorySum extends ActorBindingsAggregatorFactory {
|
|
12
|
+
private readonly mediatorFunctionFactory;
|
|
13
|
+
constructor(args: IActorBindingsAggregatorFactorySumArgs);
|
|
14
|
+
test(action: IActionBindingsAggregatorFactory): Promise<TestResult<IActorTest>>;
|
|
15
|
+
run({ expr, context }: IActionBindingsAggregatorFactory): Promise<IActorBindingsAggregatorFactoryOutput>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ActorBindingsAggregatorFactorySum = void 0;
|
|
4
|
+
const bus_bindings_aggregator_factory_1 = require("@comunica/bus-bindings-aggregator-factory");
|
|
5
|
+
const context_entries_1 = require("@comunica/context-entries");
|
|
6
|
+
const core_1 = require("@comunica/core");
|
|
7
|
+
const utils_expression_evaluator_1 = require("@comunica/utils-expression-evaluator");
|
|
8
|
+
const SumAggregator_1 = require("./SumAggregator");
|
|
9
|
+
/**
|
|
10
|
+
* A comunica Sum Expression Evaluator Aggregate Actor.
|
|
11
|
+
*/
|
|
12
|
+
class ActorBindingsAggregatorFactorySum extends bus_bindings_aggregator_factory_1.ActorBindingsAggregatorFactory {
|
|
13
|
+
constructor(args) {
|
|
14
|
+
super(args);
|
|
15
|
+
this.mediatorFunctionFactory = args.mediatorFunctionFactory;
|
|
16
|
+
}
|
|
17
|
+
async test(action) {
|
|
18
|
+
if (action.expr.aggregator !== 'sum') {
|
|
19
|
+
return (0, core_1.failTest)('This actor only supports the \'sum\' aggregator.');
|
|
20
|
+
}
|
|
21
|
+
return (0, core_1.passTestVoid)();
|
|
22
|
+
}
|
|
23
|
+
async run({ expr, context }) {
|
|
24
|
+
return new SumAggregator_1.SumAggregator(await this.mediatorExpressionEvaluatorFactory.mediate({ algExpr: expr.expression, context }), expr.distinct, context.getSafe(context_entries_1.KeysInitQuery.dataFactory), await this.mediatorFunctionFactory.mediate({
|
|
25
|
+
functionName: utils_expression_evaluator_1.SparqlOperator.ADDITION,
|
|
26
|
+
context,
|
|
27
|
+
requireTermExpression: true,
|
|
28
|
+
}));
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
exports.ActorBindingsAggregatorFactorySum = ActorBindingsAggregatorFactorySum;
|
|
32
|
+
//# sourceMappingURL=ActorBindingsAggregatorFactorySum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ActorBindingsAggregatorFactorySum.js","sourceRoot":"","sources":["ActorBindingsAggregatorFactorySum.ts"],"names":[],"mappings":";;;AAKA,+FAEmD;AAEnD,+DAA0D;AAE1D,yCAAwD;AACxD,qFAAsE;AACtE,mDAAgD;AAMhD;;GAEG;AACH,MAAa,iCAAkC,SAAQ,gEAA8B;IAGnF,YAAmB,IAA4C;QAC7D,KAAK,CAAC,IAAI,CAAC,CAAC;QACZ,IAAI,CAAC,uBAAuB,GAA6B,IAAI,CAAC,uBAAuB,CAAC;IACxF,CAAC;IAEM,KAAK,CAAC,IAAI,CAAC,MAAwC;QACxD,IAAI,MAAM,CAAC,IAAI,CAAC,UAAU,KAAK,KAAK,EAAE,CAAC;YACrC,OAAO,IAAA,eAAQ,EAAC,kDAAkD,CAAC,CAAC;QACtE,CAAC;QACD,OAAO,IAAA,mBAAY,GAAE,CAAC;IACxB,CAAC;IAEM,KAAK,CAAC,GAAG,CAAC,EAAE,IAAI,EAAE,OAAO,EAAoC;QAElE,OAAO,IAAI,6BAAa,CACtB,MAAM,IAAI,CAAC,kCAAkC,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,IAAI,CAAC,UAAU,EAAE,OAAO,EAAE,CAAC,EAC5F,IAAI,CAAC,QAAQ,EACb,OAAO,CAAC,OAAO,CAAC,+BAAa,CAAC,WAAW,CAAC,EAC1C,MAAM,IAAI,CAAC,uBAAuB,CAAC,OAAO,CAAC;YACzC,YAAY,EAAE,2CAAc,CAAC,QAAQ;YACrC,OAAO;YACP,qBAAqB,EAAE,IAAI;SAC5B,CAAC,CACH,CAAC;IACJ,CAAC;CACF;AA5BD,8EA4BC","sourcesContent":["import type {\n IActionBindingsAggregatorFactory,\n IActorBindingsAggregatorFactoryArgs,\n IActorBindingsAggregatorFactoryOutput,\n} from '@comunica/bus-bindings-aggregator-factory';\nimport {\n ActorBindingsAggregatorFactory,\n} from '@comunica/bus-bindings-aggregator-factory';\nimport type { MediatorFunctionFactory, MediatorFunctionFactoryUnsafe } from '@comunica/bus-function-factory';\nimport { KeysInitQuery } from '@comunica/context-entries';\nimport type { IActorTest, TestResult } from '@comunica/core';\nimport { failTest, passTestVoid } from '@comunica/core';\nimport { SparqlOperator } from '@comunica/utils-expression-evaluator';\nimport { SumAggregator } from './SumAggregator';\n\nexport interface IActorBindingsAggregatorFactorySumArgs extends IActorBindingsAggregatorFactoryArgs {\n mediatorFunctionFactory: MediatorFunctionFactoryUnsafe;\n}\n\n/**\n * A comunica Sum Expression Evaluator Aggregate Actor.\n */\nexport class ActorBindingsAggregatorFactorySum extends ActorBindingsAggregatorFactory {\n private readonly mediatorFunctionFactory: MediatorFunctionFactory;\n\n public constructor(args: IActorBindingsAggregatorFactorySumArgs) {\n super(args);\n this.mediatorFunctionFactory = <MediatorFunctionFactory> args.mediatorFunctionFactory;\n }\n\n public async test(action: IActionBindingsAggregatorFactory): Promise<TestResult<IActorTest>> {\n if (action.expr.aggregator !== 'sum') {\n return failTest('This actor only supports the \\'sum\\' aggregator.');\n }\n return passTestVoid();\n }\n\n public async run({ expr, context }: IActionBindingsAggregatorFactory):\n Promise<IActorBindingsAggregatorFactoryOutput> {\n return new SumAggregator(\n await this.mediatorExpressionEvaluatorFactory.mediate({ algExpr: expr.expression, context }),\n expr.distinct,\n context.getSafe(KeysInitQuery.dataFactory),\n await this.mediatorFunctionFactory.mediate({\n functionName: SparqlOperator.ADDITION,\n context,\n requireTermExpression: true,\n }),\n );\n }\n}\n"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { AggregateEvaluator } from '@comunica/bus-bindings-aggregator-factory';
|
|
2
|
+
import type { ITermFunction } from '@comunica/bus-function-factory';
|
|
3
|
+
import type { ComunicaDataFactory, IExpressionEvaluator } from '@comunica/types';
|
|
4
|
+
import type * as RDF from '@rdfjs/types';
|
|
5
|
+
export declare class SumAggregator extends AggregateEvaluator {
|
|
6
|
+
private readonly dataFactory;
|
|
7
|
+
private readonly additionFunction;
|
|
8
|
+
private state;
|
|
9
|
+
constructor(evaluator: IExpressionEvaluator, distinct: boolean, dataFactory: ComunicaDataFactory, additionFunction: ITermFunction, throwError?: boolean);
|
|
10
|
+
emptyValueTerm(): RDF.Term;
|
|
11
|
+
putTerm(term: RDF.Term): void;
|
|
12
|
+
termResult(): RDF.Term | undefined;
|
|
13
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SumAggregator = void 0;
|
|
4
|
+
const bus_bindings_aggregator_factory_1 = require("@comunica/bus-bindings-aggregator-factory");
|
|
5
|
+
const utils_expression_evaluator_1 = require("@comunica/utils-expression-evaluator");
|
|
6
|
+
class SumAggregator extends bus_bindings_aggregator_factory_1.AggregateEvaluator {
|
|
7
|
+
constructor(evaluator, distinct, dataFactory, additionFunction, throwError) {
|
|
8
|
+
super(evaluator, distinct, throwError);
|
|
9
|
+
this.dataFactory = dataFactory;
|
|
10
|
+
this.additionFunction = additionFunction;
|
|
11
|
+
this.state = undefined;
|
|
12
|
+
}
|
|
13
|
+
emptyValueTerm() {
|
|
14
|
+
return (0, utils_expression_evaluator_1.typedLiteral)('0', utils_expression_evaluator_1.TypeURL.XSD_INTEGER);
|
|
15
|
+
}
|
|
16
|
+
putTerm(term) {
|
|
17
|
+
if (this.state === undefined) {
|
|
18
|
+
this.state = this.termToNumericOrError(term);
|
|
19
|
+
}
|
|
20
|
+
else {
|
|
21
|
+
const internalTerm = this.termToNumericOrError(term);
|
|
22
|
+
this.state = this.additionFunction.applyOnTerms([this.state, internalTerm], this.evaluator);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
termResult() {
|
|
26
|
+
if (this.state === undefined) {
|
|
27
|
+
return this.emptyValue();
|
|
28
|
+
}
|
|
29
|
+
return this.state.toRDF(this.dataFactory);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
exports.SumAggregator = SumAggregator;
|
|
33
|
+
//# sourceMappingURL=SumAggregator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SumAggregator.js","sourceRoot":"","sources":["SumAggregator.ts"],"names":[],"mappings":";;;AAAA,+FAA+E;AAI/E,qFAA6E;AAK7E,MAAa,aAAc,SAAQ,oDAAkB;IAGnD,YACE,SAA+B,EAC/B,QAAiB,EACA,WAAgC,EAChC,gBAA+B,EAChD,UAAoB;QAEpB,KAAK,CAAC,SAAS,EAAE,QAAQ,EAAE,UAAU,CAAC,CAAC;QAJtB,gBAAW,GAAX,WAAW,CAAqB;QAChC,qBAAgB,GAAhB,gBAAgB,CAAe;QAN1C,UAAK,GAAyB,SAAS,CAAC;IAUhD,CAAC;IAEe,cAAc;QAC5B,OAAO,IAAA,yCAAY,EAAC,GAAG,EAAE,oCAAO,CAAC,WAAW,CAAC,CAAC;IAChD,CAAC;IAEM,OAAO,CAAC,IAAc;QAC3B,IAAI,IAAI,CAAC,KAAK,KAAK,SAAS,EAAE,CAAC;YAC7B,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAC;QAC/C,CAAC;aAAM,CAAC;YACN,MAAM,YAAY,GAAG,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAC;YACrD,IAAI,CAAC,KAAK,GAAoB,IAAI,CAAC,gBAAgB,CAAC,YAAY,CAAC,CAAE,IAAI,CAAC,KAAK,EAAE,YAAY,CAAE,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC;QACjH,CAAC;IACH,CAAC;IAEM,UAAU;QACf,IAAI,IAAI,CAAC,KAAK,KAAK,SAAS,EAAE,CAAC;YAC7B,OAAO,IAAI,CAAC,UAAU,EAAE,CAAC;QAC3B,CAAC;QACD,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;IAC5C,CAAC;CACF;AAhCD,sCAgCC","sourcesContent":["import { AggregateEvaluator } from '@comunica/bus-bindings-aggregator-factory';\nimport type { ITermFunction } from '@comunica/bus-function-factory';\nimport type { ComunicaDataFactory, IExpressionEvaluator } from '@comunica/types';\nimport type { NumericLiteral } from '@comunica/utils-expression-evaluator';\nimport { typedLiteral, TypeURL } from '@comunica/utils-expression-evaluator';\nimport type * as RDF from '@rdfjs/types';\n\ntype SumState = NumericLiteral;\n\nexport class SumAggregator extends AggregateEvaluator {\n private state: SumState | undefined = undefined;\n\n public constructor(\n evaluator: IExpressionEvaluator,\n distinct: boolean,\n private readonly dataFactory: ComunicaDataFactory,\n private readonly additionFunction: ITermFunction,\n throwError?: boolean,\n ) {\n super(evaluator, distinct, throwError);\n }\n\n public override emptyValueTerm(): RDF.Term {\n return typedLiteral('0', TypeURL.XSD_INTEGER);\n }\n\n public putTerm(term: RDF.Term): void {\n if (this.state === undefined) {\n this.state = this.termToNumericOrError(term);\n } else {\n const internalTerm = this.termToNumericOrError(term);\n this.state = <NumericLiteral> this.additionFunction.applyOnTerms([ this.state, internalTerm ], this.evaluator);\n }\n }\n\n public termResult(): RDF.Term | undefined {\n if (this.state === undefined) {\n return this.emptyValue();\n }\n return this.state.toRDF(this.dataFactory);\n }\n}\n"]}
|
package/lib/index.d.ts
ADDED
package/lib/index.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./ActorBindingsAggregatorFactorySum"), exports);
|
|
18
|
+
__exportStar(require("./SumAggregator"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sEAAoD;AACpD,kDAAgC","sourcesContent":["export * from './ActorBindingsAggregatorFactorySum';\nexport * from './SumAggregator';\n"]}
|
package/package.json
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@comunica/actor-bindings-aggregator-factory-sum",
|
|
3
|
+
"version": "3.2.4-alpha.47.0",
|
|
4
|
+
"description": "A sum bindings aggregator factory actor",
|
|
5
|
+
"lsd:module": true,
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"homepage": "https://comunica.dev/",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "https://github.com/comunica/comunica.git",
|
|
11
|
+
"directory": "packages/actor-bindings-aggregator-factory-sum"
|
|
12
|
+
},
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/comunica/comunica/issues"
|
|
15
|
+
},
|
|
16
|
+
"keywords": [
|
|
17
|
+
"comunica",
|
|
18
|
+
"actor",
|
|
19
|
+
"expression-evaluator-aggregate",
|
|
20
|
+
"sum"
|
|
21
|
+
],
|
|
22
|
+
"sideEffects": false,
|
|
23
|
+
"main": "lib/index.js",
|
|
24
|
+
"typings": "lib/index",
|
|
25
|
+
"publishConfig": {
|
|
26
|
+
"access": "public"
|
|
27
|
+
},
|
|
28
|
+
"files": [
|
|
29
|
+
"components",
|
|
30
|
+
"lib/**/*.d.ts",
|
|
31
|
+
"lib/**/*.js",
|
|
32
|
+
"lib/**/*.js.map"
|
|
33
|
+
],
|
|
34
|
+
"scripts": {
|
|
35
|
+
"build": "npm run build:ts && npm run build:components",
|
|
36
|
+
"build:ts": "node \"../../node_modules/typescript/bin/tsc\"",
|
|
37
|
+
"build:components": "componentsjs-generator"
|
|
38
|
+
},
|
|
39
|
+
"dependencies": {
|
|
40
|
+
"@comunica/bus-bindings-aggregator-factory": "3.2.4-alpha.47.0",
|
|
41
|
+
"@comunica/bus-function-factory": "3.2.4-alpha.47.0",
|
|
42
|
+
"@comunica/context-entries": "3.2.4-alpha.47.0",
|
|
43
|
+
"@comunica/core": "3.2.4-alpha.47.0",
|
|
44
|
+
"@comunica/types": "3.2.4-alpha.47.0",
|
|
45
|
+
"@comunica/utils-expression-evaluator": "3.2.4-alpha.47.0",
|
|
46
|
+
"@rdfjs/types": "*"
|
|
47
|
+
},
|
|
48
|
+
"gitHead": "85bd4c5cf07dfc293ebbc3a1416b70e2db8bfc48"
|
|
49
|
+
}
|