@comunica/bus-query-operation 3.2.2 → 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/components/ActorQueryOperation.jsonld +48 -56
- package/components/ActorQueryOperationTyped.jsonld +48 -1
- package/components/ActorQueryOperationTypedMediated.jsonld +60 -1
- package/components/context.jsonld +18 -0
- package/lib/ActorQueryOperation.d.ts +12 -97
- package/lib/ActorQueryOperation.js +5 -183
- package/lib/ActorQueryOperation.js.map +1 -1
- package/lib/ActorQueryOperationTyped.d.ts +7 -7
- package/lib/ActorQueryOperationTyped.js +7 -6
- package/lib/ActorQueryOperationTyped.js.map +1 -1
- package/lib/ActorQueryOperationTypedMediated.d.ts +3 -3
- package/lib/ActorQueryOperationTypedMediated.js.map +1 -1
- package/lib/index.d.ts +0 -3
- package/lib/index.js +0 -3
- package/lib/index.js.map +1 -1
- package/package.json +11 -13
- package/lib/Bindings.d.ts +0 -38
- package/lib/Bindings.js +0 -283
- package/lib/Bindings.js.map +0 -1
- package/lib/ClosableIterator.d.ts +0 -18
- package/lib/ClosableIterator.js +0 -54
- package/lib/ClosableIterator.js.map +0 -1
- package/lib/ClosableTransformIterator.d.ts +0 -15
- package/lib/ClosableTransformIterator.js +0 -19
- package/lib/ClosableTransformIterator.js.map +0 -1
|
@@ -25,11 +25,23 @@
|
|
|
25
25
|
"ct:components/IQueryOperationResult.jsonld#IQueryOperationResultBoolean",
|
|
26
26
|
"ct:components/IQueryOperationResult.jsonld#IQueryOperationResultVoid"
|
|
27
27
|
]
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"@type": "ParameterRangeGenericTypeReference",
|
|
31
|
+
"parameterRangeGenericType": "cbqo:components/ActorQueryOperation.jsonld#ActorQueryOperation__generic_TS"
|
|
28
32
|
}
|
|
29
33
|
]
|
|
30
34
|
}
|
|
31
35
|
],
|
|
32
36
|
"comment": "A comunica actor for query-operation events. Actor types: * Input: IActionQueryOperation: A SPARQL Algebra operation. * Test: <none> * Output: IActorQueryOperationOutput: A bindings stream.",
|
|
37
|
+
"genericTypeParameters": [
|
|
38
|
+
{
|
|
39
|
+
"@id": "cbqo:components/ActorQueryOperation.jsonld#ActorQueryOperation__generic_TS",
|
|
40
|
+
"default": {
|
|
41
|
+
"@type": "ParameterRangeUndefined"
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
],
|
|
33
45
|
"parameters": [
|
|
34
46
|
{
|
|
35
47
|
"@id": "cbqo:components/ActorQueryOperation.jsonld#ActorQueryOperation_args_name",
|
|
@@ -60,6 +72,10 @@
|
|
|
60
72
|
{
|
|
61
73
|
"@type": "ParameterRangeGenericTypeReference",
|
|
62
74
|
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_O"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"@type": "ParameterRangeGenericTypeReference",
|
|
78
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_TS"
|
|
63
79
|
}
|
|
64
80
|
]
|
|
65
81
|
},
|
|
@@ -74,6 +90,10 @@
|
|
|
74
90
|
{
|
|
75
91
|
"@type": "ParameterRangeGenericTypeReference",
|
|
76
92
|
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_O"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"@type": "ParameterRangeGenericTypeReference",
|
|
96
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_TS"
|
|
77
97
|
}
|
|
78
98
|
]
|
|
79
99
|
},
|
|
@@ -83,6 +103,20 @@
|
|
|
83
103
|
},
|
|
84
104
|
"comment": "The bus this actor subscribes to."
|
|
85
105
|
},
|
|
106
|
+
{
|
|
107
|
+
"@id": "cbqo:components/ActorQueryOperation.jsonld#ActorQueryOperation_args_busFailMessage",
|
|
108
|
+
"range": {
|
|
109
|
+
"@type": "ParameterRangeUnion",
|
|
110
|
+
"parameterRangeElements": [
|
|
111
|
+
"xsd:string",
|
|
112
|
+
{
|
|
113
|
+
"@type": "ParameterRangeUndefined"
|
|
114
|
+
}
|
|
115
|
+
]
|
|
116
|
+
},
|
|
117
|
+
"default": "Query operation processing failed: none of the configured actors were able to handle the operation type ${action.operation.type}",
|
|
118
|
+
"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}\""
|
|
119
|
+
},
|
|
86
120
|
{
|
|
87
121
|
"@id": "cbqo:components/ActorQueryOperation.jsonld#ActorQueryOperation_args_beforeActors",
|
|
88
122
|
"range": {
|
|
@@ -105,6 +139,10 @@
|
|
|
105
139
|
{
|
|
106
140
|
"@type": "ParameterRangeGenericTypeReference",
|
|
107
141
|
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_O"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"@type": "ParameterRangeGenericTypeReference",
|
|
145
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_TS"
|
|
108
146
|
}
|
|
109
147
|
]
|
|
110
148
|
}
|
|
@@ -121,62 +159,6 @@
|
|
|
121
159
|
{
|
|
122
160
|
"@id": "cbqo:components/ActorQueryOperation.jsonld#ActorQueryOperation__member_constructor",
|
|
123
161
|
"memberFieldName": "constructor"
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
"@id": "cbqo:components/ActorQueryOperation.jsonld#ActorQueryOperation__member_getSafeBindings",
|
|
127
|
-
"memberFieldName": "getSafeBindings"
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
"@id": "cbqo:components/ActorQueryOperation.jsonld#ActorQueryOperation__member_getSafeQuads",
|
|
131
|
-
"memberFieldName": "getSafeQuads"
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
"@id": "cbqo:components/ActorQueryOperation.jsonld#ActorQueryOperation__member_getSafeBoolean",
|
|
135
|
-
"memberFieldName": "getSafeBoolean"
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
"@id": "cbqo:components/ActorQueryOperation.jsonld#ActorQueryOperation__member_getSafeVoid",
|
|
139
|
-
"memberFieldName": "getSafeVoid"
|
|
140
|
-
},
|
|
141
|
-
{
|
|
142
|
-
"@id": "cbqo:components/ActorQueryOperation.jsonld#ActorQueryOperation__member_validateQueryOutput",
|
|
143
|
-
"memberFieldName": "validateQueryOutput"
|
|
144
|
-
},
|
|
145
|
-
{
|
|
146
|
-
"@id": "cbqo:components/ActorQueryOperation.jsonld#ActorQueryOperation__member_getBaseExpressionContext",
|
|
147
|
-
"memberFieldName": "getBaseExpressionContext"
|
|
148
|
-
},
|
|
149
|
-
{
|
|
150
|
-
"@id": "cbqo:components/ActorQueryOperation.jsonld#ActorQueryOperation__member_getExpressionContext",
|
|
151
|
-
"memberFieldName": "getExpressionContext"
|
|
152
|
-
},
|
|
153
|
-
{
|
|
154
|
-
"@id": "cbqo:components/ActorQueryOperation.jsonld#ActorQueryOperation__member_getAsyncExpressionContext",
|
|
155
|
-
"memberFieldName": "getAsyncExpressionContext"
|
|
156
|
-
},
|
|
157
|
-
{
|
|
158
|
-
"@id": "cbqo:components/ActorQueryOperation.jsonld#ActorQueryOperation__member_createExistenceResolver",
|
|
159
|
-
"memberFieldName": "createExistenceResolver"
|
|
160
|
-
},
|
|
161
|
-
{
|
|
162
|
-
"@id": "cbqo:components/ActorQueryOperation.jsonld#ActorQueryOperation__member_throwOnReadOnly",
|
|
163
|
-
"memberFieldName": "throwOnReadOnly"
|
|
164
|
-
},
|
|
165
|
-
{
|
|
166
|
-
"@id": "cbqo:components/ActorQueryOperation.jsonld#ActorQueryOperation__member_getOperationSource",
|
|
167
|
-
"memberFieldName": "getOperationSource"
|
|
168
|
-
},
|
|
169
|
-
{
|
|
170
|
-
"@id": "cbqo:components/ActorQueryOperation.jsonld#ActorQueryOperation__member_assignOperationSource",
|
|
171
|
-
"memberFieldName": "assignOperationSource"
|
|
172
|
-
},
|
|
173
|
-
{
|
|
174
|
-
"@id": "cbqo:components/ActorQueryOperation.jsonld#ActorQueryOperation__member_removeOperationSource",
|
|
175
|
-
"memberFieldName": "removeOperationSource"
|
|
176
|
-
},
|
|
177
|
-
{
|
|
178
|
-
"@id": "cbqo:components/ActorQueryOperation.jsonld#ActorQueryOperation__member_doesShapeAcceptOperation",
|
|
179
|
-
"memberFieldName": "doesShapeAcceptOperation"
|
|
180
162
|
}
|
|
181
163
|
],
|
|
182
164
|
"constructorArguments": [
|
|
@@ -195,6 +177,12 @@
|
|
|
195
177
|
"@id": "cbqo:components/ActorQueryOperation.jsonld#ActorQueryOperation_args_bus"
|
|
196
178
|
}
|
|
197
179
|
},
|
|
180
|
+
{
|
|
181
|
+
"keyRaw": "busFailMessage",
|
|
182
|
+
"value": {
|
|
183
|
+
"@id": "cbqo:components/ActorQueryOperation.jsonld#ActorQueryOperation_args_busFailMessage"
|
|
184
|
+
}
|
|
185
|
+
},
|
|
198
186
|
{
|
|
199
187
|
"keyRaw": "beforeActors",
|
|
200
188
|
"value": {
|
|
@@ -242,6 +230,10 @@
|
|
|
242
230
|
{
|
|
243
231
|
"@id": "cbqo:components/ActorQueryOperation.jsonld#IBaseExpressionContext__member_functionArgumentsCache",
|
|
244
232
|
"memberFieldName": "functionArgumentsCache"
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
"@id": "cbqo:components/ActorQueryOperation.jsonld#IBaseExpressionContext__member_actionContext",
|
|
236
|
+
"memberFieldName": "actionContext"
|
|
245
237
|
}
|
|
246
238
|
],
|
|
247
239
|
"constructorArguments": []
|
|
@@ -10,7 +10,16 @@
|
|
|
10
10
|
"@type": "AbstractClass",
|
|
11
11
|
"requireElement": "ActorQueryOperationTyped",
|
|
12
12
|
"extends": [
|
|
13
|
-
|
|
13
|
+
{
|
|
14
|
+
"@type": "GenericComponentExtension",
|
|
15
|
+
"component": "cbqo:components/ActorQueryOperation.jsonld#ActorQueryOperation",
|
|
16
|
+
"genericTypeInstances": [
|
|
17
|
+
{
|
|
18
|
+
"@type": "ParameterRangeGenericTypeReference",
|
|
19
|
+
"parameterRangeGenericType": "cbqo:components/ActorQueryOperationTyped.jsonld#ActorQueryOperationTyped__generic_TS"
|
|
20
|
+
}
|
|
21
|
+
]
|
|
22
|
+
}
|
|
14
23
|
],
|
|
15
24
|
"comment": "A base implementation for query operation actors for a specific operation type.",
|
|
16
25
|
"genericTypeParameters": [
|
|
@@ -85,6 +94,12 @@
|
|
|
85
94
|
}
|
|
86
95
|
]
|
|
87
96
|
}
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"@id": "cbqo:components/ActorQueryOperationTyped.jsonld#ActorQueryOperationTyped__generic_TS",
|
|
100
|
+
"default": {
|
|
101
|
+
"@type": "ParameterRangeUndefined"
|
|
102
|
+
}
|
|
88
103
|
}
|
|
89
104
|
],
|
|
90
105
|
"parameters": [
|
|
@@ -121,6 +136,10 @@
|
|
|
121
136
|
{
|
|
122
137
|
"@type": "ParameterRangeGenericTypeReference",
|
|
123
138
|
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_O"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"@type": "ParameterRangeGenericTypeReference",
|
|
142
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_TS"
|
|
124
143
|
}
|
|
125
144
|
]
|
|
126
145
|
},
|
|
@@ -135,6 +154,10 @@
|
|
|
135
154
|
{
|
|
136
155
|
"@type": "ParameterRangeGenericTypeReference",
|
|
137
156
|
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_O"
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"@type": "ParameterRangeGenericTypeReference",
|
|
160
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_TS"
|
|
138
161
|
}
|
|
139
162
|
]
|
|
140
163
|
},
|
|
@@ -144,6 +167,20 @@
|
|
|
144
167
|
},
|
|
145
168
|
"comment": "The bus this actor subscribes to."
|
|
146
169
|
},
|
|
170
|
+
{
|
|
171
|
+
"@id": "cbqo:components/ActorQueryOperationTyped.jsonld#ActorQueryOperationTyped_args_busFailMessage",
|
|
172
|
+
"range": {
|
|
173
|
+
"@type": "ParameterRangeUnion",
|
|
174
|
+
"parameterRangeElements": [
|
|
175
|
+
"xsd:string",
|
|
176
|
+
{
|
|
177
|
+
"@type": "ParameterRangeUndefined"
|
|
178
|
+
}
|
|
179
|
+
]
|
|
180
|
+
},
|
|
181
|
+
"default": "Query operation processing failed: none of the configured actors were able to handle the operation type ${action.operation.type}",
|
|
182
|
+
"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}\""
|
|
183
|
+
},
|
|
147
184
|
{
|
|
148
185
|
"@id": "cbqo:components/ActorQueryOperationTyped.jsonld#ActorQueryOperationTyped_args_beforeActors",
|
|
149
186
|
"range": {
|
|
@@ -166,6 +203,10 @@
|
|
|
166
203
|
{
|
|
167
204
|
"@type": "ParameterRangeGenericTypeReference",
|
|
168
205
|
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_O"
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"@type": "ParameterRangeGenericTypeReference",
|
|
209
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_TS"
|
|
169
210
|
}
|
|
170
211
|
]
|
|
171
212
|
}
|
|
@@ -221,6 +262,12 @@
|
|
|
221
262
|
"@id": "cbqo:components/ActorQueryOperationTyped.jsonld#ActorQueryOperationTyped_args_bus"
|
|
222
263
|
}
|
|
223
264
|
},
|
|
265
|
+
{
|
|
266
|
+
"keyRaw": "busFailMessage",
|
|
267
|
+
"value": {
|
|
268
|
+
"@id": "cbqo:components/ActorQueryOperationTyped.jsonld#ActorQueryOperationTyped_args_busFailMessage"
|
|
269
|
+
}
|
|
270
|
+
},
|
|
224
271
|
{
|
|
225
272
|
"keyRaw": "beforeActors",
|
|
226
273
|
"value": {
|
|
@@ -17,10 +17,23 @@
|
|
|
17
17
|
{
|
|
18
18
|
"@type": "ParameterRangeGenericTypeReference",
|
|
19
19
|
"parameterRangeGenericType": "cbqo:components/ActorQueryOperationTypedMediated.jsonld#ActorQueryOperationTypedMediated__generic_O"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"@type": "ParameterRangeGenericTypeReference",
|
|
23
|
+
"parameterRangeGenericType": "cbqo:components/ActorQueryOperationTypedMediated.jsonld#ActorQueryOperationTypedMediated__generic_TS"
|
|
20
24
|
}
|
|
21
25
|
]
|
|
22
26
|
},
|
|
23
|
-
|
|
27
|
+
{
|
|
28
|
+
"@type": "GenericComponentExtension",
|
|
29
|
+
"component": "cbqo:components/ActorQueryOperationTypedMediated.jsonld#IActorQueryOperationTypedMediatedArgs",
|
|
30
|
+
"genericTypeInstances": [
|
|
31
|
+
{
|
|
32
|
+
"@type": "ParameterRangeGenericTypeReference",
|
|
33
|
+
"parameterRangeGenericType": "cbqo:components/ActorQueryOperationTypedMediated.jsonld#ActorQueryOperationTypedMediated__generic_TS"
|
|
34
|
+
}
|
|
35
|
+
]
|
|
36
|
+
}
|
|
24
37
|
],
|
|
25
38
|
"comment": "A base implementation for query operation actors for a specific operation type that have a query operation mediator.",
|
|
26
39
|
"genericTypeParameters": [
|
|
@@ -95,6 +108,12 @@
|
|
|
95
108
|
}
|
|
96
109
|
]
|
|
97
110
|
}
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"@id": "cbqo:components/ActorQueryOperationTypedMediated.jsonld#ActorQueryOperationTypedMediated__generic_TS",
|
|
114
|
+
"default": {
|
|
115
|
+
"@type": "ParameterRangeUndefined"
|
|
116
|
+
}
|
|
98
117
|
}
|
|
99
118
|
],
|
|
100
119
|
"parameters": [
|
|
@@ -135,6 +154,10 @@
|
|
|
135
154
|
{
|
|
136
155
|
"@type": "ParameterRangeGenericTypeReference",
|
|
137
156
|
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_O"
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"@type": "ParameterRangeGenericTypeReference",
|
|
160
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_TS"
|
|
138
161
|
}
|
|
139
162
|
]
|
|
140
163
|
},
|
|
@@ -149,6 +172,10 @@
|
|
|
149
172
|
{
|
|
150
173
|
"@type": "ParameterRangeGenericTypeReference",
|
|
151
174
|
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_O"
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"@type": "ParameterRangeGenericTypeReference",
|
|
178
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_TS"
|
|
152
179
|
}
|
|
153
180
|
]
|
|
154
181
|
},
|
|
@@ -158,6 +185,20 @@
|
|
|
158
185
|
},
|
|
159
186
|
"comment": "The bus this actor subscribes to."
|
|
160
187
|
},
|
|
188
|
+
{
|
|
189
|
+
"@id": "cbqo:components/ActorQueryOperationTypedMediated.jsonld#ActorQueryOperationTypedMediated_args_busFailMessage",
|
|
190
|
+
"range": {
|
|
191
|
+
"@type": "ParameterRangeUnion",
|
|
192
|
+
"parameterRangeElements": [
|
|
193
|
+
"xsd:string",
|
|
194
|
+
{
|
|
195
|
+
"@type": "ParameterRangeUndefined"
|
|
196
|
+
}
|
|
197
|
+
]
|
|
198
|
+
},
|
|
199
|
+
"default": "Query operation processing failed: none of the configured actors were able to handle the operation type ${action.operation.type}",
|
|
200
|
+
"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}\""
|
|
201
|
+
},
|
|
161
202
|
{
|
|
162
203
|
"@id": "cbqo:components/ActorQueryOperationTypedMediated.jsonld#ActorQueryOperationTypedMediated_args_beforeActors",
|
|
163
204
|
"range": {
|
|
@@ -180,6 +221,10 @@
|
|
|
180
221
|
{
|
|
181
222
|
"@type": "ParameterRangeGenericTypeReference",
|
|
182
223
|
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_O"
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
"@type": "ParameterRangeGenericTypeReference",
|
|
227
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_TS"
|
|
183
228
|
}
|
|
184
229
|
]
|
|
185
230
|
}
|
|
@@ -225,6 +270,12 @@
|
|
|
225
270
|
"@id": "cbqo:components/ActorQueryOperationTypedMediated.jsonld#ActorQueryOperationTypedMediated_args_bus"
|
|
226
271
|
}
|
|
227
272
|
},
|
|
273
|
+
{
|
|
274
|
+
"keyRaw": "busFailMessage",
|
|
275
|
+
"value": {
|
|
276
|
+
"@id": "cbqo:components/ActorQueryOperationTypedMediated.jsonld#ActorQueryOperationTypedMediated_args_busFailMessage"
|
|
277
|
+
}
|
|
278
|
+
},
|
|
228
279
|
{
|
|
229
280
|
"keyRaw": "beforeActors",
|
|
230
281
|
"value": {
|
|
@@ -242,6 +293,14 @@
|
|
|
242
293
|
"@id": "cbqo:components/ActorQueryOperationTypedMediated.jsonld#IActorQueryOperationTypedMediatedArgs",
|
|
243
294
|
"@type": "AbstractClass",
|
|
244
295
|
"requireElement": "IActorQueryOperationTypedMediatedArgs",
|
|
296
|
+
"genericTypeParameters": [
|
|
297
|
+
{
|
|
298
|
+
"@id": "cbqo:components/ActorQueryOperationTypedMediated.jsonld#IActorQueryOperationTypedMediatedArgs__generic_TS",
|
|
299
|
+
"default": {
|
|
300
|
+
"@type": "ParameterRangeUndefined"
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
],
|
|
245
304
|
"parameters": [],
|
|
246
305
|
"memberFields": [
|
|
247
306
|
{
|
|
@@ -14,6 +14,9 @@
|
|
|
14
14
|
"args_bus": {
|
|
15
15
|
"@id": "cbqo:components/ActorQueryOperation.jsonld#ActorQueryOperation_args_bus"
|
|
16
16
|
},
|
|
17
|
+
"args_busFailMessage": {
|
|
18
|
+
"@id": "cbqo:components/ActorQueryOperation.jsonld#ActorQueryOperation_args_busFailMessage"
|
|
19
|
+
},
|
|
17
20
|
"args_beforeActors": {
|
|
18
21
|
"@id": "cbqo:components/ActorQueryOperation.jsonld#ActorQueryOperation_args_beforeActors",
|
|
19
22
|
"@container": "@list"
|
|
@@ -24,6 +27,9 @@
|
|
|
24
27
|
"bus": {
|
|
25
28
|
"@id": "cbqo:components/ActorQueryOperation.jsonld#ActorQueryOperation_args_bus"
|
|
26
29
|
},
|
|
30
|
+
"busFailMessage": {
|
|
31
|
+
"@id": "cbqo:components/ActorQueryOperation.jsonld#ActorQueryOperation_args_busFailMessage"
|
|
32
|
+
},
|
|
27
33
|
"beforeActors": {
|
|
28
34
|
"@id": "cbqo:components/ActorQueryOperation.jsonld#ActorQueryOperation_args_beforeActors",
|
|
29
35
|
"@container": "@list"
|
|
@@ -63,6 +69,9 @@
|
|
|
63
69
|
"args_bus": {
|
|
64
70
|
"@id": "cbqo:components/ActorQueryOperationTyped.jsonld#ActorQueryOperationTyped_args_bus"
|
|
65
71
|
},
|
|
72
|
+
"args_busFailMessage": {
|
|
73
|
+
"@id": "cbqo:components/ActorQueryOperationTyped.jsonld#ActorQueryOperationTyped_args_busFailMessage"
|
|
74
|
+
},
|
|
66
75
|
"args_beforeActors": {
|
|
67
76
|
"@id": "cbqo:components/ActorQueryOperationTyped.jsonld#ActorQueryOperationTyped_args_beforeActors",
|
|
68
77
|
"@container": "@list"
|
|
@@ -76,6 +85,9 @@
|
|
|
76
85
|
"bus": {
|
|
77
86
|
"@id": "cbqo:components/ActorQueryOperationTyped.jsonld#ActorQueryOperationTyped_args_bus"
|
|
78
87
|
},
|
|
88
|
+
"busFailMessage": {
|
|
89
|
+
"@id": "cbqo:components/ActorQueryOperationTyped.jsonld#ActorQueryOperationTyped_args_busFailMessage"
|
|
90
|
+
},
|
|
79
91
|
"beforeActors": {
|
|
80
92
|
"@id": "cbqo:components/ActorQueryOperationTyped.jsonld#ActorQueryOperationTyped_args_beforeActors",
|
|
81
93
|
"@container": "@list"
|
|
@@ -98,6 +110,9 @@
|
|
|
98
110
|
"args_bus": {
|
|
99
111
|
"@id": "cbqo:components/ActorQueryOperationTypedMediated.jsonld#ActorQueryOperationTypedMediated_args_bus"
|
|
100
112
|
},
|
|
113
|
+
"args_busFailMessage": {
|
|
114
|
+
"@id": "cbqo:components/ActorQueryOperationTypedMediated.jsonld#ActorQueryOperationTypedMediated_args_busFailMessage"
|
|
115
|
+
},
|
|
101
116
|
"args_beforeActors": {
|
|
102
117
|
"@id": "cbqo:components/ActorQueryOperationTypedMediated.jsonld#ActorQueryOperationTypedMediated_args_beforeActors",
|
|
103
118
|
"@container": "@list"
|
|
@@ -114,6 +129,9 @@
|
|
|
114
129
|
"bus": {
|
|
115
130
|
"@id": "cbqo:components/ActorQueryOperationTypedMediated.jsonld#ActorQueryOperationTypedMediated_args_bus"
|
|
116
131
|
},
|
|
132
|
+
"busFailMessage": {
|
|
133
|
+
"@id": "cbqo:components/ActorQueryOperationTypedMediated.jsonld#ActorQueryOperationTypedMediated_args_busFailMessage"
|
|
134
|
+
},
|
|
117
135
|
"beforeActors": {
|
|
118
136
|
"@id": "cbqo:components/ActorQueryOperationTypedMediated.jsonld#ActorQueryOperationTypedMediated_args_beforeActors",
|
|
119
137
|
"@container": "@list"
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import type { BindingsFactory } from '@comunica/bindings-factory';
|
|
2
1
|
import type { IActorArgs, IActorTest, IAction, Mediate } from '@comunica/core';
|
|
3
2
|
import { Actor } from '@comunica/core';
|
|
4
|
-
import type { IQueryOperationResult,
|
|
3
|
+
import type { IQueryOperationResult, Bindings, IActionContext, FunctionArgumentsCache } from '@comunica/types';
|
|
5
4
|
import type * as RDF from '@rdfjs/types';
|
|
6
5
|
import type { Algebra } from 'sparqlalgebrajs';
|
|
7
6
|
/**
|
|
@@ -15,102 +14,13 @@ import type { Algebra } from 'sparqlalgebrajs';
|
|
|
15
14
|
* @see IActionQueryOperation
|
|
16
15
|
* @see IQueryOperationResult
|
|
17
16
|
*/
|
|
18
|
-
export declare abstract class ActorQueryOperation extends Actor<IActionQueryOperation, IActorTest, IQueryOperationResult> {
|
|
17
|
+
export declare abstract class ActorQueryOperation<TS = undefined> extends Actor<IActionQueryOperation, IActorTest, IQueryOperationResult, TS> {
|
|
19
18
|
/**
|
|
20
|
-
* @param args -
|
|
19
|
+
* @param args -
|
|
20
|
+
* \ @defaultNested {<default_bus> a <cbqo:components/BusQueryOperation.jsonld#BusQueryOperation>} bus
|
|
21
|
+
* \ @defaultNested {Query operation processing failed: none of the configured actors were able to handle the operation type ${action.operation.type}} busFailMessage
|
|
21
22
|
*/
|
|
22
|
-
protected constructor(args: IActorQueryOperationArgs);
|
|
23
|
-
/**
|
|
24
|
-
* Safely cast a query operation output to a bindings output.
|
|
25
|
-
* This will throw a runtime error if the output is of the incorrect type.
|
|
26
|
-
* @param {IQueryOperationResult} output A query operation output.
|
|
27
|
-
* @return {IQueryOperationResultBindings} A bindings query operation output.
|
|
28
|
-
*/
|
|
29
|
-
static getSafeBindings(output: IQueryOperationResult): IQueryOperationResultBindings;
|
|
30
|
-
/**
|
|
31
|
-
* Safely cast a query operation output to a quads output.
|
|
32
|
-
* This will throw a runtime error if the output is of the incorrect type.
|
|
33
|
-
* @param {IQueryOperationResult} output A query operation output.
|
|
34
|
-
* @return {IQueryOperationResultQuads} A quads query operation output.
|
|
35
|
-
*/
|
|
36
|
-
static getSafeQuads(output: IQueryOperationResult): IQueryOperationResultQuads;
|
|
37
|
-
/**
|
|
38
|
-
* Safely cast a query operation output to a boolean output.
|
|
39
|
-
* This will throw a runtime error if the output is of the incorrect type.
|
|
40
|
-
* @param {IQueryOperationResult} output A query operation output.
|
|
41
|
-
* @return {IQueryOperationResultBoolean} A boolean query operation output.
|
|
42
|
-
*/
|
|
43
|
-
static getSafeBoolean(output: IQueryOperationResult): IQueryOperationResultBoolean;
|
|
44
|
-
/**
|
|
45
|
-
* Safely cast a query operation output to a void output.
|
|
46
|
-
* This will throw a runtime error if the output is of the incorrect type.
|
|
47
|
-
* @param {IQueryOperationResult} output A query operation output.
|
|
48
|
-
* @return {IQueryOperationResultVoid} A void query operation output.
|
|
49
|
-
*/
|
|
50
|
-
static getSafeVoid(output: IQueryOperationResult): IQueryOperationResultVoid;
|
|
51
|
-
/**
|
|
52
|
-
* Throw an error if the output type does not match the expected type.
|
|
53
|
-
* @param {IQueryOperationResult} output A query operation output.
|
|
54
|
-
* @param {string} expectedType The expected output type.
|
|
55
|
-
*/
|
|
56
|
-
static validateQueryOutput(output: IQueryOperationResult, expectedType: IQueryOperationResult['type']): void;
|
|
57
|
-
protected static getBaseExpressionContext(context: IActionContext): IBaseExpressionContext;
|
|
58
|
-
/**
|
|
59
|
-
* Create an options object that can be used to construct a expression-evaluator synchronous evaluator.
|
|
60
|
-
* @param context An action context.
|
|
61
|
-
* @param _mediatorQueryOperation An optional query query operation mediator.
|
|
62
|
-
* If defined, the existence resolver will be defined as `exists`.
|
|
63
|
-
*/
|
|
64
|
-
static getExpressionContext(context: IActionContext, _mediatorQueryOperation?: MediatorQueryOperation): ISyncExpressionContext;
|
|
65
|
-
/**
|
|
66
|
-
* Create an options object that can be used to construct a expression-evaluator asynchronous evaluator.
|
|
67
|
-
* @param context An action context.
|
|
68
|
-
* @param mediatorQueryOperation A query query operation mediator for resolving `exists`.
|
|
69
|
-
* @param bindingsFactory The bindings factory.
|
|
70
|
-
*/
|
|
71
|
-
static getAsyncExpressionContext(context: IActionContext, mediatorQueryOperation: MediatorQueryOperation, bindingsFactory: BindingsFactory): IAsyncExpressionContext;
|
|
72
|
-
/**
|
|
73
|
-
* Create an existence resolver for usage within an expression context.
|
|
74
|
-
* @param context An action context.
|
|
75
|
-
* @param mediatorQueryOperation A query operation mediator.
|
|
76
|
-
* @param bindingsFactory The bindings factory.
|
|
77
|
-
*/
|
|
78
|
-
static createExistenceResolver(context: IActionContext, mediatorQueryOperation: MediatorQueryOperation, bindingsFactory: BindingsFactory): (expr: Algebra.ExistenceExpression, bindings: Bindings) => Promise<boolean>;
|
|
79
|
-
/**
|
|
80
|
-
* Throw an error if the context contains the readOnly flag.
|
|
81
|
-
* @param context An action context.
|
|
82
|
-
*/
|
|
83
|
-
static throwOnReadOnly(context: IActionContext): void;
|
|
84
|
-
/**
|
|
85
|
-
* Obtain the query source attached to the given operation.
|
|
86
|
-
* @param operation An algebra operation.
|
|
87
|
-
*/
|
|
88
|
-
static getOperationSource(operation: Algebra.Operation): IQuerySourceWrapper | undefined;
|
|
89
|
-
/**
|
|
90
|
-
* Assign a source wrapper to the given operation.
|
|
91
|
-
* The operation is copied and returned.
|
|
92
|
-
* @param operation An operation.
|
|
93
|
-
* @param source A source wrapper.
|
|
94
|
-
*/
|
|
95
|
-
static assignOperationSource<O extends Algebra.Operation>(operation: O, source: IQuerySourceWrapper): O;
|
|
96
|
-
/**
|
|
97
|
-
* Remove the source wrapper from the given operation.
|
|
98
|
-
* The operation is mutated.
|
|
99
|
-
* @param operation An operation.
|
|
100
|
-
*/
|
|
101
|
-
static removeOperationSource(operation: Algebra.Operation): void;
|
|
102
|
-
/**
|
|
103
|
-
* Check if the given shape accepts the given query operation.
|
|
104
|
-
* @param shape A shape to test the query operation against.
|
|
105
|
-
* @param operation A query operation to test.
|
|
106
|
-
* @param options Additional options to consider.
|
|
107
|
-
* @param options.joinBindings If additional bindings will be pushed down to the source for joining.
|
|
108
|
-
* @param options.filterBindings If additional bindings will be pushed down to the source for filtering.
|
|
109
|
-
*/
|
|
110
|
-
static doesShapeAcceptOperation(shape: FragmentSelectorShape, operation: Algebra.Operation, options?: {
|
|
111
|
-
joinBindings?: boolean;
|
|
112
|
-
filterBindings?: boolean;
|
|
113
|
-
}): boolean;
|
|
23
|
+
protected constructor(args: IActorQueryOperationArgs<TS>);
|
|
114
24
|
}
|
|
115
25
|
export interface IActionQueryOperation extends IAction {
|
|
116
26
|
/**
|
|
@@ -118,13 +28,14 @@ export interface IActionQueryOperation extends IAction {
|
|
|
118
28
|
*/
|
|
119
29
|
operation: Algebra.Operation;
|
|
120
30
|
}
|
|
121
|
-
export type IActorQueryOperationArgs = IActorArgs<IActionQueryOperation, IActorTest, IQueryOperationResult>;
|
|
31
|
+
export type IActorQueryOperationArgs<TS = undefined> = IActorArgs<IActionQueryOperation, IActorTest, IQueryOperationResult, TS>;
|
|
122
32
|
export type MediatorQueryOperation = Mediate<IActionQueryOperation, IQueryOperationResult>;
|
|
123
33
|
export interface IBaseExpressionContext {
|
|
124
34
|
now?: Date;
|
|
125
35
|
baseIRI?: string;
|
|
126
36
|
extensionFunctionCreator?: (functionNamedNode: RDF.NamedNode) => ((args: RDF.Term[]) => Promise<RDF.Term>) | undefined;
|
|
127
37
|
functionArgumentsCache?: FunctionArgumentsCache;
|
|
38
|
+
actionContext: IActionContext;
|
|
128
39
|
}
|
|
129
40
|
export interface ISyncExpressionContext extends IBaseExpressionContext {
|
|
130
41
|
bnode: (input?: string | undefined) => RDF.BlankNode;
|
|
@@ -133,3 +44,7 @@ export interface IAsyncExpressionContext extends IBaseExpressionContext {
|
|
|
133
44
|
bnode: (input?: string | undefined) => Promise<RDF.BlankNode>;
|
|
134
45
|
exists?: (expr: Algebra.ExistenceExpression, bindings: Bindings) => Promise<boolean>;
|
|
135
46
|
}
|
|
47
|
+
export type FragmentSelectorShapeTestFlags = {
|
|
48
|
+
joinBindings?: boolean;
|
|
49
|
+
filterBindings?: boolean;
|
|
50
|
+
};
|