@comunica/actor-query-process-sequential 3.0.1-alpha.43.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 +50 -0
- package/components/ActorQueryProcessSequential.jsonld +267 -0
- package/components/components.jsonld +11 -0
- package/components/context.jsonld +70 -0
- package/lib/ActorQueryProcessSequential.d.ts +48 -0
- package/lib/ActorQueryProcessSequential.js +72 -0
- package/lib/ActorQueryProcessSequential.js.map +1 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +18 -0
- package/lib/index.js.map +1 -0
- package/package.json +54 -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,50 @@
|
|
|
1
|
+
# Comunica Sequential Query Process Actor
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/@comunica/actor-query-process-sequential)
|
|
4
|
+
|
|
5
|
+
An [Query Process](https://github.com/comunica/comunica/tree/master/packages/bus-query-process) actor
|
|
6
|
+
that processes a query in a sequential manner.
|
|
7
|
+
It first parses the query, optimizes it, and then evaluates it.
|
|
8
|
+
|
|
9
|
+
This module is part of the [Comunica framework](https://github.com/comunica/comunica),
|
|
10
|
+
and should only be used by [developers that want to build their own query engine](https://comunica.dev/docs/modify/).
|
|
11
|
+
|
|
12
|
+
[Click here if you just want to query with Comunica](https://comunica.dev/docs/query/).
|
|
13
|
+
|
|
14
|
+
## Install
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
$ yarn add @comunica/actor-query-process-sequential
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Configure
|
|
21
|
+
|
|
22
|
+
After installing, this package can be added to your engine's configuration as follows:
|
|
23
|
+
```text
|
|
24
|
+
{
|
|
25
|
+
"@context": [
|
|
26
|
+
...
|
|
27
|
+
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-query-process-sequential/^1.0.0/components/context.jsonld"
|
|
28
|
+
],
|
|
29
|
+
"actors": [
|
|
30
|
+
...
|
|
31
|
+
{
|
|
32
|
+
"@id": "urn:comunica:default:query-process/actors#sequential",
|
|
33
|
+
"@type": "ActorQueryProcessSequential",
|
|
34
|
+
"mediatorContextPreprocess": { "@id": "urn:comunica:default:context-preprocess/mediators#main" },
|
|
35
|
+
"mediatorQueryParse": { "@id": "urn:comunica:default:query-parse/mediators#main" },
|
|
36
|
+
"mediatorOptimizeQueryOperation": { "@id": "urn:comunica:default:optimize-query-operation/mediators#main" },
|
|
37
|
+
"mediatorQueryOperation": { "@id": "urn:comunica:default:query-operation/mediators#main" },
|
|
38
|
+
"mediatorMergeBindingsContext": { "@id": "urn:comunica:default:merge-bindings-context/mediators#main" }
|
|
39
|
+
}
|
|
40
|
+
]
|
|
41
|
+
}
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
### Config Parameters
|
|
45
|
+
|
|
46
|
+
* `mediatorContextPreprocess`: A mediator over the [context preprocess bus](https://github.com/comunica/comunica/tree/master/packages/bus-context-preprocess).
|
|
47
|
+
* `mediatorSparqlParse`: A mediator over the [query parse bus](https://github.com/comunica/comunica/tree/master/packages/bus-query-parse).
|
|
48
|
+
* `mediatorOptimizeQueryOperation`: A mediator over the [optimize query operation bus](https://github.com/comunica/comunica/tree/master/packages/bus-optimize-query-operation).
|
|
49
|
+
* `mediatorQueryOperation`: A mediator over the [query operation bus](https://github.com/comunica/comunica/tree/master/packages/bus-query-operation).
|
|
50
|
+
* `mediatorMergeBindingsContext`: A mediator over the [Merge Bindings Context bus](https://github.com/comunica/comunica/tree/master/packages/bus-merge-bindings-context).
|
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
{
|
|
2
|
+
"@context": [
|
|
3
|
+
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-query-process-sequential/^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-query-process/^3.0.0/components/context.jsonld"
|
|
6
|
+
],
|
|
7
|
+
"@id": "npmd:@comunica/actor-query-process-sequential",
|
|
8
|
+
"components": [
|
|
9
|
+
{
|
|
10
|
+
"@id": "caqps:components/ActorQueryProcessSequential.jsonld#ActorQueryProcessSequential",
|
|
11
|
+
"@type": "Class",
|
|
12
|
+
"requireElement": "ActorQueryProcessSequential",
|
|
13
|
+
"extends": [
|
|
14
|
+
"cbqp:components/ActorQueryProcess.jsonld#ActorQueryProcess",
|
|
15
|
+
"cbqp:components/ActorQueryProcess.jsonld#IQueryProcessSequential"
|
|
16
|
+
],
|
|
17
|
+
"comment": "A comunica Sequential Query Process Actor.",
|
|
18
|
+
"parameters": [
|
|
19
|
+
{
|
|
20
|
+
"@id": "caqps:components/ActorQueryProcessSequential.jsonld#ActorQueryProcessSequential_args_mediatorContextPreprocess",
|
|
21
|
+
"range": "cc:components/Mediator.jsonld#Mediator",
|
|
22
|
+
"comment": "The context processing combinator"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"@id": "caqps:components/ActorQueryProcessSequential.jsonld#ActorQueryProcessSequential_args_mediatorQueryParse",
|
|
26
|
+
"range": "cc:components/Mediator.jsonld#Mediator",
|
|
27
|
+
"comment": "The query parse mediator"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"@id": "caqps:components/ActorQueryProcessSequential.jsonld#ActorQueryProcessSequential_args_mediatorOptimizeQueryOperation",
|
|
31
|
+
"range": "cc:components/Mediator.jsonld#Mediator",
|
|
32
|
+
"comment": "The query operation optimize mediator"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"@id": "caqps:components/ActorQueryProcessSequential.jsonld#ActorQueryProcessSequential_args_mediatorQueryOperation",
|
|
36
|
+
"range": "cc:components/Mediator.jsonld#Mediator",
|
|
37
|
+
"comment": "The query operation mediator"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"@id": "caqps:components/ActorQueryProcessSequential.jsonld#ActorQueryProcessSequential_args_mediatorMergeBindingsContext",
|
|
41
|
+
"range": "cc:components/Mediator.jsonld#Mediator",
|
|
42
|
+
"comment": "A mediator for creating binding context merge handlers"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"@id": "caqps:components/ActorQueryProcessSequential.jsonld#ActorQueryProcessSequential_args_name",
|
|
46
|
+
"range": "xsd:string",
|
|
47
|
+
"default": {
|
|
48
|
+
"@id": "rdf:subject"
|
|
49
|
+
},
|
|
50
|
+
"comment": "The name for this actor."
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"@id": "caqps:components/ActorQueryProcessSequential.jsonld#ActorQueryProcessSequential_args_bus",
|
|
54
|
+
"range": {
|
|
55
|
+
"@type": "ParameterRangeGenericComponent",
|
|
56
|
+
"component": "cc:components/Bus.jsonld#Bus",
|
|
57
|
+
"genericTypeInstances": [
|
|
58
|
+
{
|
|
59
|
+
"@type": "ParameterRangeGenericComponent",
|
|
60
|
+
"component": "cc:components/Actor.jsonld#Actor",
|
|
61
|
+
"genericTypeInstances": [
|
|
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
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"@type": "ParameterRangeGenericTypeReference",
|
|
78
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_I"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"@type": "ParameterRangeGenericTypeReference",
|
|
82
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_T"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"@type": "ParameterRangeGenericTypeReference",
|
|
86
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_O"
|
|
87
|
+
}
|
|
88
|
+
]
|
|
89
|
+
},
|
|
90
|
+
"default": {
|
|
91
|
+
"@id": "cbqp:components/ActorQueryProcess.jsonld#ActorQueryProcess_default_bus",
|
|
92
|
+
"@type": "cc:components/Bus.jsonld#Bus"
|
|
93
|
+
},
|
|
94
|
+
"comment": "The bus this actor subscribes to."
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"@id": "caqps:components/ActorQueryProcessSequential.jsonld#ActorQueryProcessSequential_args_beforeActors",
|
|
98
|
+
"range": {
|
|
99
|
+
"@type": "ParameterRangeUnion",
|
|
100
|
+
"parameterRangeElements": [
|
|
101
|
+
{
|
|
102
|
+
"@type": "ParameterRangeArray",
|
|
103
|
+
"parameterRangeValue": {
|
|
104
|
+
"@type": "ParameterRangeGenericComponent",
|
|
105
|
+
"component": "cc:components/Actor.jsonld#Actor",
|
|
106
|
+
"genericTypeInstances": [
|
|
107
|
+
{
|
|
108
|
+
"@type": "ParameterRangeGenericTypeReference",
|
|
109
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_I"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"@type": "ParameterRangeGenericTypeReference",
|
|
113
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_T"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"@type": "ParameterRangeGenericTypeReference",
|
|
117
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_O"
|
|
118
|
+
}
|
|
119
|
+
]
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"@type": "ParameterRangeUndefined"
|
|
124
|
+
}
|
|
125
|
+
]
|
|
126
|
+
},
|
|
127
|
+
"comment": "Actor that must be registered in the bus before this actor."
|
|
128
|
+
}
|
|
129
|
+
],
|
|
130
|
+
"memberFields": [
|
|
131
|
+
{
|
|
132
|
+
"@id": "caqps:components/ActorQueryProcessSequential.jsonld#ActorQueryProcessSequential__member_mediatorContextPreprocess",
|
|
133
|
+
"memberFieldName": "mediatorContextPreprocess",
|
|
134
|
+
"range": "cc:components/Mediator.jsonld#Mediator"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"@id": "caqps:components/ActorQueryProcessSequential.jsonld#ActorQueryProcessSequential__member_mediatorQueryParse",
|
|
138
|
+
"memberFieldName": "mediatorQueryParse",
|
|
139
|
+
"range": "cc:components/Mediator.jsonld#Mediator"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"@id": "caqps:components/ActorQueryProcessSequential.jsonld#ActorQueryProcessSequential__member_mediatorOptimizeQueryOperation",
|
|
143
|
+
"memberFieldName": "mediatorOptimizeQueryOperation",
|
|
144
|
+
"range": "cc:components/Mediator.jsonld#Mediator"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"@id": "caqps:components/ActorQueryProcessSequential.jsonld#ActorQueryProcessSequential__member_mediatorQueryOperation",
|
|
148
|
+
"memberFieldName": "mediatorQueryOperation",
|
|
149
|
+
"range": "cc:components/Mediator.jsonld#Mediator"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"@id": "caqps:components/ActorQueryProcessSequential.jsonld#ActorQueryProcessSequential__member_mediatorMergeBindingsContext",
|
|
153
|
+
"memberFieldName": "mediatorMergeBindingsContext",
|
|
154
|
+
"range": "cc:components/Mediator.jsonld#Mediator"
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"@id": "caqps:components/ActorQueryProcessSequential.jsonld#ActorQueryProcessSequential__member_constructor",
|
|
158
|
+
"memberFieldName": "constructor"
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"@id": "caqps:components/ActorQueryProcessSequential.jsonld#ActorQueryProcessSequential__member_test",
|
|
162
|
+
"memberFieldName": "test"
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"@id": "caqps:components/ActorQueryProcessSequential.jsonld#ActorQueryProcessSequential__member_run",
|
|
166
|
+
"memberFieldName": "run"
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"@id": "caqps:components/ActorQueryProcessSequential.jsonld#ActorQueryProcessSequential__member_parse",
|
|
170
|
+
"memberFieldName": "parse"
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"@id": "caqps:components/ActorQueryProcessSequential.jsonld#ActorQueryProcessSequential__member_optimize",
|
|
174
|
+
"memberFieldName": "optimize"
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"@id": "caqps:components/ActorQueryProcessSequential.jsonld#ActorQueryProcessSequential__member_evaluate",
|
|
178
|
+
"memberFieldName": "evaluate"
|
|
179
|
+
}
|
|
180
|
+
],
|
|
181
|
+
"constructorArguments": [
|
|
182
|
+
{
|
|
183
|
+
"@id": "caqps:components/ActorQueryProcessSequential.jsonld#ActorQueryProcessSequential_args__constructorArgument",
|
|
184
|
+
"fields": [
|
|
185
|
+
{
|
|
186
|
+
"keyRaw": "mediatorContextPreprocess",
|
|
187
|
+
"value": {
|
|
188
|
+
"@id": "caqps:components/ActorQueryProcessSequential.jsonld#ActorQueryProcessSequential_args_mediatorContextPreprocess"
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"keyRaw": "mediatorQueryParse",
|
|
193
|
+
"value": {
|
|
194
|
+
"@id": "caqps:components/ActorQueryProcessSequential.jsonld#ActorQueryProcessSequential_args_mediatorQueryParse"
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"keyRaw": "mediatorOptimizeQueryOperation",
|
|
199
|
+
"value": {
|
|
200
|
+
"@id": "caqps:components/ActorQueryProcessSequential.jsonld#ActorQueryProcessSequential_args_mediatorOptimizeQueryOperation"
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"keyRaw": "mediatorQueryOperation",
|
|
205
|
+
"value": {
|
|
206
|
+
"@id": "caqps:components/ActorQueryProcessSequential.jsonld#ActorQueryProcessSequential_args_mediatorQueryOperation"
|
|
207
|
+
}
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"keyRaw": "mediatorMergeBindingsContext",
|
|
211
|
+
"value": {
|
|
212
|
+
"@id": "caqps:components/ActorQueryProcessSequential.jsonld#ActorQueryProcessSequential_args_mediatorMergeBindingsContext"
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
"keyRaw": "name",
|
|
217
|
+
"value": {
|
|
218
|
+
"@id": "caqps:components/ActorQueryProcessSequential.jsonld#ActorQueryProcessSequential_args_name"
|
|
219
|
+
}
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
"keyRaw": "bus",
|
|
223
|
+
"value": {
|
|
224
|
+
"@id": "caqps:components/ActorQueryProcessSequential.jsonld#ActorQueryProcessSequential_args_bus"
|
|
225
|
+
}
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"keyRaw": "beforeActors",
|
|
229
|
+
"value": {
|
|
230
|
+
"@id": "caqps:components/ActorQueryProcessSequential.jsonld#ActorQueryProcessSequential_args_beforeActors"
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
]
|
|
234
|
+
}
|
|
235
|
+
]
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
"@id": "caqps:components/ActorQueryProcessSequential.jsonld#IActorQueryProcessSequentialArgs",
|
|
239
|
+
"@type": "AbstractClass",
|
|
240
|
+
"requireElement": "IActorQueryProcessSequentialArgs",
|
|
241
|
+
"parameters": [],
|
|
242
|
+
"memberFields": [
|
|
243
|
+
{
|
|
244
|
+
"@id": "caqps:components/ActorQueryProcessSequential.jsonld#IActorQueryProcessSequentialArgs__member_mediatorContextPreprocess",
|
|
245
|
+
"memberFieldName": "mediatorContextPreprocess"
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
"@id": "caqps:components/ActorQueryProcessSequential.jsonld#IActorQueryProcessSequentialArgs__member_mediatorQueryParse",
|
|
249
|
+
"memberFieldName": "mediatorQueryParse"
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
"@id": "caqps:components/ActorQueryProcessSequential.jsonld#IActorQueryProcessSequentialArgs__member_mediatorOptimizeQueryOperation",
|
|
253
|
+
"memberFieldName": "mediatorOptimizeQueryOperation"
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
"@id": "caqps:components/ActorQueryProcessSequential.jsonld#IActorQueryProcessSequentialArgs__member_mediatorQueryOperation",
|
|
257
|
+
"memberFieldName": "mediatorQueryOperation"
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"@id": "caqps:components/ActorQueryProcessSequential.jsonld#IActorQueryProcessSequentialArgs__member_mediatorMergeBindingsContext",
|
|
261
|
+
"memberFieldName": "mediatorMergeBindingsContext"
|
|
262
|
+
}
|
|
263
|
+
],
|
|
264
|
+
"constructorArguments": []
|
|
265
|
+
}
|
|
266
|
+
]
|
|
267
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"@context": [
|
|
3
|
+
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-query-process-sequential/^3.0.0/components/context.jsonld"
|
|
4
|
+
],
|
|
5
|
+
"@id": "npmd:@comunica/actor-query-process-sequential",
|
|
6
|
+
"@type": "Module",
|
|
7
|
+
"requireName": "@comunica/actor-query-process-sequential",
|
|
8
|
+
"import": [
|
|
9
|
+
"caqps:components/ActorQueryProcessSequential.jsonld"
|
|
10
|
+
]
|
|
11
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
{
|
|
2
|
+
"@context": [
|
|
3
|
+
"https://linkedsoftwaredependencies.org/bundles/npm/componentsjs/^5.0.0/components/context.jsonld",
|
|
4
|
+
{
|
|
5
|
+
"npmd": "https://linkedsoftwaredependencies.org/bundles/npm/",
|
|
6
|
+
"caqps": "npmd:@comunica/actor-query-process-sequential/^3.0.0/",
|
|
7
|
+
"ActorQueryProcessSequential": {
|
|
8
|
+
"@id": "caqps:components/ActorQueryProcessSequential.jsonld#ActorQueryProcessSequential",
|
|
9
|
+
"@prefix": true,
|
|
10
|
+
"@context": {
|
|
11
|
+
"args_mediatorContextPreprocess": {
|
|
12
|
+
"@id": "caqps:components/ActorQueryProcessSequential.jsonld#ActorQueryProcessSequential_args_mediatorContextPreprocess"
|
|
13
|
+
},
|
|
14
|
+
"args_mediatorQueryParse": {
|
|
15
|
+
"@id": "caqps:components/ActorQueryProcessSequential.jsonld#ActorQueryProcessSequential_args_mediatorQueryParse"
|
|
16
|
+
},
|
|
17
|
+
"args_mediatorOptimizeQueryOperation": {
|
|
18
|
+
"@id": "caqps:components/ActorQueryProcessSequential.jsonld#ActorQueryProcessSequential_args_mediatorOptimizeQueryOperation"
|
|
19
|
+
},
|
|
20
|
+
"args_mediatorQueryOperation": {
|
|
21
|
+
"@id": "caqps:components/ActorQueryProcessSequential.jsonld#ActorQueryProcessSequential_args_mediatorQueryOperation"
|
|
22
|
+
},
|
|
23
|
+
"args_mediatorMergeBindingsContext": {
|
|
24
|
+
"@id": "caqps:components/ActorQueryProcessSequential.jsonld#ActorQueryProcessSequential_args_mediatorMergeBindingsContext"
|
|
25
|
+
},
|
|
26
|
+
"args_name": {
|
|
27
|
+
"@id": "caqps:components/ActorQueryProcessSequential.jsonld#ActorQueryProcessSequential_args_name"
|
|
28
|
+
},
|
|
29
|
+
"args_bus": {
|
|
30
|
+
"@id": "caqps:components/ActorQueryProcessSequential.jsonld#ActorQueryProcessSequential_args_bus"
|
|
31
|
+
},
|
|
32
|
+
"args_beforeActors": {
|
|
33
|
+
"@id": "caqps:components/ActorQueryProcessSequential.jsonld#ActorQueryProcessSequential_args_beforeActors",
|
|
34
|
+
"@container": "@list"
|
|
35
|
+
},
|
|
36
|
+
"mediatorContextPreprocess": {
|
|
37
|
+
"@id": "caqps:components/ActorQueryProcessSequential.jsonld#ActorQueryProcessSequential_args_mediatorContextPreprocess"
|
|
38
|
+
},
|
|
39
|
+
"mediatorQueryParse": {
|
|
40
|
+
"@id": "caqps:components/ActorQueryProcessSequential.jsonld#ActorQueryProcessSequential_args_mediatorQueryParse"
|
|
41
|
+
},
|
|
42
|
+
"mediatorOptimizeQueryOperation": {
|
|
43
|
+
"@id": "caqps:components/ActorQueryProcessSequential.jsonld#ActorQueryProcessSequential_args_mediatorOptimizeQueryOperation"
|
|
44
|
+
},
|
|
45
|
+
"mediatorQueryOperation": {
|
|
46
|
+
"@id": "caqps:components/ActorQueryProcessSequential.jsonld#ActorQueryProcessSequential_args_mediatorQueryOperation"
|
|
47
|
+
},
|
|
48
|
+
"mediatorMergeBindingsContext": {
|
|
49
|
+
"@id": "caqps:components/ActorQueryProcessSequential.jsonld#ActorQueryProcessSequential_args_mediatorMergeBindingsContext"
|
|
50
|
+
},
|
|
51
|
+
"name": {
|
|
52
|
+
"@id": "caqps:components/ActorQueryProcessSequential.jsonld#ActorQueryProcessSequential_args_name"
|
|
53
|
+
},
|
|
54
|
+
"bus": {
|
|
55
|
+
"@id": "caqps:components/ActorQueryProcessSequential.jsonld#ActorQueryProcessSequential_args_bus"
|
|
56
|
+
},
|
|
57
|
+
"beforeActors": {
|
|
58
|
+
"@id": "caqps:components/ActorQueryProcessSequential.jsonld#ActorQueryProcessSequential_args_beforeActors",
|
|
59
|
+
"@container": "@list"
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"IActorQueryProcessSequentialArgs": {
|
|
64
|
+
"@id": "caqps:components/ActorQueryProcessSequential.jsonld#IActorQueryProcessSequentialArgs",
|
|
65
|
+
"@prefix": true,
|
|
66
|
+
"@context": {}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
]
|
|
70
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type { MediatorContextPreprocess } from '@comunica/bus-context-preprocess';
|
|
2
|
+
import type { MediatorMergeBindingsContext } from '@comunica/bus-merge-bindings-context';
|
|
3
|
+
import type { MediatorOptimizeQueryOperation } from '@comunica/bus-optimize-query-operation';
|
|
4
|
+
import type { MediatorQueryOperation } from '@comunica/bus-query-operation';
|
|
5
|
+
import type { MediatorQueryParse } from '@comunica/bus-query-parse';
|
|
6
|
+
import type { IActionQueryProcess, IActorQueryProcessOutput, IActorQueryProcessArgs, IQueryProcessSequential, IQueryProcessSequentialOutput } from '@comunica/bus-query-process';
|
|
7
|
+
import { ActorQueryProcess } from '@comunica/bus-query-process';
|
|
8
|
+
import type { IActorTest } from '@comunica/core';
|
|
9
|
+
import type { IActionContext, IQueryOperationResult, QueryFormatType } from '@comunica/types';
|
|
10
|
+
import type { Algebra } from 'sparqlalgebrajs';
|
|
11
|
+
/**
|
|
12
|
+
* A comunica Sequential Query Process Actor.
|
|
13
|
+
*/
|
|
14
|
+
export declare class ActorQueryProcessSequential extends ActorQueryProcess implements IQueryProcessSequential {
|
|
15
|
+
readonly mediatorContextPreprocess: MediatorContextPreprocess;
|
|
16
|
+
readonly mediatorQueryParse: MediatorQueryParse;
|
|
17
|
+
readonly mediatorOptimizeQueryOperation: MediatorOptimizeQueryOperation;
|
|
18
|
+
readonly mediatorQueryOperation: MediatorQueryOperation;
|
|
19
|
+
readonly mediatorMergeBindingsContext: MediatorMergeBindingsContext;
|
|
20
|
+
constructor(args: IActorQueryProcessSequentialArgs);
|
|
21
|
+
test(action: IActionQueryProcess): Promise<IActorTest>;
|
|
22
|
+
run(action: IActionQueryProcess): Promise<IActorQueryProcessOutput>;
|
|
23
|
+
parse(query: QueryFormatType, context: IActionContext): Promise<IQueryProcessSequentialOutput>;
|
|
24
|
+
optimize(operation: Algebra.Operation, context: IActionContext): Promise<IQueryProcessSequentialOutput>;
|
|
25
|
+
evaluate(operation: Algebra.Operation, context: IActionContext): Promise<IQueryOperationResult>;
|
|
26
|
+
}
|
|
27
|
+
export interface IActorQueryProcessSequentialArgs extends IActorQueryProcessArgs {
|
|
28
|
+
/**
|
|
29
|
+
* The context processing combinator
|
|
30
|
+
*/
|
|
31
|
+
mediatorContextPreprocess: MediatorContextPreprocess;
|
|
32
|
+
/**
|
|
33
|
+
* The query parse mediator
|
|
34
|
+
*/
|
|
35
|
+
mediatorQueryParse: MediatorQueryParse;
|
|
36
|
+
/**
|
|
37
|
+
* The query operation optimize mediator
|
|
38
|
+
*/
|
|
39
|
+
mediatorOptimizeQueryOperation: MediatorOptimizeQueryOperation;
|
|
40
|
+
/**
|
|
41
|
+
* The query operation mediator
|
|
42
|
+
*/
|
|
43
|
+
mediatorQueryOperation: MediatorQueryOperation;
|
|
44
|
+
/**
|
|
45
|
+
* A mediator for creating binding context merge handlers
|
|
46
|
+
*/
|
|
47
|
+
mediatorMergeBindingsContext: MediatorMergeBindingsContext;
|
|
48
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ActorQueryProcessSequential = void 0;
|
|
4
|
+
const bindings_factory_1 = require("@comunica/bindings-factory");
|
|
5
|
+
const bus_query_operation_1 = require("@comunica/bus-query-operation");
|
|
6
|
+
const bus_query_process_1 = require("@comunica/bus-query-process");
|
|
7
|
+
const context_entries_1 = require("@comunica/context-entries");
|
|
8
|
+
const core_1 = require("@comunica/core");
|
|
9
|
+
/**
|
|
10
|
+
* A comunica Sequential Query Process Actor.
|
|
11
|
+
*/
|
|
12
|
+
class ActorQueryProcessSequential extends bus_query_process_1.ActorQueryProcess {
|
|
13
|
+
constructor(args) {
|
|
14
|
+
super(args);
|
|
15
|
+
}
|
|
16
|
+
async test(action) {
|
|
17
|
+
if (action.context.get(context_entries_1.KeysInitQuery.explain) || action.context.get(new core_1.ActionContextKey('explain'))) {
|
|
18
|
+
throw new Error(`${this.name} is not able to explain queries.`);
|
|
19
|
+
}
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
async run(action) {
|
|
23
|
+
// Run all query processing steps in sequence
|
|
24
|
+
let { operation, context } = await this.parse(action.query, action.context);
|
|
25
|
+
({ operation, context } = await this.optimize(operation, context));
|
|
26
|
+
const output = await this.evaluate(operation, context);
|
|
27
|
+
return { result: output };
|
|
28
|
+
}
|
|
29
|
+
async parse(query, context) {
|
|
30
|
+
// Pre-processing the context
|
|
31
|
+
context = (await this.mediatorContextPreprocess.mediate({ context })).context;
|
|
32
|
+
// Parse query
|
|
33
|
+
let operation;
|
|
34
|
+
if (typeof query === 'string') {
|
|
35
|
+
// Save the original query string in the context
|
|
36
|
+
context = context.set(context_entries_1.KeysInitQuery.queryString, query);
|
|
37
|
+
const baseIRI = context.get(context_entries_1.KeysInitQuery.baseIRI);
|
|
38
|
+
const queryFormat = context.get(context_entries_1.KeysInitQuery.queryFormat);
|
|
39
|
+
const queryParseOutput = await this.mediatorQueryParse.mediate({ context, query, queryFormat, baseIRI });
|
|
40
|
+
operation = queryParseOutput.operation;
|
|
41
|
+
// Update the baseIRI in the context if the query modified it.
|
|
42
|
+
if (queryParseOutput.baseIRI) {
|
|
43
|
+
context = context.set(context_entries_1.KeysInitQuery.baseIRI, queryParseOutput.baseIRI);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
else {
|
|
47
|
+
operation = query;
|
|
48
|
+
}
|
|
49
|
+
// Apply initial bindings in context
|
|
50
|
+
if (context.has(context_entries_1.KeysInitQuery.initialBindings)) {
|
|
51
|
+
const bindingsFactory = await bindings_factory_1.BindingsFactory
|
|
52
|
+
.create(this.mediatorMergeBindingsContext, context);
|
|
53
|
+
operation = (0, bus_query_operation_1.materializeOperation)(operation, context.get(context_entries_1.KeysInitQuery.initialBindings), bindingsFactory);
|
|
54
|
+
// Delete the query string from the context, since our initial query might have changed
|
|
55
|
+
context = context.delete(context_entries_1.KeysInitQuery.queryString);
|
|
56
|
+
}
|
|
57
|
+
return { operation, context };
|
|
58
|
+
}
|
|
59
|
+
async optimize(operation, context) {
|
|
60
|
+
({ operation, context } = await this.mediatorOptimizeQueryOperation.mediate({ context, operation }));
|
|
61
|
+
// Save original query in context
|
|
62
|
+
context = context.set(context_entries_1.KeysInitQuery.query, operation);
|
|
63
|
+
return { operation, context };
|
|
64
|
+
}
|
|
65
|
+
async evaluate(operation, context) {
|
|
66
|
+
const output = await this.mediatorQueryOperation.mediate({ context, operation });
|
|
67
|
+
output.context = context;
|
|
68
|
+
return output;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
exports.ActorQueryProcessSequential = ActorQueryProcessSequential;
|
|
72
|
+
//# sourceMappingURL=ActorQueryProcessSequential.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ActorQueryProcessSequential.js","sourceRoot":"","sources":["ActorQueryProcessSequential.ts"],"names":[],"mappings":";;;AAAA,iEAA6D;AAK7D,uEAAqE;AAQrE,mEAEqC;AACrC,+DAA0D;AAE1D,yCAAkD;AAUlD;;GAEG;AACH,MAAa,2BAA4B,SAAQ,qCAAiB;IAOhE,YAAmB,IAAsC;QACvD,KAAK,CAAC,IAAI,CAAC,CAAC;IACd,CAAC;IAEM,KAAK,CAAC,IAAI,CAAC,MAA2B;QAC3C,IAAI,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,+BAAa,CAAC,OAAO,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,uBAAgB,CAAC,SAAS,CAAC,CAAC,EAAE;YACpG,MAAM,IAAI,KAAK,CAAC,GAAG,IAAI,CAAC,IAAI,kCAAkC,CAAC,CAAC;SACjE;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IAEM,KAAK,CAAC,GAAG,CAAC,MAA2B;QAC1C,6CAA6C;QAC7C,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;QAC5E,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC;QACnE,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;QAEvD,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;IAC5B,CAAC;IAEM,KAAK,CAAC,KAAK,CAAC,KAAsB,EAAE,OAAuB;QAChE,6BAA6B;QAC7B,OAAO,GAAG,CAAC,MAAM,IAAI,CAAC,yBAAyB,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC;QAE9E,cAAc;QACd,IAAI,SAA4B,CAAC;QACjC,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;YAC7B,gDAAgD;YAChD,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,+BAAa,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;YAExD,MAAM,OAAO,GAAuB,OAAO,CAAC,GAAG,CAAC,+BAAa,CAAC,OAAO,CAAC,CAAC;YACvE,MAAM,WAAW,GAAoB,OAAO,CAAC,GAAG,CAAC,+BAAa,CAAC,WAAW,CAAE,CAAC;YAC7E,MAAM,gBAAgB,GAAG,MAAM,IAAI,CAAC,kBAAkB,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,CAAC,CAAC;YACzG,SAAS,GAAG,gBAAgB,CAAC,SAAS,CAAC;YACvC,8DAA8D;YAC9D,IAAI,gBAAgB,CAAC,OAAO,EAAE;gBAC5B,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,+BAAa,CAAC,OAAO,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC;aACxE;SACF;aAAM;YACL,SAAS,GAAG,KAAK,CAAC;SACnB;QAED,oCAAoC;QACpC,IAAI,OAAO,CAAC,GAAG,CAAC,+BAAa,CAAC,eAAe,CAAC,EAAE;YAC9C,MAAM,eAAe,GAAG,MAAM,kCAAe;iBAC1C,MAAM,CAAC,IAAI,CAAC,4BAA4B,EAAE,OAAO,CAAC,CAAC;YACtD,SAAS,GAAG,IAAA,0CAAoB,EAAC,SAAS,EAAE,OAAO,CAAC,GAAG,CAAC,+BAAa,CAAC,eAAe,CAAE,EAAE,eAAe,CAAC,CAAC;YAE1G,uFAAuF;YACvF,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC,+BAAa,CAAC,WAAW,CAAC,CAAC;SACrD;QAED,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC;IAChC,CAAC;IAEM,KAAK,CAAC,QAAQ,CAAC,SAA4B,EAAE,OAAuB;QACzE,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,MAAM,IAAI,CAAC,8BAA8B,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC;QAErG,iCAAiC;QACjC,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,+BAAa,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC;QAEtD,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC;IAChC,CAAC;IAEM,KAAK,CAAC,QAAQ,CAAC,SAA4B,EAAE,OAAuB;QACzE,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,sBAAsB,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC,CAAC;QACjF,MAAM,CAAC,OAAO,GAAG,OAAO,CAAC;QACzB,OAAO,MAAM,CAAC;IAChB,CAAC;CACF;AA5ED,kEA4EC","sourcesContent":["import { BindingsFactory } from '@comunica/bindings-factory';\nimport type { MediatorContextPreprocess } from '@comunica/bus-context-preprocess';\nimport type { MediatorMergeBindingsContext } from '@comunica/bus-merge-bindings-context';\nimport type { MediatorOptimizeQueryOperation } from '@comunica/bus-optimize-query-operation';\nimport type { MediatorQueryOperation } from '@comunica/bus-query-operation';\nimport { materializeOperation } from '@comunica/bus-query-operation';\nimport type { MediatorQueryParse } from '@comunica/bus-query-parse';\nimport type {\n IActionQueryProcess,\n IActorQueryProcessOutput,\n IActorQueryProcessArgs,\n IQueryProcessSequential, IQueryProcessSequentialOutput,\n} from '@comunica/bus-query-process';\nimport {\n ActorQueryProcess,\n} from '@comunica/bus-query-process';\nimport { KeysInitQuery } from '@comunica/context-entries';\nimport type { IActorTest } from '@comunica/core';\nimport { ActionContextKey } from '@comunica/core';\nimport type {\n IActionContext,\n IQueryOperationResult,\n QueryFormatType,\n} from '@comunica/types';\n\nimport type * as RDF from '@rdfjs/types';\nimport type { Algebra } from 'sparqlalgebrajs';\n\n/**\n * A comunica Sequential Query Process Actor.\n */\nexport class ActorQueryProcessSequential extends ActorQueryProcess implements IQueryProcessSequential {\n public readonly mediatorContextPreprocess: MediatorContextPreprocess;\n public readonly mediatorQueryParse: MediatorQueryParse;\n public readonly mediatorOptimizeQueryOperation: MediatorOptimizeQueryOperation;\n public readonly mediatorQueryOperation: MediatorQueryOperation;\n public readonly mediatorMergeBindingsContext: MediatorMergeBindingsContext;\n\n public constructor(args: IActorQueryProcessSequentialArgs) {\n super(args);\n }\n\n public async test(action: IActionQueryProcess): Promise<IActorTest> {\n if (action.context.get(KeysInitQuery.explain) || action.context.get(new ActionContextKey('explain'))) {\n throw new Error(`${this.name} is not able to explain queries.`);\n }\n return true;\n }\n\n public async run(action: IActionQueryProcess): Promise<IActorQueryProcessOutput> {\n // Run all query processing steps in sequence\n let { operation, context } = await this.parse(action.query, action.context);\n ({ operation, context } = await this.optimize(operation, context));\n const output = await this.evaluate(operation, context);\n\n return { result: output };\n }\n\n public async parse(query: QueryFormatType, context: IActionContext): Promise<IQueryProcessSequentialOutput> {\n // Pre-processing the context\n context = (await this.mediatorContextPreprocess.mediate({ context })).context;\n\n // Parse query\n let operation: Algebra.Operation;\n if (typeof query === 'string') {\n // Save the original query string in the context\n context = context.set(KeysInitQuery.queryString, query);\n\n const baseIRI: string | undefined = context.get(KeysInitQuery.baseIRI);\n const queryFormat: RDF.QueryFormat = context.get(KeysInitQuery.queryFormat)!;\n const queryParseOutput = await this.mediatorQueryParse.mediate({ context, query, queryFormat, baseIRI });\n operation = queryParseOutput.operation;\n // Update the baseIRI in the context if the query modified it.\n if (queryParseOutput.baseIRI) {\n context = context.set(KeysInitQuery.baseIRI, queryParseOutput.baseIRI);\n }\n } else {\n operation = query;\n }\n\n // Apply initial bindings in context\n if (context.has(KeysInitQuery.initialBindings)) {\n const bindingsFactory = await BindingsFactory\n .create(this.mediatorMergeBindingsContext, context);\n operation = materializeOperation(operation, context.get(KeysInitQuery.initialBindings)!, bindingsFactory);\n\n // Delete the query string from the context, since our initial query might have changed\n context = context.delete(KeysInitQuery.queryString);\n }\n\n return { operation, context };\n }\n\n public async optimize(operation: Algebra.Operation, context: IActionContext): Promise<IQueryProcessSequentialOutput> {\n ({ operation, context } = await this.mediatorOptimizeQueryOperation.mediate({ context, operation }));\n\n // Save original query in context\n context = context.set(KeysInitQuery.query, operation);\n\n return { operation, context };\n }\n\n public async evaluate(operation: Algebra.Operation, context: IActionContext): Promise<IQueryOperationResult> {\n const output = await this.mediatorQueryOperation.mediate({ context, operation });\n output.context = context;\n return output;\n }\n}\n\nexport interface IActorQueryProcessSequentialArgs extends IActorQueryProcessArgs {\n /**\n * The context processing combinator\n */\n mediatorContextPreprocess: MediatorContextPreprocess;\n /**\n * The query parse mediator\n */\n mediatorQueryParse: MediatorQueryParse;\n /**\n * The query operation optimize mediator\n */\n mediatorOptimizeQueryOperation: MediatorOptimizeQueryOperation;\n /**\n * The query operation mediator\n */\n mediatorQueryOperation: MediatorQueryOperation;\n /**\n * A mediator for creating binding context merge handlers\n */\n mediatorMergeBindingsContext: MediatorMergeBindingsContext;\n}\n"]}
|
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ActorQueryProcessSequential';
|
package/lib/index.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
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("./ActorQueryProcessSequential"), exports);
|
|
18
|
+
//# 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,gEAA8C","sourcesContent":["export * from './ActorQueryProcessSequential';\n"]}
|
package/package.json
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@comunica/actor-query-process-sequential",
|
|
3
|
+
"version": "3.0.1-alpha.43.0",
|
|
4
|
+
"description": "A sequential query-process actor",
|
|
5
|
+
"lsd:module": true,
|
|
6
|
+
"main": "lib/index.js",
|
|
7
|
+
"typings": "lib/index",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "https://github.com/comunica/comunica.git",
|
|
11
|
+
"directory": "packages/actor-query-process-sequential"
|
|
12
|
+
},
|
|
13
|
+
"publishConfig": {
|
|
14
|
+
"access": "public"
|
|
15
|
+
},
|
|
16
|
+
"sideEffects": false,
|
|
17
|
+
"keywords": [
|
|
18
|
+
"comunica",
|
|
19
|
+
"actor",
|
|
20
|
+
"query-process",
|
|
21
|
+
"sequential"
|
|
22
|
+
],
|
|
23
|
+
"license": "MIT",
|
|
24
|
+
"bugs": {
|
|
25
|
+
"url": "https://github.com/comunica/comunica/issues"
|
|
26
|
+
},
|
|
27
|
+
"homepage": "https://comunica.dev/",
|
|
28
|
+
"files": [
|
|
29
|
+
"components",
|
|
30
|
+
"lib/**/*.d.ts",
|
|
31
|
+
"lib/**/*.js",
|
|
32
|
+
"lib/**/*.js.map"
|
|
33
|
+
],
|
|
34
|
+
"dependencies": {
|
|
35
|
+
"@comunica/bindings-factory": "3.0.1-alpha.43.0",
|
|
36
|
+
"@comunica/bus-context-preprocess": "3.0.1-alpha.43.0",
|
|
37
|
+
"@comunica/bus-merge-bindings-context": "3.0.1-alpha.43.0",
|
|
38
|
+
"@comunica/bus-optimize-query-operation": "3.0.1-alpha.43.0",
|
|
39
|
+
"@comunica/bus-query-operation": "3.0.1-alpha.43.0",
|
|
40
|
+
"@comunica/bus-query-parse": "3.0.1-alpha.43.0",
|
|
41
|
+
"@comunica/bus-query-process": "3.0.1-alpha.43.0",
|
|
42
|
+
"@comunica/context-entries": "3.0.1-alpha.43.0",
|
|
43
|
+
"@comunica/core": "3.0.1-alpha.43.0",
|
|
44
|
+
"@comunica/types": "3.0.1-alpha.43.0",
|
|
45
|
+
"@rdfjs/types": "*",
|
|
46
|
+
"sparqlalgebrajs": "^4.3.0"
|
|
47
|
+
},
|
|
48
|
+
"scripts": {
|
|
49
|
+
"build": "npm run build:ts && npm run build:components",
|
|
50
|
+
"build:ts": "node \"../../node_modules/typescript/bin/tsc\"",
|
|
51
|
+
"build:components": "componentsjs-generator"
|
|
52
|
+
},
|
|
53
|
+
"gitHead": "d11e44cf07d4699f9d2c51d5851b5ed443de1997"
|
|
54
|
+
}
|