@comunica/actor-init-query 2.2.0 → 2.2.2-alpha.11.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.
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
"@context": [
|
|
3
3
|
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-query/^2.0.0/components/context.jsonld",
|
|
4
4
|
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/core/^2.0.0/components/context.jsonld",
|
|
5
|
+
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/types/^2.0.0/components/context.jsonld",
|
|
5
6
|
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-init/^2.0.0/components/context.jsonld"
|
|
6
7
|
],
|
|
7
8
|
"@id": "npmd:@comunica/actor-init-query",
|
|
@@ -57,7 +58,7 @@
|
|
|
57
58
|
},
|
|
58
59
|
{
|
|
59
60
|
"@id": "caiq:components/ActorInitQuery.jsonld#ActorInitQuery_args_logger",
|
|
60
|
-
"range": "
|
|
61
|
+
"range": "ct:components/Logger.jsonld#Logger",
|
|
61
62
|
"default": {
|
|
62
63
|
"@type": "npmd:@comunica/logger-void/^2.0.0/components/LoggerVoid.jsonld#LoggerVoid"
|
|
63
64
|
},
|
|
@@ -122,11 +123,13 @@
|
|
|
122
123
|
"lenient": "@comunica/actor-init-query:lenient",
|
|
123
124
|
"httpIncludeCredentials": "@comunica/bus-http:include-credentials",
|
|
124
125
|
"httpAuth": "@comunica/bus-http:auth",
|
|
126
|
+
"httpTimeout": "@comunica/bus-http:http-timeout",
|
|
125
127
|
"fetch": "@comunica/bus-http:fetch",
|
|
126
128
|
"readOnly": "@comunica/bus-query-operation:readOnly",
|
|
127
129
|
"extensionFunctions": "@comunica/actor-init-query:extensionFunctions",
|
|
128
130
|
"extensionFunctionCreator": "@comunica/actor-init-query:extensionFunctionCreator",
|
|
129
|
-
"explain": "@comunica/actor-init-query:explain"
|
|
131
|
+
"explain": "@comunica/actor-init-query:explain",
|
|
132
|
+
"unionDefaultGraph": "@comunica/bus-query-operation:unionDefaultGraph"
|
|
130
133
|
}
|
|
131
134
|
},
|
|
132
135
|
"comment": "A record of context shortcuts to full context keys (as defined in @comunica/context-entries)."
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
"@context": [
|
|
3
3
|
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-query/^2.0.0/components/context.jsonld",
|
|
4
4
|
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/core/^2.0.0/components/context.jsonld",
|
|
5
|
+
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/types/^2.0.0/components/context.jsonld",
|
|
5
6
|
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-init/^2.0.0/components/context.jsonld"
|
|
6
7
|
],
|
|
7
8
|
"@id": "npmd:@comunica/actor-init-query",
|
|
@@ -58,7 +59,7 @@
|
|
|
58
59
|
},
|
|
59
60
|
{
|
|
60
61
|
"@id": "caiq:components/ActorInitQueryBase.jsonld#ActorInitQueryBase_args_logger",
|
|
61
|
-
"range": "
|
|
62
|
+
"range": "ct:components/Logger.jsonld#Logger",
|
|
62
63
|
"default": {
|
|
63
64
|
"@type": "npmd:@comunica/logger-void/^2.0.0/components/LoggerVoid.jsonld#LoggerVoid"
|
|
64
65
|
},
|
|
@@ -123,11 +124,13 @@
|
|
|
123
124
|
"lenient": "@comunica/actor-init-query:lenient",
|
|
124
125
|
"httpIncludeCredentials": "@comunica/bus-http:include-credentials",
|
|
125
126
|
"httpAuth": "@comunica/bus-http:auth",
|
|
127
|
+
"httpTimeout": "@comunica/bus-http:http-timeout",
|
|
126
128
|
"fetch": "@comunica/bus-http:fetch",
|
|
127
129
|
"readOnly": "@comunica/bus-query-operation:readOnly",
|
|
128
130
|
"extensionFunctions": "@comunica/actor-init-query:extensionFunctions",
|
|
129
131
|
"extensionFunctionCreator": "@comunica/actor-init-query:extensionFunctionCreator",
|
|
130
|
-
"explain": "@comunica/actor-init-query:explain"
|
|
132
|
+
"explain": "@comunica/actor-init-query:explain",
|
|
133
|
+
"unionDefaultGraph": "@comunica/bus-query-operation:unionDefaultGraph"
|
|
131
134
|
}
|
|
132
135
|
},
|
|
133
136
|
"comment": "A record of context shortcuts to full context keys (as defined in @comunica/context-entries)."
|
|
@@ -262,7 +265,7 @@
|
|
|
262
265
|
{
|
|
263
266
|
"@id": "caiq:components/ActorInitQueryBase.jsonld#ActorInitQueryBase__member_logger",
|
|
264
267
|
"memberFieldName": "logger",
|
|
265
|
-
"range": "
|
|
268
|
+
"range": "ct:components/Logger.jsonld#Logger"
|
|
266
269
|
},
|
|
267
270
|
{
|
|
268
271
|
"@id": "caiq:components/ActorInitQueryBase.jsonld#ActorInitQueryBase__member_queryString",
|
|
@@ -6,7 +6,8 @@ import type { MediatorOptimizeQueryOperation } from '@comunica/bus-optimize-quer
|
|
|
6
6
|
import type { MediatorQueryOperation } from '@comunica/bus-query-operation';
|
|
7
7
|
import type { MediatorQueryParse } from '@comunica/bus-query-parse';
|
|
8
8
|
import type { MediatorQueryResultSerializeHandle, MediatorQueryResultSerializeMediaTypes, MediatorQueryResultSerializeMediaTypeFormats } from '@comunica/bus-query-result-serialize';
|
|
9
|
-
import type { IActorTest
|
|
9
|
+
import type { IActorTest } from '@comunica/core';
|
|
10
|
+
import type { Logger } from '@comunica/types';
|
|
10
11
|
/**
|
|
11
12
|
* A browser-safe comunica Query Init Actor.
|
|
12
13
|
*/
|
|
@@ -96,11 +97,13 @@ export interface IActorInitQueryBaseArgs extends IActorInitArgs {
|
|
|
96
97
|
* "lenient": "@comunica/actor-init-query:lenient",
|
|
97
98
|
* "httpIncludeCredentials": "@comunica/bus-http:include-credentials",
|
|
98
99
|
* "httpAuth": "@comunica/bus-http:auth",
|
|
100
|
+
* "httpTimeout": "@comunica/bus-http:http-timeout",
|
|
99
101
|
* "fetch": "@comunica/bus-http:fetch",
|
|
100
102
|
* "readOnly": "@comunica/bus-query-operation:readOnly",
|
|
101
103
|
* "extensionFunctions": "@comunica/actor-init-query:extensionFunctions",
|
|
102
104
|
* "extensionFunctionCreator": "@comunica/actor-init-query:extensionFunctionCreator",
|
|
103
|
-
* "explain": "@comunica/actor-init-query:explain"
|
|
105
|
+
* "explain": "@comunica/actor-init-query:explain",
|
|
106
|
+
* "unionDefaultGraph": "@comunica/bus-query-operation:unionDefaultGraph"
|
|
104
107
|
* }}
|
|
105
108
|
*/
|
|
106
109
|
contextKeyShortcuts: Record<string, string>;
|
|
@@ -103,6 +103,14 @@ class CliArgsHandlerBase {
|
|
|
103
103
|
type: 'boolean',
|
|
104
104
|
describe: 'Prints the full stacktrace when errors are thrown',
|
|
105
105
|
},
|
|
106
|
+
httpTimeout: {
|
|
107
|
+
type: 'number',
|
|
108
|
+
describe: 'HTTP requests timeout in milliseconds',
|
|
109
|
+
},
|
|
110
|
+
unionDefaultGraph: {
|
|
111
|
+
type: 'boolean',
|
|
112
|
+
describe: 'If the default graph should also contain the union of all named graphs',
|
|
113
|
+
},
|
|
106
114
|
})
|
|
107
115
|
.exitProcess(false)
|
|
108
116
|
.fail(false)
|
|
@@ -164,6 +172,14 @@ class CliArgsHandlerBase {
|
|
|
164
172
|
if (args.lenient) {
|
|
165
173
|
context[context_entries_1.KeysInitQuery.lenient.name] = true;
|
|
166
174
|
}
|
|
175
|
+
// Define HTTP timeout
|
|
176
|
+
if (args.httpTimeout) {
|
|
177
|
+
context[context_entries_1.KeysHttp.httpTimeout.name] = args.httpTimeout;
|
|
178
|
+
}
|
|
179
|
+
// Define union default graph
|
|
180
|
+
if (args.unionDefaultGraph) {
|
|
181
|
+
context[context_entries_1.KeysQueryOperation.unionDefaultGraph.name] = true;
|
|
182
|
+
}
|
|
167
183
|
}
|
|
168
184
|
}
|
|
169
185
|
exports.CliArgsHandlerBase = CliArgsHandlerBase;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@comunica/actor-init-query",
|
|
3
|
-
"version": "2.2.0",
|
|
3
|
+
"version": "2.2.2-alpha.11.0",
|
|
4
4
|
"description": "A query init actor",
|
|
5
5
|
"lsd:module": true,
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -31,27 +31,25 @@
|
|
|
31
31
|
"lib/**/*.js"
|
|
32
32
|
],
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@comunica/actor-http-proxy": "
|
|
35
|
-
"@comunica/
|
|
36
|
-
"@comunica/bus-
|
|
37
|
-
"@comunica/bus-
|
|
38
|
-
"@comunica/bus-
|
|
39
|
-
"@comunica/bus-
|
|
40
|
-
"@comunica/bus-query-
|
|
41
|
-
"@comunica/bus-query-
|
|
42
|
-
"@comunica/
|
|
43
|
-
"@comunica/
|
|
44
|
-
"@comunica/
|
|
45
|
-
"@comunica/
|
|
46
|
-
"@comunica/
|
|
47
|
-
"@comunica/types": "^2.2.0",
|
|
34
|
+
"@comunica/actor-http-proxy": "2.2.2-alpha.11.0",
|
|
35
|
+
"@comunica/bus-context-preprocess": "2.2.2-alpha.11.0",
|
|
36
|
+
"@comunica/bus-http-invalidate": "2.2.2-alpha.11.0",
|
|
37
|
+
"@comunica/bus-init": "2.2.2-alpha.11.0",
|
|
38
|
+
"@comunica/bus-optimize-query-operation": "2.2.2-alpha.11.0",
|
|
39
|
+
"@comunica/bus-query-operation": "2.2.2-alpha.11.0",
|
|
40
|
+
"@comunica/bus-query-parse": "2.2.2-alpha.11.0",
|
|
41
|
+
"@comunica/bus-query-result-serialize": "2.2.2-alpha.11.0",
|
|
42
|
+
"@comunica/context-entries": "2.2.2-alpha.11.0",
|
|
43
|
+
"@comunica/core": "2.2.2-alpha.11.0",
|
|
44
|
+
"@comunica/logger-pretty": "2.2.2-alpha.11.0",
|
|
45
|
+
"@comunica/runner": "2.2.2-alpha.11.0",
|
|
46
|
+
"@comunica/types": "2.2.2-alpha.11.0",
|
|
48
47
|
"@rdfjs/types": "*",
|
|
49
48
|
"@types/yargs": "^17.0.2",
|
|
50
|
-
"asynciterator": "^3.
|
|
49
|
+
"asynciterator": "^3.4.0",
|
|
51
50
|
"negotiate": "^1.0.1",
|
|
52
51
|
"rdf-quad": "^1.4.0",
|
|
53
52
|
"rdf-string": "^1.5.0",
|
|
54
|
-
"rdf-terms": "^1.6.2",
|
|
55
53
|
"sparqlalgebrajs": "^4.0.0",
|
|
56
54
|
"streamify-string": "^1.0.1",
|
|
57
55
|
"yargs": "^17.1.1"
|
|
@@ -64,5 +62,5 @@
|
|
|
64
62
|
"browser": {
|
|
65
63
|
"./lib/index.js": "./lib/index-browser.js"
|
|
66
64
|
},
|
|
67
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "b122c1ac9a3382a65812c843727d752ad21d4846"
|
|
68
66
|
}
|