@comunica/actor-query-operation-path-inv 3.2.4-alpha.47.0 → 3.3.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.
@@ -49,10 +49,6 @@
49
49
  {
50
50
  "@type": "ParameterRangeGenericTypeReference",
51
51
  "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_O"
52
- },
53
- {
54
- "@type": "ParameterRangeGenericTypeReference",
55
- "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_TS"
56
52
  }
57
53
  ]
58
54
  },
@@ -67,10 +63,6 @@
67
63
  {
68
64
  "@type": "ParameterRangeGenericTypeReference",
69
65
  "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_O"
70
- },
71
- {
72
- "@type": "ParameterRangeGenericTypeReference",
73
- "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_TS"
74
66
  }
75
67
  ]
76
68
  },
@@ -80,20 +72,6 @@
80
72
  },
81
73
  "comment": "The bus this actor subscribes to."
82
74
  },
83
- {
84
- "@id": "caqopi:components/ActorQueryOperationPathInv.jsonld#ActorQueryOperationPathInv_args_busFailMessage",
85
- "range": {
86
- "@type": "ParameterRangeUnion",
87
- "parameterRangeElements": [
88
- "xsd:string",
89
- {
90
- "@type": "ParameterRangeUndefined"
91
- }
92
- ]
93
- },
94
- "default": "Query operation processing failed: none of the configured actors were able to handle the operation type ${action.operation.type}",
95
- "comment": "The message that will be configured in the bus for reporting failures. This message may be a template string that contains references to the executed `action`. For example, the following templated string is allowed: \"RDF dereferencing failed: no actors could handle ${action.handle.mediaType}\""
96
- },
97
75
  {
98
76
  "@id": "caqopi:components/ActorQueryOperationPathInv.jsonld#ActorQueryOperationPathInv_args_beforeActors",
99
77
  "range": {
@@ -116,10 +94,6 @@
116
94
  {
117
95
  "@type": "ParameterRangeGenericTypeReference",
118
96
  "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_O"
119
- },
120
- {
121
- "@type": "ParameterRangeGenericTypeReference",
122
- "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_TS"
123
97
  }
124
98
  ]
125
99
  }
@@ -164,12 +138,6 @@
164
138
  "@id": "caqopi:components/ActorQueryOperationPathInv.jsonld#ActorQueryOperationPathInv_args_bus"
165
139
  }
166
140
  },
