@comunica/actor-query-operation-values 3.0.1-alpha.45.0 → 3.0.1-alpha.46.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
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-values/^3.0.0/components/context.jsonld"
|
|
25
|
+
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-query-operation-values/^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
|
"caqov": "npmd:@comunica/actor-query-operation-values/^3.0.0/",
|
|
@@ -10,7 +10,7 @@ import type { Algebra } from 'sparqlalgebrajs';
|
|
|
10
10
|
export declare class ActorQueryOperationValues extends ActorQueryOperationTyped<Algebra.Values> {
|
|
11
11
|
readonly mediatorMergeBindingsContext: MediatorMergeBindingsContext;
|
|
12
12
|
constructor(args: IActorQueryOperationUpdateDeleteInsertArgs);
|
|
13
|
-
testOperation(
|
|
13
|
+
testOperation(_operation: Algebra.Values, _context: IActionContext): Promise<IActorTest>;
|
|
14
14
|
runOperation(operation: Algebra.Values, context: IActionContext): Promise<IQueryOperationResult>;
|
|
15
15
|
}
|
|
16
16
|
export interface IActorQueryOperationUpdateDeleteInsertArgs extends IActorArgs<IActionQueryOperation, IActorTest, IQueryOperationResult> {
|
|
@@ -14,7 +14,7 @@ class ActorQueryOperationValues extends bus_query_operation_1.ActorQueryOperatio
|
|
|
14
14
|
constructor(args) {
|
|
15
15
|
super(args, 'values');
|
|
16
16
|
}
|
|
17
|
-
async testOperation(
|
|
17
|
+
async testOperation(_operation, _context) {
|
|
18
18
|
return true;
|
|
19
19
|
}
|
|
20
20
|
async runOperation(operation, context) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActorQueryOperationValues.js","sourceRoot":"","sources":["ActorQueryOperationValues.ts"],"names":[],"mappings":";;;AAAA,iEAA6D;AAG7D,uEAAyE;AAEzE,iDAA6D;
|
|
1
|
+
{"version":3,"file":"ActorQueryOperationValues.js","sourceRoot":"","sources":["ActorQueryOperationValues.ts"],"names":[],"mappings":";;;AAAA,iEAA6D;AAG7D,uEAAyE;AAEzE,iDAA6D;AAQ7D,iDAA8C;AAC9C,uDAA+C;AAG/C,MAAM,EAAE,GAAG,IAAI,8BAAW,EAAE,CAAC;AAE7B;;GAEG;AACH,MAAa,yBAA0B,SAAQ,8CAAwC;IAGrF,YAAmB,IAAgD;QACjE,KAAK,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;IACxB,CAAC;IAEM,KAAK,CAAC,aAAa,CAAC,UAA0B,EAAE,QAAwB;QAC7E,OAAO,IAAI,CAAC;IACd,CAAC;IAEM,KAAK,CAAC,YAAY,CAAC,SAAyB,EAAE,OAAuB;QAE1E,MAAM,eAAe,GAAG,MAAM,kCAAe,CAAC,MAAM,CAAC,IAAI,CAAC,4BAA4B,EAAE,OAAO,CAAC,CAAC;QACjG,MAAM,cAAc,GAAmB,IAAI,6BAAa,CAAW,SAAS,CAAC,QAAQ;aAClF,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,eAAe,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC;aACjD,GAAG,CAAC,CAAC,CAAE,GAAG,EAAE,KAAK,CAAE,EAAE,EAAE,CAAC,CAAE,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,KAAK,CAAE,CAAC,CAAC,CAAC,CAAC,CAAC;QACtE,MAAM,SAAS,GAAG,SAAS,CAAC,SAAS,CAAC;QACtC,MAAM,QAAQ,GAAG,GAA8B,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC;YAChE,KAAK,EAAE,IAAI,kCAAuB,EAAE;YACpC,WAAW,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,CAAC,QAAQ,CAAC,MAAM,EAAE;YAChE,gBAAgB,EAAE,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,QAAQ,CAAC,KAAK,EAAE,IAAI,QAAQ,CAAC,CAAC,CAAC;YACtH,SAAS;SACV,CAAC,CAAC;QACH,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,cAAc,EAAE,QAAQ,EAAE,CAAC;IACxD,CAAC;CACF;AA1BD,8DA0BC","sourcesContent":["import { BindingsFactory } from '@comunica/bindings-factory';\nimport type { MediatorMergeBindingsContext } from '@comunica/bus-merge-bindings-context';\nimport type { IActionQueryOperation } from '@comunica/bus-query-operation';\nimport { ActorQueryOperationTyped } from '@comunica/bus-query-operation';\nimport type { IActorArgs, IActorTest } from '@comunica/core';\nimport { MetadataValidationState } from '@comunica/metadata';\nimport type {\n IQueryOperationResult,\n BindingsStream,\n Bindings,\n IActionContext,\n MetadataBindings,\n} from '@comunica/types';\nimport { ArrayIterator } from 'asynciterator';\nimport { DataFactory } from 'rdf-data-factory';\nimport type { Algebra } from 'sparqlalgebrajs';\n\nconst DF = new DataFactory();\n\n/**\n * A comunica Values Query Operation Actor.\n */\nexport class ActorQueryOperationValues extends ActorQueryOperationTyped<Algebra.Values> {\n public readonly mediatorMergeBindingsContext: MediatorMergeBindingsContext;\n\n public constructor(args: IActorQueryOperationUpdateDeleteInsertArgs) {\n super(args, 'values');\n }\n\n public async testOperation(_operation: Algebra.Values, _context: IActionContext): Promise<IActorTest> {\n return true;\n }\n\n public async runOperation(operation: Algebra.Values, context: IActionContext):\n Promise<IQueryOperationResult> {\n const bindingsFactory = await BindingsFactory.create(this.mediatorMergeBindingsContext, context);\n const bindingsStream: BindingsStream = new ArrayIterator<Bindings>(operation.bindings\n .map(x => bindingsFactory.bindings(Object.entries(x)\n .map(([ key, value ]) => [ DF.variable(key.slice(1)), value ]))));\n const variables = operation.variables;\n const metadata = (): Promise<MetadataBindings> => Promise.resolve({\n state: new MetadataValidationState(),\n cardinality: { type: 'exact', value: operation.bindings.length },\n canContainUndefs: operation.bindings.some(bindings => variables.some(variable => !(`?${variable.value}` in bindings))),\n variables,\n });\n return { type: 'bindings', bindingsStream, metadata };\n }\n}\n\nexport interface IActorQueryOperationUpdateDeleteInsertArgs extends\n IActorArgs<IActionQueryOperation, IActorTest, IQueryOperationResult> {\n /**\n * A mediator for creating binding context merge handlers\n */\n mediatorMergeBindingsContext: MediatorMergeBindingsContext;\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,51 +1,51 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@comunica/actor-query-operation-values",
|
|
3
|
-
"version": "3.0.1-alpha.
|
|
3
|
+
"version": "3.0.1-alpha.46.0",
|
|
4
4
|
"description": "A values 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-values"
|
|
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
|
"values"
|
|
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/bindings-factory": "3.0.1-alpha.45.0",
|
|
36
|
-
"@comunica/bus-merge-bindings-context": "3.0.1-alpha.45.0",
|
|
37
|
-
"@comunica/bus-query-operation": "3.0.1-alpha.45.0",
|
|
38
|
-
"@comunica/core": "3.0.1-alpha.45.0",
|
|
39
|
-
"@comunica/metadata": "3.0.1-alpha.45.0",
|
|
40
|
-
"@comunica/types": "3.0.1-alpha.45.0",
|
|
41
|
-
"asynciterator": "^3.8.1",
|
|
42
|
-
"rdf-data-factory": "^1.1.1",
|
|
43
|
-
"sparqlalgebrajs": "^4.3.3"
|
|
44
|
-
},
|
|
45
34
|
"scripts": {
|
|
46
35
|
"build": "npm run build:ts && npm run build:components",
|
|
47
36
|
"build:ts": "node \"../../node_modules/typescript/bin/tsc\"",
|
|
48
37
|
"build:components": "componentsjs-generator"
|
|
49
38
|
},
|
|
50
|
-
"
|
|
39
|
+
"dependencies": {
|
|
40
|
+
"@comunica/bindings-factory": "3.0.1-alpha.46.0",
|
|
41
|
+
"@comunica/bus-merge-bindings-context": "3.0.1-alpha.46.0",
|
|
42
|
+
"@comunica/bus-query-operation": "3.0.1-alpha.46.0",
|
|
43
|
+
"@comunica/core": "3.0.1-alpha.46.0",
|
|
44
|
+
"@comunica/metadata": "3.0.1-alpha.46.0",
|
|
45
|
+
"@comunica/types": "3.0.1-alpha.46.0",
|
|
46
|
+
"asynciterator": "^3.8.1",
|
|
47
|
+
"rdf-data-factory": "^1.1.1",
|
|
48
|
+
"sparqlalgebrajs": "^4.3.3"
|
|
49
|
+
},
|
|
50
|
+
"gitHead": "c115712ec55d79c83712e7046a387d5e3a177023"
|
|
51
51
|
}
|