@comunica/actor-query-operation-path-alt 2.10.1 → 3.0.1-alpha.44.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/README.md +1 -1
- package/components/ActorQueryOperationPathAlt.jsonld +44 -13
- package/components/components.jsonld +1 -1
- package/components/context.jsonld +12 -1
- package/lib/ActorQueryOperationPathAlt.d.ts +6 -1
- package/lib/ActorQueryOperationPathAlt.js +2 -1
- package/lib/ActorQueryOperationPathAlt.js.map +1 -1
- package/package.json +8 -7
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-query-operation-path-alt/^
|
|
25
|
+
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-query-operation-path-alt/^3.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-query-operation-path-alt/^
|
|
4
|
-
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/core/^
|
|
5
|
-
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-query-operation/^
|
|
6
|
-
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-abstract-path/^
|
|
3
|
+
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-query-operation-path-alt/^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-operation/^3.0.0/components/context.jsonld",
|
|
6
|
+
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-abstract-path/^3.0.0/components/context.jsonld"
|
|
7
7
|
],
|
|
8
8
|
"@id": "npmd:@comunica/actor-query-operation-path-alt",
|
|
9
9
|
"components": [
|
|
@@ -16,6 +16,10 @@
|
|
|
16
16
|
],
|
|
17
17
|
"comment": "A comunica Path Alt Query Operation Actor.",
|
|
18
18
|
"parameters": [
|
|
19
|
+
{
|
|
20
|
+
"@id": "caqopa:components/ActorQueryOperationPathAlt.jsonld#ActorQueryOperationPathAlt_args_mediatorRdfMetadataAccumulate",
|
|
21
|
+
"range": "cc:components/Mediator.jsonld#Mediator"
|
|
22
|
+
},
|
|
19
23
|
{
|
|
20
24
|
"@id": "caqopa:components/ActorQueryOperationPathAlt.jsonld#ActorQueryOperationPathAlt_args_mediatorQueryOperation",
|
|
21
25
|
"range": "cc:components/Mediator.jsonld#Mediator"
|
|
@@ -40,29 +44,29 @@
|
|
|
40
44
|
"genericTypeInstances": [
|
|
41
45
|
{
|
|
42
46
|
"@type": "ParameterRangeGenericTypeReference",
|
|
43
|
-
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^
|
|
47
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_I"
|
|
44
48
|
},
|
|
45
49
|
{
|
|
46
50
|
"@type": "ParameterRangeGenericTypeReference",
|
|
47
|
-
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^
|
|
51
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_T"
|
|
48
52
|
},
|
|
49
53
|
{
|
|
50
54
|
"@type": "ParameterRangeGenericTypeReference",
|
|
51
|
-
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^
|
|
55
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_O"
|
|
52
56
|
}
|
|
53
57
|
]
|
|
54
58
|
},
|
|
55
59
|
{
|
|
56
60
|
"@type": "ParameterRangeGenericTypeReference",
|
|
57
|
-
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^
|
|
61
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_I"
|
|
58
62
|
},
|
|
59
63
|
{
|
|
60
64
|
"@type": "ParameterRangeGenericTypeReference",
|
|
61
|
-
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^
|
|
65
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_T"
|
|
62
66
|
},
|
|
63
67
|
{
|
|
64
68
|
"@type": "ParameterRangeGenericTypeReference",
|
|
65
|
-
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^
|
|
69
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_O"
|
|
66
70
|
}
|
|
67
71
|
]
|
|
68
72
|
},
|
|
@@ -85,15 +89,15 @@
|
|
|
85
89
|
"genericTypeInstances": [
|
|
86
90
|
{
|
|
87
91
|
"@type": "ParameterRangeGenericTypeReference",
|
|
88
|
-
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^
|
|
92
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_I"
|
|
89
93
|
},
|
|
90
94
|
{
|
|
91
95
|
"@type": "ParameterRangeGenericTypeReference",
|
|
92
|
-
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^
|
|
96
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_T"
|
|
93
97
|
},
|
|
94
98
|
{
|
|
95
99
|
"@type": "ParameterRangeGenericTypeReference",
|
|
96
|
-
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^
|
|
100
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_O"
|
|
97
101
|
}
|
|
98
102
|
]
|
|
99
103
|
}
|
|
@@ -107,6 +111,11 @@
|
|
|
107
111
|
}
|
|
108
112
|
],
|
|
109
113
|
"memberFields": [
|
|
114
|
+
{
|
|
115
|
+
"@id": "caqopa:components/ActorQueryOperationPathAlt.jsonld#ActorQueryOperationPathAlt__member_mediatorRdfMetadataAccumulate",
|
|
116
|
+
"memberFieldName": "mediatorRdfMetadataAccumulate",
|
|
117
|
+
"range": "cc:components/Mediator.jsonld#Mediator"
|
|
118
|
+
},
|
|
110
119
|
{
|
|
111
120
|
"@id": "caqopa:components/ActorQueryOperationPathAlt.jsonld#ActorQueryOperationPathAlt__member_constructor",
|
|
112
121
|
"memberFieldName": "constructor"
|
|
@@ -120,6 +129,12 @@
|
|
|
120
129
|
{
|
|
121
130
|
"@id": "caqopa:components/ActorQueryOperationPathAlt.jsonld#ActorQueryOperationPathAlt_args__constructorArgument",
|
|
122
131
|
"fields": [
|
|
132
|
+
{
|
|
133
|
+
"keyRaw": "mediatorRdfMetadataAccumulate",
|
|
134
|
+
"value": {
|
|
135
|
+
"@id": "caqopa:components/ActorQueryOperationPathAlt.jsonld#ActorQueryOperationPathAlt_args_mediatorRdfMetadataAccumulate"
|
|
136
|
+
}
|
|
137
|
+
},
|
|
123
138
|
{
|
|
124
139
|
"keyRaw": "mediatorQueryOperation",
|
|
125
140
|
"value": {
|
|
@@ -147,6 +162,22 @@
|
|
|
147
162
|
]
|
|
148
163
|
}
|
|
149
164
|
]
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"@id": "caqopa:components/ActorQueryOperationPathAlt.jsonld#IActorQueryOperationPathAltArgs",
|
|
168
|
+
"@type": "AbstractClass",
|
|
169
|
+
"requireElement": "IActorQueryOperationPathAltArgs",
|
|
170
|
+
"extends": [
|
|
171
|
+
"cbqo:components/ActorQueryOperationTypedMediated.jsonld#IActorQueryOperationTypedMediatedArgs"
|
|
172
|
+
],
|
|
173
|
+
"parameters": [],
|
|
174
|
+
"memberFields": [
|
|
175
|
+
{
|
|
176
|
+
"@id": "caqopa:components/ActorQueryOperationPathAlt.jsonld#IActorQueryOperationPathAltArgs__member_mediatorRdfMetadataAccumulate",
|
|
177
|
+
"memberFieldName": "mediatorRdfMetadataAccumulate"
|
|
178
|
+
}
|
|
179
|
+
],
|
|
180
|
+
"constructorArguments": []
|
|
150
181
|
}
|
|
151
182
|
]
|
|
152
183
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"@context": [
|
|
3
|
-
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-query-operation-path-alt/^
|
|
3
|
+
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-query-operation-path-alt/^3.0.0/components/context.jsonld"
|
|
4
4
|
],
|
|
5
5
|
"@id": "npmd:@comunica/actor-query-operation-path-alt",
|
|
6
6
|
"@type": "Module",
|
|
@@ -3,11 +3,14 @@
|
|
|
3
3
|
"https://linkedsoftwaredependencies.org/bundles/npm/componentsjs/^5.0.0/components/context.jsonld",
|
|
4
4
|
{
|
|
5
5
|
"npmd": "https://linkedsoftwaredependencies.org/bundles/npm/",
|
|
6
|
-
"caqopa": "npmd:@comunica/actor-query-operation-path-alt/^
|
|
6
|
+
"caqopa": "npmd:@comunica/actor-query-operation-path-alt/^3.0.0/",
|
|
7
7
|
"ActorQueryOperationPathAlt": {
|
|
8
8
|
"@id": "caqopa:components/ActorQueryOperationPathAlt.jsonld#ActorQueryOperationPathAlt",
|
|
9
9
|
"@prefix": true,
|
|
10
10
|
"@context": {
|
|
11
|
+
"args_mediatorRdfMetadataAccumulate": {
|
|
12
|
+
"@id": "caqopa:components/ActorQueryOperationPathAlt.jsonld#ActorQueryOperationPathAlt_args_mediatorRdfMetadataAccumulate"
|
|
13
|
+
},
|
|
11
14
|
"args_mediatorQueryOperation": {
|
|
12
15
|
"@id": "caqopa:components/ActorQueryOperationPathAlt.jsonld#ActorQueryOperationPathAlt_args_mediatorQueryOperation"
|
|
13
16
|
},
|
|
@@ -21,6 +24,9 @@
|
|
|
21
24
|
"@id": "caqopa:components/ActorQueryOperationPathAlt.jsonld#ActorQueryOperationPathAlt_args_beforeActors",
|
|
22
25
|
"@container": "@list"
|
|
23
26
|
},
|
|
27
|
+
"mediatorRdfMetadataAccumulate": {
|
|
28
|
+
"@id": "caqopa:components/ActorQueryOperationPathAlt.jsonld#ActorQueryOperationPathAlt_args_mediatorRdfMetadataAccumulate"
|
|
29
|
+
},
|
|
24
30
|
"mediatorQueryOperation": {
|
|
25
31
|
"@id": "caqopa:components/ActorQueryOperationPathAlt.jsonld#ActorQueryOperationPathAlt_args_mediatorQueryOperation"
|
|
26
32
|
},
|
|
@@ -35,6 +41,11 @@
|
|
|
35
41
|
"@container": "@list"
|
|
36
42
|
}
|
|
37
43
|
}
|
|
44
|
+
},
|
|
45
|
+
"IActorQueryOperationPathAltArgs": {
|
|
46
|
+
"@id": "caqopa:components/ActorQueryOperationPathAlt.jsonld#IActorQueryOperationPathAltArgs",
|
|
47
|
+
"@prefix": true,
|
|
48
|
+
"@context": {}
|
|
38
49
|
}
|
|
39
50
|
}
|
|
40
51
|
]
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
import { ActorAbstractPath } from '@comunica/actor-abstract-path';
|
|
2
2
|
import type { IActorQueryOperationTypedMediatedArgs } from '@comunica/bus-query-operation';
|
|
3
|
+
import type { MediatorRdfMetadataAccumulate } from '@comunica/bus-rdf-metadata-accumulate';
|
|
3
4
|
import type { IQueryOperationResult, IActionContext } from '@comunica/types';
|
|
4
5
|
import { Algebra } from 'sparqlalgebrajs';
|
|
5
6
|
/**
|
|
6
7
|
* A comunica Path Alt Query Operation Actor.
|
|
7
8
|
*/
|
|
8
9
|
export declare class ActorQueryOperationPathAlt extends ActorAbstractPath {
|
|
9
|
-
|
|
10
|
+
readonly mediatorRdfMetadataAccumulate: MediatorRdfMetadataAccumulate;
|
|
11
|
+
constructor(args: IActorQueryOperationPathAltArgs);
|
|
10
12
|
runOperation(operation: Algebra.Path, context: IActionContext): Promise<IQueryOperationResult>;
|
|
11
13
|
}
|
|
14
|
+
export interface IActorQueryOperationPathAltArgs extends IActorQueryOperationTypedMediatedArgs {
|
|
15
|
+
mediatorRdfMetadataAccumulate: MediatorRdfMetadataAccumulate;
|
|
16
|
+
}
|
|
@@ -24,7 +24,8 @@ class ActorQueryOperationPathAlt extends actor_abstract_path_1.ActorAbstractPath
|
|
|
24
24
|
.map(bus_query_operation_1.ActorQueryOperation.getSafeBindings);
|
|
25
25
|
const bindingsStream = new asynciterator_1.UnionIterator(subOperations.map(op => op.bindingsStream), { autoStart: false });
|
|
26
26
|
const metadata = () => Promise.all(subOperations.map(output => output.metadata()))
|
|
27
|
-
.then(subMeta => actor_query_operation_union_1.ActorQueryOperationUnion
|
|
27
|
+
.then(subMeta => actor_query_operation_union_1.ActorQueryOperationUnion
|
|
28
|
+
.unionMetadata(subMeta, true, context, this.mediatorRdfMetadataAccumulate));
|
|
28
29
|
return {
|
|
29
30
|
type: 'bindings',
|
|
30
31
|
bindingsStream,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActorQueryOperationPathAlt.js","sourceRoot":"","sources":["ActorQueryOperationPathAlt.ts"],"names":[],"mappings":";;;AAAA,uEAAkE;AAClE,uFAAiF;AAEjF,uEAAoE;
|
|
1
|
+
{"version":3,"file":"ActorQueryOperationPathAlt.js","sourceRoot":"","sources":["ActorQueryO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YACL,IAAI,EAAE,UAAU;YAChB,cAAc;YACd,QAAQ;SACT,CAAC;IACJ,CAAC;CACF;AA9BD,gEA8BC","sourcesContent":["import { ActorAbstractPath } from '@comunica/actor-abstract-path';\nimport { ActorQueryOperationUnion } from '@comunica/actor-query-operation-union';\nimport type { IActorQueryOperationTypedMediatedArgs } from '@comunica/bus-query-operation';\nimport { ActorQueryOperation } from '@comunica/bus-query-operation';\nimport type { MediatorRdfMetadataAccumulate } from '@comunica/bus-rdf-metadata-accumulate';\nimport type { IQueryOperationResultBindings, IQueryOperationResult,\n IActionContext, MetadataBindings } from '@comunica/types';\nimport { UnionIterator } from 'asynciterator';\nimport { Algebra } from 'sparqlalgebrajs';\n\n/**\n * A comunica Path Alt Query Operation Actor.\n */\nexport class ActorQueryOperationPathAlt extends ActorAbstractPath {\n public readonly mediatorRdfMetadataAccumulate: MediatorRdfMetadataAccumulate;\n\n public constructor(args: IActorQueryOperationPathAltArgs) {\n super(args, Algebra.types.ALT);\n }\n\n public async runOperation(operation: Algebra.Path, context: IActionContext): Promise<IQueryOperationResult> {\n const predicate = <Algebra.Alt> operation.predicate;\n\n const subOperations: IQueryOperationResultBindings[] = (await Promise.all(predicate.input\n .map(subPredicate => this.mediatorQueryOperation.mediate({\n context,\n operation: ActorAbstractPath.FACTORY\n .createPath(operation.subject, subPredicate, operation.object, operation.graph),\n }))))\n .map(ActorQueryOperation.getSafeBindings);\n\n const bindingsStream = new UnionIterator(subOperations.map(op => op.bindingsStream), { autoStart: false });\n const metadata: (() => Promise<MetadataBindings>) = () =>\n Promise.all(subOperations.map(output => output.metadata()))\n .then(subMeta => ActorQueryOperationUnion\n .unionMetadata(subMeta, true, context, this.mediatorRdfMetadataAccumulate));\n\n return {\n type: 'bindings',\n bindingsStream,\n metadata,\n };\n }\n}\n\nexport interface IActorQueryOperationPathAltArgs extends IActorQueryOperationTypedMediatedArgs {\n mediatorRdfMetadataAccumulate: MediatorRdfMetadataAccumulate;\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@comunica/actor-query-operation-path-alt",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.1-alpha.44.0",
|
|
4
4
|
"description": "A path-alt query-operation actor",
|
|
5
5
|
"lsd:module": true,
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -32,17 +32,18 @@
|
|
|
32
32
|
"lib/**/*.js.map"
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@comunica/actor-abstract-path": "
|
|
36
|
-
"@comunica/actor-query-operation-union": "
|
|
37
|
-
"@comunica/bus-query-operation": "
|
|
38
|
-
"@comunica/
|
|
35
|
+
"@comunica/actor-abstract-path": "3.0.1-alpha.44.0",
|
|
36
|
+
"@comunica/actor-query-operation-union": "3.0.1-alpha.44.0",
|
|
37
|
+
"@comunica/bus-query-operation": "3.0.1-alpha.44.0",
|
|
38
|
+
"@comunica/bus-rdf-metadata-accumulate": "3.0.1-alpha.44.0",
|
|
39
|
+
"@comunica/types": "3.0.1-alpha.44.0",
|
|
39
40
|
"asynciterator": "^3.8.1",
|
|
40
|
-
"sparqlalgebrajs": "^4.
|
|
41
|
+
"sparqlalgebrajs": "^4.3.3"
|
|
41
42
|
},
|
|
42
43
|
"scripts": {
|
|
43
44
|
"build": "npm run build:ts && npm run build:components",
|
|
44
45
|
"build:ts": "node \"../../node_modules/typescript/bin/tsc\"",
|
|
45
46
|
"build:components": "componentsjs-generator"
|
|
46
47
|
},
|
|
47
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "0b13082c2eef06a45298b30620323d0f956e1a3e"
|
|
48
49
|
}
|