167
- {
168
- "keyRaw": "busFailMessage",
169
- "value": {
170
- "@id": "caqopi:components/ActorQueryOperationPathInv.jsonld#ActorQueryOperationPathInv_args_busFailMessage"
171
- }
172
- },
173
141
  {
174
142
  "keyRaw": "beforeActors",
175
143
  "value": {
@@ -17,9 +17,6 @@
17
17
  "args_bus": {
18
18
  "@id": "caqopi:components/ActorQueryOperationPathInv.jsonld#ActorQueryOperationPathInv_args_bus"
19
19
  },
20
- "args_busFailMessage": {
21
- "@id": "caqopi:components/ActorQueryOperationPathInv.jsonld#ActorQueryOperationPathInv_args_busFailMessage"
22
- },
23
20
  "args_beforeActors": {
24
21
  "@id": "caqopi:components/ActorQueryOperationPathInv.jsonld#ActorQueryOperationPathInv_args_beforeActors",
25
22
  "@container": "@list"
@@ -33,9 +30,6 @@
33
30
  "bus": {
34
31
  "@id": "caqopi:components/ActorQueryOperationPathInv.jsonld#ActorQueryOperationPathInv_args_bus"
35
32
  },
36
- "busFailMessage": {
37
- "@id": "caqopi:components/ActorQueryOperationPathInv.jsonld#ActorQueryOperationPathInv_args_busFailMessage"
38
- },
39
33
  "beforeActors": {
40
34
  "@id": "caqopi:components/ActorQueryOperationPathInv.jsonld#ActorQueryOperationPathInv_args_beforeActors",
41
35
  "@container": "@list"
@@ -2,7 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ActorQueryOperationPathInv = void 0;
4
4
  const actor_abstract_path_1 = require("@comunica/actor-abstract-path");
5
- const context_entries_1 = require("@comunica/context-entries");
6
5
  const sparqlalgebrajs_1 = require("sparqlalgebrajs");
7
6
  /**
8
7
  * A comunica Path Inv Query Operation Actor.
@@ -12,10 +11,9 @@ class ActorQueryOperationPathInv extends actor_abstract_path_1.ActorAbstractPath
12
11
  super(args, sparqlalgebrajs_1.Algebra.types.INV);
13
12
  }
14
13
  async runOperation(operation, context) {
15
- const dataFactory = context.getSafe(context_entries_1.KeysInitQuery.dataFactory);
16
- const algebraFactory = new sparqlalgebrajs_1.Factory(dataFactory);
17
14
  const predicate = operation.predicate;
18
- const invPath = algebraFactory.createPath(operation.object, predicate.path, operation.subject, operation.graph);
15
+ const invPath = actor_abstract_path_1.ActorAbstractPath.FACTORY
16
+ .createPath(operation.object, predicate.path, operation.subject, operation.graph);
19
17
  return this.mediatorQueryOperation.mediate({ operation: invPath, context });
20
18
  }
21
19
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ActorQueryOperationPathInv.js","sourceRoot":"","sources":["ActorQueryOperationPathInv.ts"],"names":[],"mappings":";;;AAAA,uEAAkE;AAElE,+DAA0D;AAE1D,qDAAmD;AAEnD;;GAEG;AACH,MAAa,0BAA2B,SAAQ,uCAAiB;IAC/D,YAAmB,IAA2C;QAC5D,KAAK,CAAC,IAAI,EAAE,yBAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACjC,CAAC;IAEM,KAAK,CAAC,YAAY,CAAC,SAAuB,EAAE,OAAuB;QACxE,MAAM,WAAW,GAAwB,OAAO,CAAC,OAAO,CAAC,+BAAa,CAAC,WAAW,CAAC,CAAC;QACpF,MAAM,cAAc,GAAG,IAAI,yBAAO,CAAC,WAAW,CAAC,CAAC;QAEhD,MAAM,SAAS,GAAiB,SAAS,CAAC,SAAS,CAAC;QACpD,MAAM,OAAO,GAAG,cAAc,CAAC,UAAU,CAAC,SAAS,CAAC,MAAM,EAAE,SAAS,CAAC,IAAI,EAAE,SAAS,CAAC,OAAO,EAAE,SAAS,CAAC,KAAK,CAAC,CAAC;QAChH,OAAO,IAAI,CAAC,sBAAsB,CAAC,OAAO,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,CAAC;IAC9E,CAAC;CACF;AAbD,gEAaC","sourcesContent":["import { ActorAbstractPath } from '@comunica/actor-abstract-path';\nimport type { IActorQueryOperationTypedMediatedArgs } from '@comunica/bus-query-operation';\nimport { KeysInitQuery } from '@comunica/context-entries';\nimport type { ComunicaDataFactory, IActionContext, IQueryOperationResult } from '@comunica/types';\nimport { Algebra, Factory } from 'sparqlalgebrajs';\n\n/**\n * A comunica Path Inv Query Operation Actor.\n */\nexport class ActorQueryOperationPathInv extends ActorAbstractPath {\n public constructor(args: IActorQueryOperationTypedMediatedArgs) {\n super(args, Algebra.types.INV);\n }\n\n public async runOperation(operation: Algebra.Path, context: IActionContext): Promise<IQueryOperationResult> {\n const dataFactory: ComunicaDataFactory = context.getSafe(KeysInitQuery.dataFactory);\n const algebraFactory = new Factory(dataFactory);\n\n const predicate = <Algebra.Inv> operation.predicate;\n const invPath = algebraFactory.createPath(operation.object, predicate.path, operation.subject, operation.graph);\n return this.mediatorQueryOperation.mediate({ operation: invPath, context });\n }\n}\n"]}
1
+ {"version":3,"file":"ActorQueryOperationPathInv.js","sourceRoot":"","sources":["ActorQueryOperationPathInv.ts"],"names":[],"mappings":";;;AAAA,uEAAkE;AAGlE,qDAA0C;AAE1C;;GAEG;AACH,MAAa,0BAA2B,SAAQ,uCAAiB;IAC/D,YAAmB,IAA2C;QAC5D,KAAK,CAAC,IAAI,EAAE,yBAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACjC,CAAC;IAEM,KAAK,CAAC,YAAY,CAAC,SAAuB,EAAE,OAAuB;QACxE,MAAM,SAAS,GAAiB,SAAS,CAAC,SAAS,CAAC;QACpD,MAAM,OAAO,GAAG,uCAAiB,CAAC,OAAO;aACtC,UAAU,CAAC,SAAS,CAAC,MAAM,EAAE,SAAS,CAAC,IAAI,EAAE,SAAS,CAAC,OAAO,EAAE,SAAS,CAAC,KAAK,CAAC,CAAC;QACpF,OAAO,IAAI,CAAC,sBAAsB,CAAC,OAAO,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,CAAC;IAC9E,CAAC;CACF;AAXD,gEAWC","sourcesContent":["import { ActorAbstractPath } from '@comunica/actor-abstract-path';\nimport type { IActorQueryOperationTypedMediatedArgs } from '@comunica/bus-query-operation';\nimport type { IActionContext, IQueryOperationResult } from '@comunica/types';\nimport { Algebra } from 'sparqlalgebrajs';\n\n/**\n * A comunica Path Inv Query Operation Actor.\n */\nexport class ActorQueryOperationPathInv extends ActorAbstractPath {\n public constructor(args: IActorQueryOperationTypedMediatedArgs) {\n super(args, Algebra.types.INV);\n }\n\n public async runOperation(operation: Algebra.Path, context: IActionContext): Promise<IQueryOperationResult> {\n const predicate = <Algebra.Inv> operation.predicate;\n const invPath = ActorAbstractPath.FACTORY\n .createPath(operation.object, predicate.path, operation.subject, operation.graph);\n return this.mediatorQueryOperation.mediate({ operation: invPath, context });\n }\n}\n"]}
package/package.json CHANGED
@@ -1,13 +1,9 @@
1
1
  {
2
2
  "name": "@comunica/actor-query-operation-path-inv",
3
- "version": "3.2.4-alpha.47.0",
3
+ "version": "3.3.0",
4
4
  "description": "A path-inv query-operation actor",
5
5
  "lsd:module": true,
6
6
  "license": "MIT",
7
- "funding": {
8
- "type": "opencollective",
9
- "url": "https://opencollective.com/comunica-association"
10
- },
11
7
  "homepage": "https://comunica.dev/",
12
8
  "repository": {
13
9
  "type": "git",
@@ -41,11 +37,10 @@
41
37
  "build:components": "componentsjs-generator"
42
38
  },
43
39
  "dependencies": {
44
- "@comunica/actor-abstract-path": "3.2.4-alpha.47.0",
45
- "@comunica/bus-query-operation": "3.2.4-alpha.47.0",
46
- "@comunica/context-entries": "3.2.4-alpha.47.0",
47
- "@comunica/types": "3.2.4-alpha.47.0",
48
- "sparqlalgebrajs": "^4.3.8"
40
+ "@comunica/actor-abstract-path": "^3.3.0",
41
+ "@comunica/bus-query-operation": "^3.3.0",
42
+ "@comunica/types": "^3.3.0",
43
+ "sparqlalgebrajs": "^4.3.7"
49
44
  },
50
- "gitHead": "85bd4c5cf07dfc293ebbc3a1416b70e2db8bfc48"
45
+ "gitHead": "02bde397d206f1f5a523643a6a604c89e792e2f9"
51
46
  }