@comunica/actor-query-operation-slice 2.0.1-alpha.8.0 → 2.0.7-alpha.10.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.
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
},
|
|
74
74
|
"default": {
|
|
75
75
|
"@id": "cbqo:components/ActorQueryOperation.jsonld#ActorQueryOperation_default_bus",
|
|
76
|
-
"@type": "
|
|
76
|
+
"@type": "cbqo:components/BusQueryOperation.jsonld#BusQueryOperation"
|
|
77
77
|
},
|
|
78
78
|
"comment": "The bus this actor subscribes to."
|
|
79
79
|
},
|
|
@@ -111,12 +111,27 @@
|
|
|
111
111
|
"comment": "Actor that must be registered in the bus before this actor."
|
|
112
112
|
}
|
|
113
113
|
],
|
|
114
|
-
"
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
114
|
+
"memberFields": [
|
|
115
|
+
{
|
|
116
|
+
"@id": "caqos:components/ActorQueryOperationSlice.jsonld#ActorQueryOperationSlice__member_constructor",
|
|
117
|
+
"memberFieldName": "constructor"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"@id": "caqos:components/ActorQueryOperationSlice.jsonld#ActorQueryOperationSlice__member_testOperation",
|
|
121
|
+
"memberFieldName": "testOperation"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"@id": "caqos:components/ActorQueryOperationSlice.jsonld#ActorQueryOperationSlice__member_runOperation",
|
|
125
|
+
"memberFieldName": "runOperation"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"@id": "caqos:components/ActorQueryOperationSlice.jsonld#ActorQueryOperationSlice__member_sliceStream",
|
|
129
|
+
"memberFieldName": "sliceStream"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"@id": "caqos:components/ActorQueryOperationSlice.jsonld#ActorQueryOperationSlice__member_sliceMetadata",
|
|
133
|
+
"memberFieldName": "sliceMetadata"
|
|
134
|
+
}
|
|
120
135
|
],
|
|
121
136
|
"constructorArguments": [
|
|
122
137
|
{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"@context": [
|
|
3
|
-
"https://linkedsoftwaredependencies.org/bundles/npm/componentsjs/^
|
|
3
|
+
"https://linkedsoftwaredependencies.org/bundles/npm/componentsjs/^5.0.0/components/context.jsonld",
|
|
4
4
|
{
|
|
5
5
|
"npmd": "https://linkedsoftwaredependencies.org/bundles/npm/",
|
|
6
6
|
"caqos": "npmd:@comunica/actor-query-operation-slice/^2.0.0/",
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ActorQueryOperationSlice = void 0;
|
|
4
4
|
const bus_query_operation_1 = require("@comunica/bus-query-operation");
|
|
5
|
+
const context_entries_1 = require("@comunica/context-entries");
|
|
5
6
|
/**
|
|
6
7
|
* A comunica Slice Query Operation Actor.
|
|
7
8
|
*/
|
|
@@ -13,6 +14,11 @@ class ActorQueryOperationSlice extends bus_query_operation_1.ActorQueryOperation
|
|
|
13
14
|
return true;
|
|
14
15
|
}
|
|
15
16
|
async runOperation(operation, context) {
|
|
17
|
+
// Add limit indicator to the context, which can be used for query planning
|
|
18
|
+
// eslint-disable-next-line unicorn/explicit-length-check
|
|
19
|
+
if (operation.length) {
|
|
20
|
+
context = context.set(context_entries_1.KeysQueryOperation.limitIndicator, operation.length);
|
|
21
|
+
}
|
|
16
22
|
// Resolve the input
|
|
17
23
|
const output = await this.mediatorQueryOperation
|
|
18
24
|
.mediate({ operation: operation.input, context });
|
package/lib/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
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);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@comunica/actor-query-operation-slice",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.7-alpha.10.0",
|
|
4
4
|
"description": "A slice query-operation actor",
|
|
5
5
|
"lsd:module": true,
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -31,10 +31,11 @@
|
|
|
31
31
|
"lib/**/*.js"
|
|
32
32
|
],
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@comunica/bus-query-operation": "2.0.
|
|
35
|
-
"@comunica/
|
|
36
|
-
"@comunica/
|
|
37
|
-
"
|
|
34
|
+
"@comunica/bus-query-operation": "2.0.7-alpha.10.0",
|
|
35
|
+
"@comunica/context-entries": "2.0.7-alpha.10.0",
|
|
36
|
+
"@comunica/core": "2.0.7-alpha.10.0",
|
|
37
|
+
"@comunica/types": "2.0.7-alpha.10.0",
|
|
38
|
+
"asynciterator": "^3.3.0",
|
|
38
39
|
"sparqlalgebrajs": "^4.0.0"
|
|
39
40
|
},
|
|
40
41
|
"scripts": {
|
|
@@ -42,5 +43,5 @@
|
|
|
42
43
|
"build:ts": "node \"../../node_modules/typescript/bin/tsc\"",
|
|
43
44
|
"build:components": "componentsjs-generator"
|
|
44
45
|
},
|
|
45
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "9ad64da7bae9dda857e12b7bb0b3af58d5f0f2af"
|
|
46
47
|
}
|