@comunica/actor-query-operation-ask 3.0.1-alpha.45.0 → 3.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
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-ask/^3.0.0/components/context.jsonld"
|
|
25
|
+
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-query-operation-ask/^3.0.0/components/context.jsonld"
|
|
26
26
|
],
|
|
27
27
|
"actors": [
|
|
28
28
|
...
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"@context": [
|
|
3
|
-
"https://linkedsoftwaredependencies.org/bundles/npm/componentsjs/^
|
|
3
|
+
"https://linkedsoftwaredependencies.org/bundles/npm/componentsjs/^6.0.0/components/context.jsonld",
|
|
4
4
|
{
|
|
5
5
|
"npmd": "https://linkedsoftwaredependencies.org/bundles/npm/",
|
|
6
6
|
"caqoa": "npmd:@comunica/actor-query-operation-ask/^3.0.0/",
|
|
@@ -8,6 +8,6 @@ import type { Algebra } from 'sparqlalgebrajs';
|
|
|
8
8
|
*/
|
|
9
9
|
export declare class ActorQueryOperationAsk extends ActorQueryOperationTypedMediated<Algebra.Ask> {
|
|
10
10
|
constructor(args: IActorQueryOperationTypedMediatedArgs);
|
|
11
|
-
testOperation(
|
|
11
|
+
testOperation(_operation: Algebra.Ask, _context: IActionContext): Promise<IActorTest>;
|
|
12
12
|
runOperation(operation: Algebra.Ask, context: IActionContext): Promise<IQueryOperationResult>;
|
|
13
13
|
}
|
|
@@ -9,7 +9,7 @@ class ActorQueryOperationAsk extends bus_query_operation_1.ActorQueryOperationTy
|
|
|
9
9
|
constructor(args) {
|
|
10
10
|
super(args, 'ask');
|
|
11
11
|
}
|
|
12
|
-
async testOperation(
|
|
12
|
+
async testOperation(_operation, _context) {
|
|
13
13
|
return true;
|
|
14
14
|
}
|
|
15
15
|
async runOperation(operation, context) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActorQueryOperationAsk.js","sourceRoot":"","sources":["ActorQueryOperationAsk.ts"],"names":[],"mappings":";;;AACA,uEAAsG;AAStG;;GAEG;AACH,MAAa,sBAAuB,SAAQ,sDAA6C;IACvF,YAAmB,IAA2C;QAC5D,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACrB,CAAC;IAEM,KAAK,CAAC,aAAa,CAAC,
|
|
1
|
+
{"version":3,"file":"ActorQueryOperationAsk.js","sourceRoot":"","sources":["ActorQueryOperationAsk.ts"],"names":[],"mappings":";;;AACA,uEAAsG;AAStG;;GAEG;AACH,MAAa,sBAAuB,SAAQ,sDAA6C;IACvF,YAAmB,IAA2C;QAC5D,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACrB,CAAC;IAEM,KAAK,CAAC,aAAa,CAAC,UAAuB,EAAE,QAAwB;QAC1E,OAAO,IAAI,CAAC;IACd,CAAC;IAEM,KAAK,CAAC,YAAY,CAAC,SAAsB,EAAE,OAAuB;QACvE,yCAAyC;QACzC,MAAM,MAAM,GAA0B,MAAM,IAAI,CAAC,sBAAsB,CAAC,OAAO,CAC7E,EAAE,SAAS,EAAE,SAAS,CAAC,KAAK,EAAE,OAAO,EAAE,CACxC,CAAC;QACF,MAAM,EAAE,cAAc,EAAE,GAAkC,yCAAmB,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC;QACtG,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,IAAG,EAAE,CAAC,CAAC,MAAM,cAAc,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;IACxG,CAAC;CACF;AAjBD,wDAiBC","sourcesContent":["import type { IActorQueryOperationTypedMediatedArgs } from '@comunica/bus-query-operation';\nimport { ActorQueryOperation, ActorQueryOperationTypedMediated } from '@comunica/bus-query-operation';\nimport type { IActorTest } from '@comunica/core';\nimport type {\n IActionContext,\n IQueryOperationResult,\n IQueryOperationResultBindings,\n} from '@comunica/types';\nimport type { Algebra } from 'sparqlalgebrajs';\n\n/**\n * A comunica Ask Query Operation Actor.\n */\nexport class ActorQueryOperationAsk extends ActorQueryOperationTypedMediated<Algebra.Ask> {\n public constructor(args: IActorQueryOperationTypedMediatedArgs) {\n super(args, 'ask');\n }\n\n public async testOperation(_operation: Algebra.Ask, _context: IActionContext): Promise<IActorTest> {\n return true;\n }\n\n public async runOperation(operation: Algebra.Ask, context: IActionContext): Promise<IQueryOperationResult> {\n // Call other query operations like this:\n const output: IQueryOperationResult = await this.mediatorQueryOperation.mediate(\n { operation: operation.input, context },\n );\n const { bindingsStream }: IQueryOperationResultBindings = ActorQueryOperation.getSafeBindings(output);\n return { type: 'boolean', execute: async() => (await bindingsStream.take(1).toArray()).length === 1 };\n }\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,46 +1,46 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@comunica/actor-query-operation-ask",
|
|
3
|
-
"version": "3.0.1
|
|
3
|
+
"version": "3.0.1",
|
|
4
4
|
"description": "A ask query-operation actor",
|
|
5
5
|
"lsd:module": true,
|
|
6
|
-
"
|
|
7
|
-
"
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"homepage": "https://comunica.dev/",
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
10
10
|
"url": "https://github.com/comunica/comunica.git",
|
|
11
11
|
"directory": "packages/actor-query-operation-ask"
|
|
12
12
|
},
|
|
13
|
-
"
|
|
14
|
-
"
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/comunica/comunica/issues"
|
|
15
15
|
},
|
|
16
|
-
"sideEffects": false,
|
|
17
16
|
"keywords": [
|
|
18
17
|
"comunica",
|
|
19
18
|
"actor",
|
|
20
19
|
"query-operation",
|
|
21
20
|
"ask"
|
|
22
21
|
],
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
|
|
22
|
+
"sideEffects": false,
|
|
23
|
+
"main": "lib/index.js",
|
|
24
|
+
"typings": "lib/index",
|
|
25
|
+
"publishConfig": {
|
|
26
|
+
"access": "public"
|
|
26
27
|
},
|
|
27
|
-
"homepage": "https://comunica.dev/",
|
|
28
28
|
"files": [
|
|
29
29
|
"components",
|
|
30
30
|
"lib/**/*.d.ts",
|
|
31
31
|
"lib/**/*.js",
|
|
32
32
|
"lib/**/*.js.map"
|
|
33
33
|
],
|
|
34
|
-
"dependencies": {
|
|
35
|
-
"@comunica/bus-query-operation": "3.0.1-alpha.45.0",
|
|
36
|
-
"@comunica/core": "3.0.1-alpha.45.0",
|
|
37
|
-
"@comunica/types": "3.0.1-alpha.45.0",
|
|
38
|
-
"sparqlalgebrajs": "^4.3.3"
|
|
39
|
-
},
|
|
40
34
|
"scripts": {
|
|
41
35
|
"build": "npm run build:ts && npm run build:components",
|
|
42
36
|
"build:ts": "node \"../../node_modules/typescript/bin/tsc\"",
|
|
43
37
|
"build:components": "componentsjs-generator"
|
|
44
38
|
},
|
|
45
|
-
"
|
|
39
|
+
"dependencies": {
|
|
40
|
+
"@comunica/bus-query-operation": "^3.0.1",
|
|
41
|
+
"@comunica/core": "^3.0.1",
|
|
42
|
+
"@comunica/types": "^3.0.1",
|
|
43
|
+
"sparqlalgebrajs": "^4.3.3"
|
|
44
|
+
},
|
|
45
|
+
"gitHead": "9c0b537cd927d29590c287fe882185d88a65461b"
|
|
46
46
|
}
|