@comunica/bus-term-comparator-factory 3.2.4-alpha.47.0 → 4.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/components/ActorTermComparatorFactory.jsonld +16 -15
- package/components/components.jsonld +1 -1
- package/components/context.jsonld +1 -1
- package/lib/ActorTermComparatorFactory.d.ts +3 -1
- package/lib/ActorTermComparatorFactory.js +3 -1
- package/lib/ActorTermComparatorFactory.js.map +1 -1
- package/package.json +6 -6
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"@context": [
|
|
3
|
-
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-term-comparator-factory/^
|
|
4
|
-
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/core/^
|
|
5
|
-
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-function-factory/^
|
|
3
|
+
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-term-comparator-factory/^4.0.0/components/context.jsonld",
|
|
4
|
+
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/core/^4.0.0/components/context.jsonld",
|
|
5
|
+
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-function-factory/^4.0.0/components/context.jsonld"
|
|
6
6
|
],
|
|
7
7
|
"@id": "npmd:@comunica/bus-term-comparator-factory",
|
|
8
8
|
"components": [
|
|
@@ -68,37 +68,37 @@
|
|
|
68
68
|
"genericTypeInstances": [
|
|
69
69
|
{
|
|
70
70
|
"@type": "ParameterRangeGenericTypeReference",
|
|
71
|
-
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^
|
|
71
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_I"
|
|
72
72
|
},
|
|
73
73
|
{
|
|
74
74
|
"@type": "ParameterRangeGenericTypeReference",
|
|
75
|
-
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^
|
|
75
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_T"
|
|
76
76
|
},
|
|
77
77
|
{
|
|
78
78
|
"@type": "ParameterRangeGenericTypeReference",
|
|
79
|
-
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^
|
|
79
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_O"
|
|
80
80
|
},
|
|
81
81
|
{
|
|
82
82
|
"@type": "ParameterRangeGenericTypeReference",
|
|
83
|
-
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^
|
|
83
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_TS"
|
|
84
84
|
}
|
|
85
85
|
]
|
|
86
86
|
},
|
|
87
87
|
{
|
|
88
88
|
"@type": "ParameterRangeGenericTypeReference",
|
|
89
|
-
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^
|
|
89
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_I"
|
|
90
90
|
},
|
|
91
91
|
{
|
|
92
92
|
"@type": "ParameterRangeGenericTypeReference",
|
|
93
|
-
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^
|
|
93
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_T"
|
|
94
94
|
},
|
|
95
95
|
{
|
|
96
96
|
"@type": "ParameterRangeGenericTypeReference",
|
|
97
|
-
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^
|
|
97
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_O"
|
|
98
98
|
},
|
|
99
99
|
{
|
|
100
100
|
"@type": "ParameterRangeGenericTypeReference",
|
|
101
|
-
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^
|
|
101
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_TS"
|
|
102
102
|
}
|
|
103
103
|
]
|
|
104
104
|
},
|
|
@@ -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
|
{
|
|
@@ -134,19 +135,19 @@
|
|
|
134
135
|
"genericTypeInstances": [
|
|
135
136
|
{
|
|
136
137
|
"@type": "ParameterRangeGenericTypeReference",
|
|
137
|
-
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^
|
|
138
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_I"
|
|
138
139
|
},
|
|
139
140
|
{
|
|
140
141
|
"@type": "ParameterRangeGenericTypeReference",
|
|
141
|
-
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^
|
|
142
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_T"
|
|
142
143
|
},
|
|
143
144
|
{
|
|
144
145
|
"@type": "ParameterRangeGenericTypeReference",
|
|
145
|
-
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^
|
|
146
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_O"
|
|
146
147
|
},
|
|
147
148
|
{
|
|
148
149
|
"@type": "ParameterRangeGenericTypeReference",
|
|
149
|
-
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^
|
|
150
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_TS"
|
|
150
151
|
}
|
|
151
152
|
]
|
|
152
153
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"@context": [
|
|
3
|
-
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-term-comparator-factory/^
|
|
3
|
+
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-term-comparator-factory/^4.0.0/components/context.jsonld"
|
|
4
4
|
],
|
|
5
5
|
"@id": "npmd:@comunica/bus-term-comparator-factory",
|
|
6
6
|
"@type": "Module",
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"https://linkedsoftwaredependencies.org/bundles/npm/componentsjs/^6.0.0/components/context.jsonld",
|
|
4
4
|
{
|
|
5
5
|
"npmd": "https://linkedsoftwaredependencies.org/bundles/npm/",
|
|
6
|
-
"cbtcf": "npmd:@comunica/bus-term-comparator-factory/^
|
|
6
|
+
"cbtcf": "npmd:@comunica/bus-term-comparator-factory/^4.0.0/",
|
|
7
7
|
"ActorTermComparatorFactory": {
|
|
8
8
|
"@id": "cbtcf:components/ActorTermComparatorFactory.jsonld#ActorTermComparatorFactory",
|
|
9
9
|
"@prefix": true,
|
|
@@ -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": "
|
|
3
|
+
"version": "4.0.1",
|
|
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": "
|
|
40
|
-
"@comunica/bus-merge-bindings-context": "
|
|
41
|
-
"@comunica/bus-query-operation": "
|
|
42
|
-
"@comunica/core": "
|
|
39
|
+
"@comunica/bus-function-factory": "^4.0.1",
|
|
40
|
+
"@comunica/bus-merge-bindings-context": "^4.0.1",
|
|
41
|
+
"@comunica/bus-query-operation": "^4.0.1",
|
|
42
|
+
"@comunica/core": "^4.0.1",
|
|
43
43
|
"@rdfjs/types": "*"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "67831ba79e45ea1ced41fe3f83c5d6e8802dbeaa"
|
|
46
46
|
}
|