@comunica/actor-init-query 3.3.0 → 4.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/components/ActorInitQuery.jsonld +47 -14
- package/components/ActorInitQueryBase.jsonld +44 -12
- package/components/HttpServiceSparqlEndpoint.jsonld +1 -5
- package/components/MemoryPhysicalQueryPlanLogger.jsonld +2 -2
- package/components/QueryEngineBase.jsonld +64 -5
- package/components/QueryEngineFactoryBase.jsonld +2 -2
- package/components/cli/CliArgsHandlerBase.jsonld +2 -2
- package/components/cli/CliArgsHandlerHttp.jsonld +2 -2
- package/components/cli/CliArgsHandlerQuery.jsonld +2 -2
- package/components/components.jsonld +1 -1
- package/components/context.jsonld +13 -1
- package/lib/ActorInitQuery-browser.js +0 -2
- package/lib/ActorInitQuery-browser.js.map +1 -1
- package/lib/ActorInitQueryBase.d.ts +2 -2
- package/lib/ActorInitQueryBase.js +2 -1
- package/lib/ActorInitQueryBase.js.map +1 -1
- package/lib/HttpServiceSparqlEndpoint.d.ts +0 -2
- package/lib/HttpServiceSparqlEndpoint.js +0 -7
- package/lib/HttpServiceSparqlEndpoint.js.map +1 -1
- package/lib/QueryEngineBase.js +11 -3
- package/lib/QueryEngineBase.js.map +1 -1
- package/lib/cli/CliArgsHandlerBase.js +17 -17
- package/lib/cli/CliArgsHandlerBase.js.map +1 -1
- package/lib/cli/CliArgsHandlerHttp.js +0 -4
- package/lib/cli/CliArgsHandlerHttp.js.map +1 -1
- package/lib/cli/CliArgsHandlerQuery.js +0 -1
- package/lib/cli/CliArgsHandlerQuery.js.map +1 -1
- package/lib/index-browser.js +0 -2
- package/lib/index-browser.js.map +1 -1
- package/package.json +16 -12
package/README.md
CHANGED
|
@@ -22,7 +22,7 @@ After installing, this package can be added to your engine's configuration as fo
|
|
|
22
22
|
{
|
|
23
23
|
"@context": [
|
|
24
24
|
...
|
|
25
|
-
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-query/^
|
|
25
|
+
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-query/^4.0.0/components/context.jsonld"
|
|
26
26
|
],
|
|
27
27
|
"actors": [
|
|
28
28
|
...
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"@context": [
|
|
3
|
-
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-query/^
|
|
4
|
-
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/types/^
|
|
5
|
-
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/core/^
|
|
6
|
-
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-init/^
|
|
3
|
+
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-query/^4.0.0/components/context.jsonld",
|
|
4
|
+
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/types/^4.0.0/components/context.jsonld",
|
|
5
|
+
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/core/^4.0.0/components/context.jsonld",
|
|
6
|
+
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-init/^4.0.0/components/context.jsonld"
|
|
7
7
|
],
|
|
8
8
|
"@id": "npmd:@comunica/actor-init-query",
|
|
9
9
|
"components": [
|
|
@@ -18,7 +18,8 @@
|
|
|
18
18
|
"genericTypeParameters": [
|
|
19
19
|
{
|
|
20
20
|
"@id": "caiq:components/ActorInitQuery.jsonld#ActorInitQuery__generic_QueryContext",
|
|
21
|
-
"range": "ct:components/IQueryContext.jsonld#IQueryContextCommon"
|
|
21
|
+
"range": "ct:components/IQueryContext.jsonld#IQueryContextCommon",
|
|
22
|
+
"default": "ct:components/IQueryContext.jsonld#IQueryContextCommon"
|
|
22
23
|
}
|
|
23
24
|
],
|
|
24
25
|
"parameters": [
|
|
@@ -121,29 +122,37 @@
|
|
|
121
122
|
"genericTypeInstances": [
|
|
122
123
|
{
|
|
123
124
|
"@type": "ParameterRangeGenericTypeReference",
|
|
124
|
-
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^
|
|
125
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_I"
|
|
125
126
|
},
|
|
126
127
|
{
|
|
127
128
|
"@type": "ParameterRangeGenericTypeReference",
|
|
128
|
-
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^
|
|
129
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_T"
|
|
129
130
|
},
|
|
130
131
|
{
|
|
131
132
|
"@type": "ParameterRangeGenericTypeReference",
|
|
132
|
-
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^
|
|
133
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_O"
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"@type": "ParameterRangeGenericTypeReference",
|
|
137
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_TS"
|
|
133
138
|
}
|
|
134
139
|
]
|
|
135
140
|
},
|
|
136
141
|
{
|
|
137
142
|
"@type": "ParameterRangeGenericTypeReference",
|
|
138
|
-
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^
|
|
143
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_I"
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"@type": "ParameterRangeGenericTypeReference",
|
|
147
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_T"
|
|
139
148
|
},
|
|
140
149
|
{
|
|
141
150
|
"@type": "ParameterRangeGenericTypeReference",
|
|
142
|
-
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^
|
|
151
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_O"
|
|
143
152
|
},
|
|
144
153
|
{
|
|
145
154
|
"@type": "ParameterRangeGenericTypeReference",
|
|
146
|
-
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^
|
|
155
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_TS"
|
|
147
156
|
}
|
|
148
157
|
]
|
|
149
158
|
},
|
|
@@ -153,6 +162,20 @@
|
|
|
153
162
|
},
|
|
154
163
|
"comment": "The bus this actor subscribes to."
|
|
155
164
|
},
|
|
165
|
+
{
|
|
166
|
+
"@id": "caiq:components/ActorInitQuery.jsonld#ActorInitQuery_args_busFailMessage",
|
|
167
|
+
"range": {
|
|
168
|
+
"@type": "ParameterRangeUnion",
|
|
169
|
+
"parameterRangeElements": [
|
|
170
|
+
"xsd:string",
|
|
171
|
+
{
|
|
172
|
+
"@type": "ParameterRangeUndefined"
|
|
173
|
+
}
|
|
174
|
+
]
|
|
175
|
+
},
|
|
176
|
+
"default": "Initialization failed: none of the configured actors were to initialize",
|
|
177
|
+
"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}\""
|
|
178
|
+
},
|
|
156
179
|
{
|
|
157
180
|
"@id": "caiq:components/ActorInitQuery.jsonld#ActorInitQuery_args_beforeActors",
|
|
158
181
|
"range": {
|
|
@@ -166,15 +189,19 @@
|
|
|
166
189
|
"genericTypeInstances": [
|
|
167
190
|
{
|
|
168
191
|
"@type": "ParameterRangeGenericTypeReference",
|
|
169
|
-
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^
|
|
192
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_I"
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"@type": "ParameterRangeGenericTypeReference",
|
|
196
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_T"
|
|
170
197
|
},
|
|
171
198
|
{
|
|
172
199
|
"@type": "ParameterRangeGenericTypeReference",
|
|
173
|
-
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^
|
|
200
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_O"
|
|
174
201
|
},
|
|
175
202
|
{
|
|
176
203
|
"@type": "ParameterRangeGenericTypeReference",
|
|
177
|
-
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^
|
|
204
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_TS"
|
|
178
205
|
}
|
|
179
206
|
]
|
|
180
207
|
}
|
|
@@ -267,6 +294,12 @@
|
|
|
267
294
|
"@id": "caiq:components/ActorInitQuery.jsonld#ActorInitQuery_args_bus"
|
|
268
295
|
}
|
|
269
296
|
},
|
|
297
|
+
{
|
|
298
|
+
"keyRaw": "busFailMessage",
|
|
299
|
+
"value": {
|
|
300
|
+
"@id": "caiq:components/ActorInitQuery.jsonld#ActorInitQuery_args_busFailMessage"
|
|
301
|
+
}
|
|
302
|
+
},
|
|
270
303
|
{
|
|
271
304
|
"keyRaw": "beforeActors",
|
|
272
305
|
"value": {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"@context": [
|
|
3
|
-
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-query/^
|
|
4
|
-
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-init/^
|
|
5
|
-
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/core/^
|
|
3
|
+
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-query/^4.0.0/components/context.jsonld",
|
|
4
|
+
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-init/^4.0.0/components/context.jsonld",
|
|
5
|
+
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/core/^4.0.0/components/context.jsonld"
|
|
6
6
|
],
|
|
7
7
|
"@id": "npmd:@comunica/actor-init-query",
|
|
8
8
|
"components": [
|
|
@@ -36,29 +36,37 @@
|
|
|
36
36
|
"genericTypeInstances": [
|
|
37
37
|
{
|
|
38
38
|
"@type": "ParameterRangeGenericTypeReference",
|
|
39
|
-
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^
|
|
39
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_I"
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
42
|
"@type": "ParameterRangeGenericTypeReference",
|
|
43
|
-
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^
|
|
43
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_T"
|
|
44
44
|
},
|
|
45
45
|
{
|
|
46
46
|
"@type": "ParameterRangeGenericTypeReference",
|
|
47
|
-
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^
|
|
47
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_O"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"@type": "ParameterRangeGenericTypeReference",
|
|
51
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_TS"
|
|
48
52
|
}
|
|
49
53
|
]
|
|
50
54
|
},
|
|
51
55
|
{
|
|
52
56
|
"@type": "ParameterRangeGenericTypeReference",
|
|
53
|
-
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^
|
|
57
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_I"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"@type": "ParameterRangeGenericTypeReference",
|
|
61
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_T"
|
|
54
62
|
},
|
|
55
63
|
{
|
|
56
64
|
"@type": "ParameterRangeGenericTypeReference",
|
|
57
|
-
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^
|
|
65
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_O"
|
|
58
66
|
},
|
|
59
67
|
{
|
|
60
68
|
"@type": "ParameterRangeGenericTypeReference",
|
|
61
|
-
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^
|
|
69
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_TS"
|
|
62
70
|
}
|
|
63
71
|
]
|
|
64
72
|
},
|
|
@@ -68,6 +76,20 @@
|
|
|
68
76
|
},
|
|
69
77
|
"comment": "The bus this actor subscribes to."
|
|
70
78
|
},
|
|
79
|
+
{
|
|
80
|
+
"@id": "caiq:components/ActorInitQueryBase.jsonld#ActorInitQueryBase_args_busFailMessage",
|
|
81
|
+
"range": {
|
|
82
|
+
"@type": "ParameterRangeUnion",
|
|
83
|
+
"parameterRangeElements": [
|
|
84
|
+
"xsd:string",
|
|
85
|
+
{
|
|
86
|
+
"@type": "ParameterRangeUndefined"
|
|
87
|
+
}
|
|
88
|
+
]
|
|
89
|
+
},
|
|
90
|
+
"default": "Initialization failed: none of the configured actors were to initialize",
|
|
91
|
+
"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}\""
|
|
92
|
+
},
|
|
71
93
|
{
|
|
72
94
|
"@id": "caiq:components/ActorInitQueryBase.jsonld#ActorInitQueryBase_args_beforeActors",
|
|
73
95
|
"range": {
|
|
@@ -81,15 +103,19 @@
|
|
|
81
103
|
"genericTypeInstances": [
|
|
82
104
|
{
|
|
83
105
|
"@type": "ParameterRangeGenericTypeReference",
|
|
84
|
-
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^
|
|
106
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_I"
|
|
85
107
|
},
|
|
86
108
|
{
|
|
87
109
|
"@type": "ParameterRangeGenericTypeReference",
|
|
88
|
-
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^
|
|
110
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_T"
|
|
89
111
|
},
|
|
90
112
|
{
|
|
91
113
|
"@type": "ParameterRangeGenericTypeReference",
|
|
92
|
-
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^
|
|
114
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_O"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"@type": "ParameterRangeGenericTypeReference",
|
|
118
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_TS"
|
|
93
119
|
}
|
|
94
120
|
]
|
|
95
121
|
}
|
|
@@ -173,6 +199,12 @@
|
|
|
173
199
|
"@id": "caiq:components/ActorInitQueryBase.jsonld#ActorInitQueryBase_args_bus"
|
|
174
200
|
}
|
|
175
201
|
},
|
|
202
|
+
{
|
|
203
|
+
"keyRaw": "busFailMessage",
|
|
204
|
+
"value": {
|
|
205
|
+
"@id": "caiq:components/ActorInitQueryBase.jsonld#ActorInitQueryBase_args_busFailMessage"
|
|
206
|
+
}
|
|
207
|
+
},
|
|
176
208
|
{
|
|
177
209
|
"keyRaw": "beforeActors",
|
|
178
210
|
"value": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"@context": [
|
|
3
|
-
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-query/^
|
|
3
|
+
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-query/^4.0.0/components/context.jsonld"
|
|
4
4
|
],
|
|
5
5
|
"@id": "npmd:@comunica/actor-init-query",
|
|
6
6
|
"components": [
|
|
@@ -47,10 +47,6 @@
|
|
|
47
47
|
"@id": "caiq:components/HttpServiceSparqlEndpoint.jsonld#IHttpServiceSparqlEndpointArgs__member_workers",
|
|
48
48
|
"memberFieldName": "workers"
|
|
49
49
|
},
|
|
50
|
-
{
|
|
51
|
-
"@id": "caiq:components/HttpServiceSparqlEndpoint.jsonld#IHttpServiceSparqlEndpointArgs__member_invalidateCacheBeforeQuery",
|
|
52
|
-
"memberFieldName": "invalidateCacheBeforeQuery"
|
|
53
|
-
},
|
|
54
50
|
{
|
|
55
51
|
"@id": "caiq:components/HttpServiceSparqlEndpoint.jsonld#IHttpServiceSparqlEndpointArgs__member_freshWorkerPerQuery",
|
|
56
52
|
"memberFieldName": "freshWorkerPerQuery"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"@context": [
|
|
3
|
-
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-query/^
|
|
4
|
-
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/types/^
|
|
3
|
+
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-query/^4.0.0/components/context.jsonld",
|
|
4
|
+
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/types/^4.0.0/components/context.jsonld"
|
|
5
5
|
],
|
|
6
6
|
"@id": "npmd:@comunica/actor-init-query",
|
|
7
7
|
"components": [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"@context": [
|
|
3
|
-
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-query/^
|
|
4
|
-
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/types/^
|
|
3
|
+
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-query/^4.0.0/components/context.jsonld",
|
|
4
|
+
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/types/^4.0.0/components/context.jsonld"
|
|
5
5
|
],
|
|
6
6
|
"@id": "npmd:@comunica/actor-init-query",
|
|
7
7
|
"components": [
|
|
@@ -13,15 +13,74 @@
|
|
|
13
13
|
"genericTypeParameters": [
|
|
14
14
|
{
|
|
15
15
|
"@id": "caiq:components/QueryEngineBase.jsonld#QueryEngineBase__generic_QueryContext",
|
|
16
|
-
"range": "ct:components/IQueryContext.jsonld#IQueryContextCommon"
|
|
16
|
+
"range": "ct:components/IQueryContext.jsonld#IQueryContextCommon",
|
|
17
|
+
"default": "ct:components/IQueryContext.jsonld#IQueryContextCommon"
|
|
17
18
|
},
|
|
18
19
|
{
|
|
19
20
|
"@id": "caiq:components/QueryEngineBase.jsonld#QueryEngineBase__generic_QueryStringContextInner",
|
|
20
|
-
"range": "urn:npm:@rdfjs/types:QueryStringContext"
|
|
21
|
+
"range": "urn:npm:@rdfjs/types:QueryStringContext",
|
|
22
|
+
"default": {
|
|
23
|
+
"@type": "ParameterRangeIntersection",
|
|
24
|
+
"parameterRangeElements": [
|
|
25
|
+
"urn:npm:@rdfjs/types:QueryStringContext",
|
|
26
|
+
{
|
|
27
|
+
"@type": "ParameterRangeGenericComponent",
|
|
28
|
+
"component": "urn:npm:@rdfjs/types:QuerySourceContext",
|
|
29
|
+
"genericTypeInstances": [
|
|
30
|
+
{
|
|
31
|
+
"@type": "ParameterRangeUnion",
|
|
32
|
+
"parameterRangeElements": [
|
|
33
|
+
"xsd:string",
|
|
34
|
+
"urn:npm:@rdfjs/types:Source",
|
|
35
|
+
"urn:npm:@rdfjs/types:Store",
|
|
36
|
+
{
|
|
37
|
+
"@type": "ParameterRangeUnion",
|
|
38
|
+
"parameterRangeElements": [
|
|
39
|
+
"ct:components/IQuerySource.jsonld#IQuerySourceUnidentifiedExpanded",
|
|
40
|
+
"ct:components/IQuerySource.jsonld#IQuerySourceSerialized"
|
|
41
|
+
]
|
|
42
|
+
},
|
|
43
|
+
"ct:components/IQuerySource.jsonld#IQuerySourceUnidentifiedExpandedRawContext"
|
|
44
|
+
]
|
|
45
|
+
}
|
|
46
|
+
]
|
|
47
|
+
},
|
|
48
|
+
"ct:components/IQueryContext.jsonld#IQueryContextCommon"
|
|
49
|
+
]
|
|
50
|
+
}
|
|
21
51
|
},
|
|
22
52
|
{
|
|
23
53
|
"@id": "caiq:components/QueryEngineBase.jsonld#QueryEngineBase__generic_QueryAlgebraContextInner",
|
|
24
|
-
"range": "urn:npm:@rdfjs/types:QueryContext"
|
|
54
|
+
"range": "urn:npm:@rdfjs/types:QueryContext",
|
|
55
|
+
"default": {
|
|
56
|
+
"@type": "ParameterRangeIntersection",
|
|
57
|
+
"parameterRangeElements": [
|
|
58
|
+
"urn:npm:@rdfjs/types:QueryContext",
|
|
59
|
+
{
|
|
60
|
+
"@type": "ParameterRangeGenericComponent",
|
|
61
|
+
"component": "urn:npm:@rdfjs/types:QuerySourceContext",
|
|
62
|
+
"genericTypeInstances": [
|
|
63
|
+
{
|
|
64
|
+
"@type": "ParameterRangeUnion",
|
|
65
|
+
"parameterRangeElements": [
|
|
66
|
+
"xsd:string",
|
|
67
|
+
"urn:npm:@rdfjs/types:Source",
|
|
68
|
+
"urn:npm:@rdfjs/types:Store",
|
|
69
|
+
{
|
|
70
|
+
"@type": "ParameterRangeUnion",
|
|
71
|
+
"parameterRangeElements": [
|
|
72
|
+
"ct:components/IQuerySource.jsonld#IQuerySourceUnidentifiedExpanded",
|
|
73
|
+
"ct:components/IQuerySource.jsonld#IQuerySourceSerialized"
|
|
74
|
+
]
|
|
75
|
+
},
|
|
76
|
+
"ct:components/IQuerySource.jsonld#IQuerySourceUnidentifiedExpandedRawContext"
|
|
77
|
+
]
|
|
78
|
+
}
|
|
79
|
+
]
|
|
80
|
+
},
|
|
81
|
+
"ct:components/IQueryContext.jsonld#IQueryContextCommon"
|
|
82
|
+
]
|
|
83
|
+
}
|
|
25
84
|
}
|
|
26
85
|
],
|
|
27
86
|
"parameters": [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"@context": [
|
|
3
|
-
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-query/^
|
|
4
|
-
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/runner/^
|
|
3
|
+
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-query/^4.0.0/components/context.jsonld",
|
|
4
|
+
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/runner/^4.0.0/components/context.jsonld"
|
|
5
5
|
],
|
|
6
6
|
"@id": "npmd:@comunica/actor-init-query",
|
|
7
7
|
"components": [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"@context": [
|
|
3
|
-
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-query/^
|
|
4
|
-
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/types/^
|
|
3
|
+
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-query/^4.0.0/components/context.jsonld",
|
|
4
|
+
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/types/^4.0.0/components/context.jsonld"
|
|
5
5
|
],
|
|
6
6
|
"@id": "npmd:@comunica/actor-init-query",
|
|
7
7
|
"components": [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"@context": [
|
|
3
|
-
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-query/^
|
|
4
|
-
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/types/^
|
|
3
|
+
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-query/^4.0.0/components/context.jsonld",
|
|
4
|
+
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/types/^4.0.0/components/context.jsonld"
|
|
5
5
|
],
|
|
6
6
|
"@id": "npmd:@comunica/actor-init-query",
|
|
7
7
|
"components": [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"@context": [
|
|
3
|
-
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-query/^
|
|
4
|
-
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/types/^
|
|
3
|
+
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-query/^4.0.0/components/context.jsonld",
|
|
4
|
+
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/types/^4.0.0/components/context.jsonld"
|
|
5
5
|
],
|
|
6
6
|
"@id": "npmd:@comunica/actor-init-query",
|
|
7
7
|
"components": [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"@context": [
|
|
3
|
-
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-query/^
|
|
3
|
+
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-query/^4.0.0/components/context.jsonld"
|
|
4
4
|
],
|
|
5
5
|
"@id": "npmd:@comunica/actor-init-query",
|
|
6
6
|
"@type": "Module",
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"https://linkedsoftwaredependencies.org/bundles/npm/componentsjs/^6.0.0/components/context.jsonld",
|
|
4
4
|
{
|
|
5
5
|
"npmd": "https://linkedsoftwaredependencies.org/bundles/npm/",
|
|
6
|
-
"caiq": "npmd:@comunica/actor-init-query/^
|
|
6
|
+
"caiq": "npmd:@comunica/actor-init-query/^4.0.0/",
|
|
7
7
|
"QueryEngineBase": {
|
|
8
8
|
"@id": "caiq:components/QueryEngineBase.jsonld#QueryEngineBase",
|
|
9
9
|
"@prefix": true,
|
|
@@ -23,6 +23,9 @@
|
|
|
23
23
|
"args_bus": {
|
|
24
24
|
"@id": "caiq:components/ActorInitQueryBase.jsonld#ActorInitQueryBase_args_bus"
|
|
25
25
|
},
|
|
26
|
+
"args_busFailMessage": {
|
|
27
|
+
"@id": "caiq:components/ActorInitQueryBase.jsonld#ActorInitQueryBase_args_busFailMessage"
|
|
28
|
+
},
|
|
26
29
|
"args_beforeActors": {
|
|
27
30
|
"@id": "caiq:components/ActorInitQueryBase.jsonld#ActorInitQueryBase_args_beforeActors",
|
|
28
31
|
"@container": "@list"
|
|
@@ -33,6 +36,9 @@
|
|
|
33
36
|
"bus": {
|
|
34
37
|
"@id": "caiq:components/ActorInitQueryBase.jsonld#ActorInitQueryBase_args_bus"
|
|
35
38
|
},
|
|
39
|
+
"busFailMessage": {
|
|
40
|
+
"@id": "caiq:components/ActorInitQueryBase.jsonld#ActorInitQueryBase_args_busFailMessage"
|
|
41
|
+
},
|
|
36
42
|
"beforeActors": {
|
|
37
43
|
"@id": "caiq:components/ActorInitQueryBase.jsonld#ActorInitQueryBase_args_beforeActors",
|
|
38
44
|
"@container": "@list"
|
|
@@ -81,6 +87,9 @@
|
|
|
81
87
|
"args_bus": {
|
|
82
88
|
"@id": "caiq:components/ActorInitQuery.jsonld#ActorInitQuery_args_bus"
|
|
83
89
|
},
|
|
90
|
+
"args_busFailMessage": {
|
|
91
|
+
"@id": "caiq:components/ActorInitQuery.jsonld#ActorInitQuery_args_busFailMessage"
|
|
92
|
+
},
|
|
84
93
|
"args_beforeActors": {
|
|
85
94
|
"@id": "caiq:components/ActorInitQuery.jsonld#ActorInitQuery_args_beforeActors",
|
|
86
95
|
"@container": "@list"
|
|
@@ -118,6 +127,9 @@
|
|
|
118
127
|
"bus": {
|
|
119
128
|
"@id": "caiq:components/ActorInitQuery.jsonld#ActorInitQuery_args_bus"
|
|
120
129
|
},
|
|
130
|
+
"busFailMessage": {
|
|
131
|
+
"@id": "caiq:components/ActorInitQuery.jsonld#ActorInitQuery_args_busFailMessage"
|
|
132
|
+
},
|
|
121
133
|
"beforeActors": {
|
|
122
134
|
"@id": "caiq:components/ActorInitQuery.jsonld#ActorInitQuery_args_beforeActors",
|
|
123
135
|
"@container": "@list"
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ActorInitQuery = void 0;
|
|
4
|
-
/* eslint-disable unicorn/filename-case */
|
|
5
|
-
/* eslint-enable unicorn/filename-case */
|
|
6
4
|
const ActorInitQueryBase_1 = require("./ActorInitQueryBase");
|
|
7
5
|
/* istanbul ignore next */
|
|
8
6
|
if (typeof process === 'undefined') {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActorInitQuery-browser.js","sourceRoot":"","sources":["ActorInitQuery-browser.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"ActorInitQuery-browser.js","sourceRoot":"","sources":["ActorInitQuery-browser.ts"],"names":[],"mappings":";;;AAAA,6DAA0D;AAE1D,0BAA0B;AAC1B,IAAI,OAAO,OAAO,KAAK,WAAW,EAAE,CAAC;IACnC,iDAAiD;IACjD,UAAU,CAAC,OAAO,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;AAC3C,CAAC;AAED,MAAa,cAAe,SAAQ,uCAAkB;CAAG;AAAzD,wCAAyD","sourcesContent":["import { ActorInitQueryBase } from './ActorInitQueryBase';\n\n/* istanbul ignore next */\nif (typeof process === 'undefined') {\n // Polyfills process.nextTick for readable-stream\n globalThis.process = require('process/');\n}\n\nexport class ActorInitQuery extends ActorInitQueryBase {}\n"]}
|
|
@@ -3,7 +3,7 @@ import type { IActionInit, IActorInitArgs, IActorOutputInit } from '@comunica/bu
|
|
|
3
3
|
import { ActorInit } from '@comunica/bus-init';
|
|
4
4
|
import type { MediatorQueryProcess } from '@comunica/bus-query-process';
|
|
5
5
|
import type { MediatorQueryResultSerializeHandle, MediatorQueryResultSerializeMediaTypes, MediatorQueryResultSerializeMediaTypeFormats } from '@comunica/bus-query-result-serialize';
|
|
6
|
-
import type { IActorTest } from '@comunica/core';
|
|
6
|
+
import type { IActorTest, TestResult } from '@comunica/core';
|
|
7
7
|
/**
|
|
8
8
|
* A browser-safe comunica Query Init Actor.
|
|
9
9
|
*/
|
|
@@ -17,7 +17,7 @@ export declare class ActorInitQueryBase extends ActorInit implements IActorInitQ
|
|
|
17
17
|
readonly defaultQueryInputFormat?: string;
|
|
18
18
|
readonly allowNoSources?: boolean;
|
|
19
19
|
readonly context?: string;
|
|
20
|
-
test(_action: IActionInit): Promise<IActorTest
|
|
20
|
+
test(_action: IActionInit): Promise<TestResult<IActorTest>>;
|
|
21
21
|
run(_action: IActionInit): Promise<IActorOutputInit>;
|
|
22
22
|
}
|
|
23
23
|
export interface IActorInitQueryBaseArgs extends IActorInitArgs {
|
|
@@ -2,12 +2,13 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ActorInitQueryBase = void 0;
|
|
4
4
|
const bus_init_1 = require("@comunica/bus-init");
|
|
5
|
+
const core_1 = require("@comunica/core");
|
|
5
6
|
/**
|
|
6
7
|
* A browser-safe comunica Query Init Actor.
|
|
7
8
|
*/
|
|
8
9
|
class ActorInitQueryBase extends bus_init_1.ActorInit {
|
|
9
10
|
async test(_action) {
|
|
10
|
-
return
|
|
11
|
+
return (0, core_1.passTestVoid)();
|
|
11
12
|
}
|
|
12
13
|
async run(_action) {
|
|
13
14
|
throw new Error('ActorInitSparql#run is not supported in the browser.');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActorInitQueryBase.js","sourceRoot":"","sources":["ActorInitQueryBase.ts"],"names":[],"mappings":";;;AAEA,iDAA+C;
|
|
1
|
+
{"version":3,"file":"ActorInitQueryBase.js","sourceRoot":"","sources":["ActorInitQueryBase.ts"],"names":[],"mappings":";;;AAEA,iDAA+C;AAQ/C,yCAA8C;AAE9C;;GAEG;AACH,MAAa,kBAAmB,SAAQ,oBAAS;IAYxC,KAAK,CAAC,IAAI,CAAC,OAAoB;QACpC,OAAO,IAAA,mBAAY,GAAE,CAAC;IACxB,CAAC;IAEM,KAAK,CAAC,GAAG,CAAC,OAAoB;QACnC,MAAM,IAAI,KAAK,CAAC,sDAAsD,CAAC,CAAC;IAC1E,CAAC;CACF;AAnBD,gDAmBC","sourcesContent":["import type { MediatorHttpInvalidate } from '@comunica/bus-http-invalidate';\nimport type { IActionInit, IActorInitArgs, IActorOutputInit } from '@comunica/bus-init';\nimport { ActorInit } from '@comunica/bus-init';\nimport type { MediatorQueryProcess } from '@comunica/bus-query-process';\nimport type {\n MediatorQueryResultSerializeHandle,\n MediatorQueryResultSerializeMediaTypes,\n MediatorQueryResultSerializeMediaTypeFormats,\n} from '@comunica/bus-query-result-serialize';\nimport type { IActorTest, TestResult } from '@comunica/core';\nimport { passTestVoid } from '@comunica/core';\n\n/**\n * A browser-safe comunica Query Init Actor.\n */\nexport class ActorInitQueryBase extends ActorInit implements IActorInitQueryBaseArgs {\n public readonly mediatorQueryResultSerialize: MediatorQueryResultSerializeHandle;\n public readonly mediatorQueryResultSerializeMediaTypeCombiner: MediatorQueryResultSerializeMediaTypes;\n public readonly mediatorQueryResultSerializeMediaTypeFormatCombiner: MediatorQueryResultSerializeMediaTypeFormats;\n public readonly mediatorHttpInvalidate: MediatorHttpInvalidate;\n public readonly mediatorQueryProcess: MediatorQueryProcess;\n\n public readonly queryString?: string;\n public readonly defaultQueryInputFormat?: string;\n public readonly allowNoSources?: boolean;\n public readonly context?: string;\n\n public async test(_action: IActionInit): Promise<TestResult<IActorTest>> {\n return passTestVoid();\n }\n\n public async run(_action: IActionInit): Promise<IActorOutputInit> {\n throw new Error('ActorInitSparql#run is not supported in the browser.');\n }\n}\n\nexport interface IActorInitQueryBaseArgs extends IActorInitArgs {\n /**\n * The query process mediator\n */\n mediatorQueryProcess: MediatorQueryProcess;\n /**\n * The query serialize mediator\n */\n mediatorQueryResultSerialize: MediatorQueryResultSerializeHandle;\n /**\n * The query serialize media type combinator\n */\n mediatorQueryResultSerializeMediaTypeCombiner: MediatorQueryResultSerializeMediaTypes;\n /**\n * The query serialize media type format combinator\n */\n mediatorQueryResultSerializeMediaTypeFormatCombiner: MediatorQueryResultSerializeMediaTypeFormats;\n /**\n * The HTTP cache invalidation mediator\n */\n mediatorHttpInvalidate: MediatorHttpInvalidate;\n\n /**\n * A SPARQL query string\n */\n queryString?: string;\n /**\n * The default query input format\n * @default {sparql}\n */\n defaultQueryInputFormat?: string;\n /**\n * If it should be allowed that the user passes no sources.\n * @default {false}\n */\n allowNoSources?: boolean;\n /**\n * A JSON string of a query operation context\n */\n context?: string;\n}\n"]}
|
|
@@ -19,7 +19,6 @@ export declare class HttpServiceSparqlEndpoint {
|
|
|
19
19
|
readonly timeout: number;
|
|
20
20
|
readonly port: number;
|
|
21
21
|
readonly workers: number;
|
|
22
|
-
readonly invalidateCacheBeforeQuery: boolean;
|
|
23
22
|
readonly freshWorkerPerQuery: boolean;
|
|
24
23
|
readonly contextOverride: boolean;
|
|
25
24
|
lastQueryId: number;
|
|
@@ -119,7 +118,6 @@ export interface IHttpServiceSparqlEndpointArgs extends IDynamicQueryEngineOptio
|
|
|
119
118
|
timeout?: number;
|
|
120
119
|
port?: number;
|
|
121
120
|
workers?: number;
|
|
122
|
-
invalidateCacheBeforeQuery?: boolean;
|
|
123
121
|
freshWorkerPerQuery?: boolean;
|
|
124
122
|
contextOverride?: boolean;
|
|
125
123
|
moduleRootPath: string;
|
|
@@ -27,7 +27,6 @@ class HttpServiceSparqlEndpoint {
|
|
|
27
27
|
this.timeout = args.timeout ?? 60_000;
|
|
28
28
|
this.port = args.port ?? 3_000;
|
|
29
29
|
this.workers = args.workers ?? 1;
|
|
30
|
-
this.invalidateCacheBeforeQuery = Boolean(args.invalidateCacheBeforeQuery);
|
|
31
30
|
this.freshWorkerPerQuery = Boolean(args.freshWorkerPerQuery);
|
|
32
31
|
this.contextOverride = Boolean(args.contextOverride);
|
|
33
32
|
this.engine = new __1.QueryEngineFactoryBase(args.moduleRootPath, args.defaultConfigPath, actorInitQuery => new __1.QueryEngineBase(actorInitQuery)).create(args);
|
|
@@ -98,7 +97,6 @@ class HttpServiceSparqlEndpoint {
|
|
|
98
97
|
stderr.write(`${error.message}/n`);
|
|
99
98
|
exit(1);
|
|
100
99
|
}
|
|
101
|
-
const invalidateCacheBeforeQuery = args.invalidateCache;
|
|
102
100
|
const freshWorkerPerQuery = args.freshWorker;
|
|
103
101
|
const contextOverride = args.contextOverride;
|
|
104
102
|
const port = args.port;
|
|
@@ -110,7 +108,6 @@ class HttpServiceSparqlEndpoint {
|
|
|
110
108
|
defaultConfigPath,
|
|
111
109
|
configPath,
|
|
112
110
|
context,
|
|
113
|
-
invalidateCacheBeforeQuery,
|
|
114
111
|
freshWorkerPerQuery,
|
|
115
112
|
contextOverride,
|
|
116
113
|
moduleRootPath,
|
|
@@ -274,10 +271,6 @@ class HttpServiceSparqlEndpoint {
|
|
|
274
271
|
response.end(JSON.stringify({ message: 'Resource not found. Queries are accepted on /sparql.' }));
|
|
275
272
|
return;
|
|
276
273
|
}
|
|
277
|
-
if (this.invalidateCacheBeforeQuery) {
|
|
278
|
-
// Invalidate cache
|
|
279
|
-
await engine.invalidateHttpCache();
|
|
280
|
-
}
|
|
281
274
|
// Parse the query, depending on the HTTP method
|
|
282
275
|
let queryBody;
|
|
283
276
|
switch (request.method) {
|