@comunica/bus-term-comparator-factory 4.0.1-alpha.48.0 → 4.0.2
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.
|
@@ -119,6 +119,7 @@
|
|
|
119
119
|
}
|
|
120
120
|
]
|
|
121
121
|
},
|
|
122
|
+
"default": "Creation of term comparator failed",
|
|
122
123
|
"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}\""
|
|
123
124
|
},
|
|
124
125
|
{
|
|
@@ -20,7 +20,9 @@ export declare abstract class ActorTermComparatorFactory<TS = undefined> extends
|
|
|
20
20
|
protected readonly mediatorFunctionFactory: MediatorFunctionFactory;
|
|
21
21
|
protected readonly mediatorMergeBindingsContext: MediatorMergeBindingsContext;
|
|
22
22
|
/**
|
|
23
|
-
* @param args -
|
|
23
|
+
* @param args -
|
|
24
|
+
* \ @defaultNested {<default_bus> a <cc:components/Bus.jsonld#Bus>} bus
|
|
25
|
+
* \ @defaultNested {Creation of term comparator failed} busFailMessage
|
|
24
26
|
*/
|
|
25
27
|
constructor(args: IActorTermComparatorFactoryArgs<TS>);
|
|
26
28
|
}
|
|
@@ -15,7 +15,9 @@ const core_1 = require("@comunica/core");
|
|
|
15
15
|
*/
|
|
16
16
|
class ActorTermComparatorFactory extends core_1.Actor {
|
|
17
17
|
/**
|
|
18
|
-
* @param args -
|
|
18
|
+
* @param args -
|
|
19
|
+
* \ @defaultNested {<default_bus> a <cc:components/Bus.jsonld#Bus>} bus
|
|
20
|
+
* \ @defaultNested {Creation of term comparator failed} busFailMessage
|
|
19
21
|
*/
|
|
20
22
|
constructor(args) {
|
|
21
23
|
super(args);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActorTermComparatorFactory.js","sourceRoot":"","sources":["ActorTermComparatorFactory.ts"],"names":[],"mappings":";;;AAIA,yCAAuC;AAGvC;;;;;;;;;;GAUG;AACH,MAAsB,0BAA2C,SAC/D,YAAsF;IAKtF
|
|
1
|
+
{"version":3,"file":"ActorTermComparatorFactory.js","sourceRoot":"","sources":["ActorTermComparatorFactory.ts"],"names":[],"mappings":";;;AAIA,yCAAuC;AAGvC;;;;;;;;;;GAUG;AACH,MAAsB,0BAA2C,SAC/D,YAAsF;IAKtF;;;;OAIG;IACH,YAAmB,IAAyC;QAC1D,KAAK,CAAC,IAAI,CAAC,CAAC;QACZ,IAAI,CAAC,sBAAsB,GAAG,IAAI,CAAC,sBAAsB,CAAC;QAC1D,IAAI,CAAC,uBAAuB,GAA6B,IAAI,CAAC,uBAAuB,CAAC;QACtF,IAAI,CAAC,4BAA4B,GAAG,IAAI,CAAC,4BAA4B,CAAC;IACxE,CAAC;CACF;AAjBD,gEAiBC","sourcesContent":["import type { MediatorFunctionFactory, MediatorFunctionFactoryUnsafe } from '@comunica/bus-function-factory';\nimport type { MediatorMergeBindingsContext } from '@comunica/bus-merge-bindings-context';\nimport type { MediatorQueryOperation } from '@comunica/bus-query-operation';\nimport type { IAction, IActorArgs, IActorOutput, IActorTest, Mediate } from '@comunica/core';\nimport { Actor } from '@comunica/core';\nimport type * as RDF from '@rdfjs/types';\n\n/**\n * A comunica actor for term-comparator-factory events.\n *\n * Actor types:\n * * Input: IActionTermComparatorFactory: the Query Operation Mediator and Function Factory Mediator.\n * * Test: <none>\n * * Output: IActorTermComparatorFactoryOutput: An object that can order RDF terms.\n *\n * @see IActionTermComparatorFactory\n * @see IActorTermComparatorFactoryOutput\n */\nexport abstract class ActorTermComparatorFactory<TS = undefined> extends\n Actor<IActionTermComparatorFactory, IActorTest, IActorTermComparatorFactoryOutput, TS> {\n protected readonly mediatorQueryOperation: MediatorQueryOperation;\n protected readonly mediatorFunctionFactory: MediatorFunctionFactory;\n protected readonly mediatorMergeBindingsContext: MediatorMergeBindingsContext;\n\n /**\n * @param args -\n * \\ @defaultNested {<default_bus> a <cc:components/Bus.jsonld#Bus>} bus\n * \\ @defaultNested {Creation of term comparator failed} busFailMessage\n */\n public constructor(args: IActorTermComparatorFactoryArgs<TS>) {\n super(args);\n this.mediatorQueryOperation = args.mediatorQueryOperation;\n this.mediatorFunctionFactory = <MediatorFunctionFactory> args.mediatorFunctionFactory;\n this.mediatorMergeBindingsContext = args.mediatorMergeBindingsContext;\n }\n}\n\nexport interface IActionTermComparatorFactory extends IAction {\n\n}\n\nexport interface ITermComparator {\n /**\n * Orders two RDF terms according to: https://www.w3.org/TR/sparql11-query/#modOrderBy\n * @param termA the first term\n * @param termB the second term\n */\n orderTypes: (termA: RDF.Term | undefined, termB: RDF.Term | undefined) => -1 | 0 | 1;\n}\n\nexport interface IActorTermComparatorFactoryOutput extends IActorOutput, ITermComparator {}\n\nexport interface IActorTermComparatorFactoryArgs<TS = undefined> extends IActorArgs<\nIActionTermComparatorFactory,\nIActorTest,\nIActorTermComparatorFactoryOutput,\nTS\n> {\n mediatorQueryOperation: MediatorQueryOperation;\n mediatorFunctionFactory: MediatorFunctionFactoryUnsafe;\n /**\n * A mediator for creating binding context merge handlers\n */\n mediatorMergeBindingsContext: MediatorMergeBindingsContext;\n}\n\nexport type MediatorTermComparatorFactory = Mediate<\nIActionTermComparatorFactory,\nIActorTermComparatorFactoryOutput\n>;\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@comunica/bus-term-comparator-factory",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.2",
|
|
4
4
|
"description": "A comunica bus for term-comparator-factory events.",
|
|
5
5
|
"lsd:module": true,
|
|
6
6
|
"license": "MIT",
|
|
@@ -36,11 +36,11 @@
|
|
|
36
36
|
"build:components": "componentsjs-generator"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@comunica/bus-function-factory": "4.0.
|
|
40
|
-
"@comunica/bus-merge-bindings-context": "4.0.
|
|
41
|
-
"@comunica/bus-query-operation": "4.0.
|
|
42
|
-
"@comunica/core": "4.0.
|
|
39
|
+
"@comunica/bus-function-factory": "^4.0.2",
|
|
40
|
+
"@comunica/bus-merge-bindings-context": "^4.0.2",
|
|
41
|
+
"@comunica/bus-query-operation": "^4.0.2",
|
|
42
|
+
"@comunica/core": "^4.0.2",
|
|
43
43
|
"@rdfjs/types": "*"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "b60deab76821557f8d027208ab743d3c66fc60ea"
|
|
46
46
|
}
|