@comunica/bus-term-comparator-factory 3.2.4-alpha.47.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/LICENSE.txt +22 -0
- package/README.md +27 -0
- package/components/ActorTermComparatorFactory.jsonld +312 -0
- package/components/components.jsonld +11 -0
- package/components/context.jsonld +79 -0
- package/lib/ActorTermComparatorFactory.d.ts +47 -0
- package/lib/ActorTermComparatorFactory.js +28 -0
- package/lib/ActorTermComparatorFactory.js.map +1 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +18 -0
- package/lib/index.js.map +1 -0
- package/package.json +46 -0
package/LICENSE.txt
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright © 2017–now Ruben Taelman, Joachim Van Herwegen
|
|
4
|
+
Comunica Association and Ghent University – imec, Belgium
|
|
5
|
+
|
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
in the Software without restriction, including without limitation the rights
|
|
9
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
furnished to do so, subject to the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be included in
|
|
14
|
+
all copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
22
|
+
THE SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Comunica Bus Term Comparator Factory
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/@comunica/bus-term-comparator-factory)
|
|
4
|
+
|
|
5
|
+
A comunica bus for term-comparator-factory events.
|
|
6
|
+
|
|
7
|
+
This module is part of the [Comunica framework](https://github.com/comunica/comunica),
|
|
8
|
+
and should only be used by [developers that want to build their own query engine](https://comunica.dev/docs/modify/).
|
|
9
|
+
|
|
10
|
+
[Click here if you just want to query with Comunica](https://comunica.dev/docs/query/).
|
|
11
|
+
|
|
12
|
+
## Install
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
$ yarn add @comunica/bus-term-comparator-factory
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Usage
|
|
19
|
+
|
|
20
|
+
## Bus usage
|
|
21
|
+
|
|
22
|
+
* **Context**: `"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-term-comparator-factory/^1.0.0/components/context.jsonld"`
|
|
23
|
+
* **Bus name**: `ActorTermComparatorFactory:_default_bus`
|
|
24
|
+
|
|
25
|
+
## Creating actors on this bus
|
|
26
|
+
|
|
27
|
+
Actors extending [`ActorTermComparatorFactory`](TODO:jsdoc_url) are automatically subscribed to this bus.
|
|
@@ -0,0 +1,312 @@
|
|
|
1
|
+
{
|
|
2
|
+
"@context": [
|
|
3
|
+
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-term-comparator-factory/^3.0.0/components/context.jsonld",
|
|
4
|
+
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/core/^3.0.0/components/context.jsonld",
|
|
5
|
+
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-function-factory/^3.0.0/components/context.jsonld"
|
|
6
|
+
],
|
|
7
|
+
"@id": "npmd:@comunica/bus-term-comparator-factory",
|
|
8
|
+
"components": [
|
|
9
|
+
{
|
|
10
|
+
"@id": "cbtcf:components/ActorTermComparatorFactory.jsonld#ActorTermComparatorFactory",
|
|
11
|
+
"@type": "AbstractClass",
|
|
12
|
+
"requireElement": "ActorTermComparatorFactory",
|
|
13
|
+
"extends": [
|
|
14
|
+
{
|
|
15
|
+
"@type": "GenericComponentExtension",
|
|
16
|
+
"component": "cc:components/Actor.jsonld#Actor",
|
|
17
|
+
"genericTypeInstances": [
|
|
18
|
+
"cbtcf:components/ActorTermComparatorFactory.jsonld#IActionTermComparatorFactory",
|
|
19
|
+
"cc:components/Actor.jsonld#IActorTest",
|
|
20
|
+
"cbtcf:components/ActorTermComparatorFactory.jsonld#IActorTermComparatorFactoryOutput",
|
|
21
|
+
{
|
|
22
|
+
"@type": "ParameterRangeGenericTypeReference",
|
|
23
|
+
"parameterRangeGenericType": "cbtcf:components/ActorTermComparatorFactory.jsonld#ActorTermComparatorFactory__generic_TS"
|
|
24
|
+
}
|
|
25
|
+
]
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
"comment": "A comunica actor for term-comparator-factory events. Actor types: * Input: IActionTermComparatorFactory: the Query Operation Mediator and Function Factory Mediator. * Test: <none> * Output: IActorTermComparatorFactoryOutput: An object that can order RDF terms.",
|
|
29
|
+
"genericTypeParameters": [
|
|
30
|
+
{
|
|
31
|
+
"@id": "cbtcf:components/ActorTermComparatorFactory.jsonld#ActorTermComparatorFactory__generic_TS",
|
|
32
|
+
"default": {
|
|
33
|
+
"@type": "ParameterRangeUndefined"
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
"parameters": [
|
|
38
|
+
{
|
|
39
|
+
"@id": "cbtcf:components/ActorTermComparatorFactory.jsonld#ActorTermComparatorFactory_args_mediatorQueryOperation",
|
|
40
|
+
"range": "cc:components/Mediator.jsonld#Mediator"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"@id": "cbtcf:components/ActorTermComparatorFactory.jsonld#ActorTermComparatorFactory_args_mediatorFunctionFactory",
|
|
44
|
+
"range": "cc:components/Mediator.jsonld#Mediator"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"@id": "cbtcf:components/ActorTermComparatorFactory.jsonld#ActorTermComparatorFactory_args_mediatorMergeBindingsContext",
|
|
48
|
+
"range": "cc:components/Mediator.jsonld#Mediator",
|
|
49
|
+
"comment": "A mediator for creating binding context merge handlers"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"@id": "cbtcf:components/ActorTermComparatorFactory.jsonld#ActorTermComparatorFactory_args_name",
|
|
53
|
+
"range": "xsd:string",
|
|
54
|
+
"default": {
|
|
55
|
+
"@id": "rdf:subject"
|
|
56
|
+
},
|
|
57
|
+
"comment": "The name for this actor."
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"@id": "cbtcf:components/ActorTermComparatorFactory.jsonld#ActorTermComparatorFactory_args_bus",
|
|
61
|
+
"range": {
|
|
62
|
+
"@type": "ParameterRangeGenericComponent",
|
|
63
|
+
"component": "cc:components/Bus.jsonld#Bus",
|
|
64
|
+
"genericTypeInstances": [
|
|
65
|
+
{
|
|
66
|
+
"@type": "ParameterRangeGenericComponent",
|
|
67
|
+
"component": "cc:components/Actor.jsonld#Actor",
|
|
68
|
+
"genericTypeInstances": [
|
|
69
|
+
{
|
|
70
|
+
"@type": "ParameterRangeGenericTypeReference",
|
|
71
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_I"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"@type": "ParameterRangeGenericTypeReference",
|
|
75
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_T"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"@type": "ParameterRangeGenericTypeReference",
|
|
79
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_O"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"@type": "ParameterRangeGenericTypeReference",
|
|
83
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_TS"
|
|
84
|
+
}
|
|
85
|
+
]
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"@type": "ParameterRangeGenericTypeReference",
|
|
89
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_I"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"@type": "ParameterRangeGenericTypeReference",
|
|
93
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_T"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"@type": "ParameterRangeGenericTypeReference",
|
|
97
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_O"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"@type": "ParameterRangeGenericTypeReference",
|
|
101
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_TS"
|
|
102
|
+
}
|
|
103
|
+
]
|
|
104
|
+
},
|
|
105
|
+
"default": {
|
|
106
|
+
"@id": "cbtcf:components/ActorTermComparatorFactory.jsonld#ActorTermComparatorFactory_default_bus",
|
|
107
|
+
"@type": "cc:components/Bus.jsonld#Bus"
|
|
108
|
+
},
|
|
109
|
+
"comment": "The bus this actor subscribes to."
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"@id": "cbtcf:components/ActorTermComparatorFactory.jsonld#ActorTermComparatorFactory_args_busFailMessage",
|
|
113
|
+
"range": {
|
|
114
|
+
"@type": "ParameterRangeUnion",
|
|
115
|
+
"parameterRangeElements": [
|
|
116
|
+
"xsd:string",
|
|
117
|
+
{
|
|
118
|
+
"@type": "ParameterRangeUndefined"
|
|
119
|
+
}
|
|
120
|
+
]
|
|
121
|
+
},
|
|
122
|
+
"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
|
+
{
|
|
125
|
+
"@id": "cbtcf:components/ActorTermComparatorFactory.jsonld#ActorTermComparatorFactory_args_beforeActors",
|
|
126
|
+
"range": {
|
|
127
|
+
"@type": "ParameterRangeUnion",
|
|
128
|
+
"parameterRangeElements": [
|
|
129
|
+
{
|
|
130
|
+
"@type": "ParameterRangeArray",
|
|
131
|
+
"parameterRangeValue": {
|
|
132
|
+
"@type": "ParameterRangeGenericComponent",
|
|
133
|
+
"component": "cc:components/Actor.jsonld#Actor",
|
|
134
|
+
"genericTypeInstances": [
|
|
135
|
+
{
|
|
136
|
+
"@type": "ParameterRangeGenericTypeReference",
|
|
137
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_I"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"@type": "ParameterRangeGenericTypeReference",
|
|
141
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_T"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"@type": "ParameterRangeGenericTypeReference",
|
|
145
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_O"
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"@type": "ParameterRangeGenericTypeReference",
|
|
149
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_TS"
|
|
150
|
+
}
|
|
151
|
+
]
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"@type": "ParameterRangeUndefined"
|
|
156
|
+
}
|
|
157
|
+
]
|
|
158
|
+
},
|
|
159
|
+
"comment": "Actor that must be registered in the bus before this actor."
|
|
160
|
+
}
|
|
161
|
+
],
|
|
162
|
+
"memberFields": [
|
|
163
|
+
{
|
|
164
|
+
"@id": "cbtcf:components/ActorTermComparatorFactory.jsonld#ActorTermComparatorFactory__member_mediatorQueryOperation",
|
|
165
|
+
"memberFieldName": "mediatorQueryOperation",
|
|
166
|
+
"range": "cc:components/Mediator.jsonld#Mediator"
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"@id": "cbtcf:components/ActorTermComparatorFactory.jsonld#ActorTermComparatorFactory__member_mediatorFunctionFactory",
|
|
170
|
+
"memberFieldName": "mediatorFunctionFactory",
|
|
171
|
+
"range": "cbff:components/ActorFunctionFactory.jsonld#MediatorFunctionFactory"
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
"@id": "cbtcf:components/ActorTermComparatorFactory.jsonld#ActorTermComparatorFactory__member_mediatorMergeBindingsContext",
|
|
175
|
+
"memberFieldName": "mediatorMergeBindingsContext",
|
|
176
|
+
"range": "cc:components/Mediator.jsonld#Mediator"
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"@id": "cbtcf:components/ActorTermComparatorFactory.jsonld#ActorTermComparatorFactory__member_constructor",
|
|
180
|
+
"memberFieldName": "constructor"
|
|
181
|
+
}
|
|
182
|
+
],
|
|
183
|
+
"constructorArguments": [
|
|
184
|
+
{
|
|
185
|
+
"@id": "cbtcf:components/ActorTermComparatorFactory.jsonld#ActorTermComparatorFactory_args__constructorArgument",
|
|
186
|
+
"fields": [
|
|
187
|
+
{
|
|
188
|
+
"keyRaw": "mediatorQueryOperation",
|
|
189
|
+
"value": {
|
|
190
|
+
"@id": "cbtcf:components/ActorTermComparatorFactory.jsonld#ActorTermComparatorFactory_args_mediatorQueryOperation"
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"keyRaw": "mediatorFunctionFactory",
|
|
195
|
+
"value": {
|
|
196
|
+
"@id": "cbtcf:components/ActorTermComparatorFactory.jsonld#ActorTermComparatorFactory_args_mediatorFunctionFactory"
|
|
197
|
+
}
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"keyRaw": "mediatorMergeBindingsContext",
|
|
201
|
+
"value": {
|
|
202
|
+
"@id": "cbtcf:components/ActorTermComparatorFactory.jsonld#ActorTermComparatorFactory_args_mediatorMergeBindingsContext"
|
|
203
|
+
}
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
"keyRaw": "name",
|
|
207
|
+
"value": {
|
|
208
|
+
"@id": "cbtcf:components/ActorTermComparatorFactory.jsonld#ActorTermComparatorFactory_args_name"
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"keyRaw": "bus",
|
|
213
|
+
"value": {
|
|
214
|
+
"@id": "cbtcf:components/ActorTermComparatorFactory.jsonld#ActorTermComparatorFactory_args_bus"
|
|
215
|
+
}
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
"keyRaw": "busFailMessage",
|
|
219
|
+
"value": {
|
|
220
|
+
"@id": "cbtcf:components/ActorTermComparatorFactory.jsonld#ActorTermComparatorFactory_args_busFailMessage"
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
"keyRaw": "beforeActors",
|
|
225
|
+
"value": {
|
|
226
|
+
"@id": "cbtcf:components/ActorTermComparatorFactory.jsonld#ActorTermComparatorFactory_args_beforeActors"
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
]
|
|
230
|
+
}
|
|
231
|
+
]
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
"@id": "cbtcf:components/ActorTermComparatorFactory.jsonld#IActionTermComparatorFactory",
|
|
235
|
+
"@type": "AbstractClass",
|
|
236
|
+
"requireElement": "IActionTermComparatorFactory",
|
|
237
|
+
"extends": [
|
|
238
|
+
"cc:components/Actor.jsonld#IAction"
|
|
239
|
+
],
|
|
240
|
+
"parameters": [],
|
|
241
|
+
"constructorArguments": []
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"@id": "cbtcf:components/ActorTermComparatorFactory.jsonld#ITermComparator",
|
|
245
|
+
"@type": "AbstractClass",
|
|
246
|
+
"requireElement": "ITermComparator",
|
|
247
|
+
"parameters": [],
|
|
248
|
+
"memberFields": [
|
|
249
|
+
{
|
|
250
|
+
"@id": "cbtcf:components/ActorTermComparatorFactory.jsonld#ITermComparator__member_orderTypes",
|
|
251
|
+
"memberFieldName": "orderTypes"
|
|
252
|
+
}
|
|
253
|
+
],
|
|
254
|
+
"constructorArguments": []
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
"@id": "cbtcf:components/ActorTermComparatorFactory.jsonld#IActorTermComparatorFactoryOutput",
|
|
258
|
+
"@type": "AbstractClass",
|
|
259
|
+
"requireElement": "IActorTermComparatorFactoryOutput",
|
|
260
|
+
"extends": [
|
|
261
|
+
"cc:components/Actor.jsonld#IActorOutput",
|
|
262
|
+
"cbtcf:components/ActorTermComparatorFactory.jsonld#ITermComparator"
|
|
263
|
+
],
|
|
264
|
+
"parameters": [],
|
|
265
|
+
"constructorArguments": []
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
"@id": "cbtcf:components/ActorTermComparatorFactory.jsonld#IActorTermComparatorFactoryArgs",
|
|
269
|
+
"@type": "AbstractClass",
|
|
270
|
+
"requireElement": "IActorTermComparatorFactoryArgs",
|
|
271
|
+
"extends": [
|
|
272
|
+
{
|
|
273
|
+
"@type": "GenericComponentExtension",
|
|
274
|
+
"component": "cc:components/Actor.jsonld#IActorArgs",
|
|
275
|
+
"genericTypeInstances": [
|
|
276
|
+
"cbtcf:components/ActorTermComparatorFactory.jsonld#IActionTermComparatorFactory",
|
|
277
|
+
"cc:components/Actor.jsonld#IActorTest",
|
|
278
|
+
"cbtcf:components/ActorTermComparatorFactory.jsonld#IActorTermComparatorFactoryOutput",
|
|
279
|
+
{
|
|
280
|
+
"@type": "ParameterRangeGenericTypeReference",
|
|
281
|
+
"parameterRangeGenericType": "cbtcf:components/ActorTermComparatorFactory.jsonld#IActorTermComparatorFactoryArgs__generic_TS"
|
|
282
|
+
}
|
|
283
|
+
]
|
|
284
|
+
}
|
|
285
|
+
],
|
|
286
|
+
"genericTypeParameters": [
|
|
287
|
+
{
|
|
288
|
+
"@id": "cbtcf:components/ActorTermComparatorFactory.jsonld#IActorTermComparatorFactoryArgs__generic_TS",
|
|
289
|
+
"default": {
|
|
290
|
+
"@type": "ParameterRangeUndefined"
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
],
|
|
294
|
+
"parameters": [],
|
|
295
|
+
"memberFields": [
|
|
296
|
+
{
|
|
297
|
+
"@id": "cbtcf:components/ActorTermComparatorFactory.jsonld#IActorTermComparatorFactoryArgs__member_mediatorQueryOperation",
|
|
298
|
+
"memberFieldName": "mediatorQueryOperation"
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
"@id": "cbtcf:components/ActorTermComparatorFactory.jsonld#IActorTermComparatorFactoryArgs__member_mediatorFunctionFactory",
|
|
302
|
+
"memberFieldName": "mediatorFunctionFactory"
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
"@id": "cbtcf:components/ActorTermComparatorFactory.jsonld#IActorTermComparatorFactoryArgs__member_mediatorMergeBindingsContext",
|
|
306
|
+
"memberFieldName": "mediatorMergeBindingsContext"
|
|
307
|
+
}
|
|
308
|
+
],
|
|
309
|
+
"constructorArguments": []
|
|
310
|
+
}
|
|
311
|
+
]
|
|
312
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"@context": [
|
|
3
|
+
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-term-comparator-factory/^3.0.0/components/context.jsonld"
|
|
4
|
+
],
|
|
5
|
+
"@id": "npmd:@comunica/bus-term-comparator-factory",
|
|
6
|
+
"@type": "Module",
|
|
7
|
+
"requireName": "@comunica/bus-term-comparator-factory",
|
|
8
|
+
"import": [
|
|
9
|
+
"cbtcf:components/ActorTermComparatorFactory.jsonld"
|
|
10
|
+
]
|
|
11
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
{
|
|
2
|
+
"@context": [
|
|
3
|
+
"https://linkedsoftwaredependencies.org/bundles/npm/componentsjs/^6.0.0/components/context.jsonld",
|
|
4
|
+
{
|
|
5
|
+
"npmd": "https://linkedsoftwaredependencies.org/bundles/npm/",
|
|
6
|
+
"cbtcf": "npmd:@comunica/bus-term-comparator-factory/^3.0.0/",
|
|
7
|
+
"ActorTermComparatorFactory": {
|
|
8
|
+
"@id": "cbtcf:components/ActorTermComparatorFactory.jsonld#ActorTermComparatorFactory",
|
|
9
|
+
"@prefix": true,
|
|
10
|
+
"@context": {
|
|
11
|
+
"args_mediatorQueryOperation": {
|
|
12
|
+
"@id": "cbtcf:components/ActorTermComparatorFactory.jsonld#ActorTermComparatorFactory_args_mediatorQueryOperation"
|
|
13
|
+
},
|
|
14
|
+
"args_mediatorFunctionFactory": {
|
|
15
|
+
"@id": "cbtcf:components/ActorTermComparatorFactory.jsonld#ActorTermComparatorFactory_args_mediatorFunctionFactory"
|
|
16
|
+
},
|
|
17
|
+
"args_mediatorMergeBindingsContext": {
|
|
18
|
+
"@id": "cbtcf:components/ActorTermComparatorFactory.jsonld#ActorTermComparatorFactory_args_mediatorMergeBindingsContext"
|
|
19
|
+
},
|
|
20
|
+
"args_name": {
|
|
21
|
+
"@id": "cbtcf:components/ActorTermComparatorFactory.jsonld#ActorTermComparatorFactory_args_name"
|
|
22
|
+
},
|
|
23
|
+
"args_bus": {
|
|
24
|
+
"@id": "cbtcf:components/ActorTermComparatorFactory.jsonld#ActorTermComparatorFactory_args_bus"
|
|
25
|
+
},
|
|
26
|
+
"args_busFailMessage": {
|
|
27
|
+
"@id": "cbtcf:components/ActorTermComparatorFactory.jsonld#ActorTermComparatorFactory_args_busFailMessage"
|
|
28
|
+
},
|
|
29
|
+
"args_beforeActors": {
|
|
30
|
+
"@id": "cbtcf:components/ActorTermComparatorFactory.jsonld#ActorTermComparatorFactory_args_beforeActors",
|
|
31
|
+
"@container": "@list"
|
|
32
|
+
},
|
|
33
|
+
"mediatorQueryOperation": {
|
|
34
|
+
"@id": "cbtcf:components/ActorTermComparatorFactory.jsonld#ActorTermComparatorFactory_args_mediatorQueryOperation"
|
|
35
|
+
},
|
|
36
|
+
"mediatorFunctionFactory": {
|
|
37
|
+
"@id": "cbtcf:components/ActorTermComparatorFactory.jsonld#ActorTermComparatorFactory_args_mediatorFunctionFactory"
|
|
38
|
+
},
|
|
39
|
+
"mediatorMergeBindingsContext": {
|
|
40
|
+
"@id": "cbtcf:components/ActorTermComparatorFactory.jsonld#ActorTermComparatorFactory_args_mediatorMergeBindingsContext"
|
|
41
|
+
},
|
|
42
|
+
"name": {
|
|
43
|
+
"@id": "cbtcf:components/ActorTermComparatorFactory.jsonld#ActorTermComparatorFactory_args_name"
|
|
44
|
+
},
|
|
45
|
+
"bus": {
|
|
46
|
+
"@id": "cbtcf:components/ActorTermComparatorFactory.jsonld#ActorTermComparatorFactory_args_bus"
|
|
47
|
+
},
|
|
48
|
+
"busFailMessage": {
|
|
49
|
+
"@id": "cbtcf:components/ActorTermComparatorFactory.jsonld#ActorTermComparatorFactory_args_busFailMessage"
|
|
50
|
+
},
|
|
51
|
+
"beforeActors": {
|
|
52
|
+
"@id": "cbtcf:components/ActorTermComparatorFactory.jsonld#ActorTermComparatorFactory_args_beforeActors",
|
|
53
|
+
"@container": "@list"
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"IActionTermComparatorFactory": {
|
|
58
|
+
"@id": "cbtcf:components/ActorTermComparatorFactory.jsonld#IActionTermComparatorFactory",
|
|
59
|
+
"@prefix": true,
|
|
60
|
+
"@context": {}
|
|
61
|
+
},
|
|
62
|
+
"ITermComparator": {
|
|
63
|
+
"@id": "cbtcf:components/ActorTermComparatorFactory.jsonld#ITermComparator",
|
|
64
|
+
"@prefix": true,
|
|
65
|
+
"@context": {}
|
|
66
|
+
},
|
|
67
|
+
"IActorTermComparatorFactoryOutput": {
|
|
68
|
+
"@id": "cbtcf:components/ActorTermComparatorFactory.jsonld#IActorTermComparatorFactoryOutput",
|
|
69
|
+
"@prefix": true,
|
|
70
|
+
"@context": {}
|
|
71
|
+
},
|
|
72
|
+
"IActorTermComparatorFactoryArgs": {
|
|
73
|
+
"@id": "cbtcf:components/ActorTermComparatorFactory.jsonld#IActorTermComparatorFactoryArgs",
|
|
74
|
+
"@prefix": true,
|
|
75
|
+
"@context": {}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
]
|
|
79
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type { MediatorFunctionFactory, MediatorFunctionFactoryUnsafe } from '@comunica/bus-function-factory';
|
|
2
|
+
import type { MediatorMergeBindingsContext } from '@comunica/bus-merge-bindings-context';
|
|
3
|
+
import type { MediatorQueryOperation } from '@comunica/bus-query-operation';
|
|
4
|
+
import type { IAction, IActorArgs, IActorOutput, IActorTest, Mediate } from '@comunica/core';
|
|
5
|
+
import { Actor } from '@comunica/core';
|
|
6
|
+
import type * as RDF from '@rdfjs/types';
|
|
7
|
+
/**
|
|
8
|
+
* A comunica actor for term-comparator-factory events.
|
|
9
|
+
*
|
|
10
|
+
* Actor types:
|
|
11
|
+
* * Input: IActionTermComparatorFactory: the Query Operation Mediator and Function Factory Mediator.
|
|
12
|
+
* * Test: <none>
|
|
13
|
+
* * Output: IActorTermComparatorFactoryOutput: An object that can order RDF terms.
|
|
14
|
+
*
|
|
15
|
+
* @see IActionTermComparatorFactory
|
|
16
|
+
* @see IActorTermComparatorFactoryOutput
|
|
17
|
+
*/
|
|
18
|
+
export declare abstract class ActorTermComparatorFactory<TS = undefined> extends Actor<IActionTermComparatorFactory, IActorTest, IActorTermComparatorFactoryOutput, TS> {
|
|
19
|
+
protected readonly mediatorQueryOperation: MediatorQueryOperation;
|
|
20
|
+
protected readonly mediatorFunctionFactory: MediatorFunctionFactory;
|
|
21
|
+
protected readonly mediatorMergeBindingsContext: MediatorMergeBindingsContext;
|
|
22
|
+
/**
|
|
23
|
+
* @param args - @defaultNested {<default_bus> a <cc:components/Bus.jsonld#Bus>} bus
|
|
24
|
+
*/
|
|
25
|
+
constructor(args: IActorTermComparatorFactoryArgs<TS>);
|
|
26
|
+
}
|
|
27
|
+
export interface IActionTermComparatorFactory extends IAction {
|
|
28
|
+
}
|
|
29
|
+
export interface ITermComparator {
|
|
30
|
+
/**
|
|
31
|
+
* Orders two RDF terms according to: https://www.w3.org/TR/sparql11-query/#modOrderBy
|
|
32
|
+
* @param termA the first term
|
|
33
|
+
* @param termB the second term
|
|
34
|
+
*/
|
|
35
|
+
orderTypes: (termA: RDF.Term | undefined, termB: RDF.Term | undefined) => -1 | 0 | 1;
|
|
36
|
+
}
|
|
37
|
+
export interface IActorTermComparatorFactoryOutput extends IActorOutput, ITermComparator {
|
|
38
|
+
}
|
|
39
|
+
export interface IActorTermComparatorFactoryArgs<TS = undefined> extends IActorArgs<IActionTermComparatorFactory, IActorTest, IActorTermComparatorFactoryOutput, TS> {
|
|
40
|
+
mediatorQueryOperation: MediatorQueryOperation;
|
|
41
|
+
mediatorFunctionFactory: MediatorFunctionFactoryUnsafe;
|
|
42
|
+
/**
|
|
43
|
+
* A mediator for creating binding context merge handlers
|
|
44
|
+
*/
|
|
45
|
+
mediatorMergeBindingsContext: MediatorMergeBindingsContext;
|
|
46
|
+
}
|
|
47
|
+
export type MediatorTermComparatorFactory = Mediate<IActionTermComparatorFactory, IActorTermComparatorFactoryOutput>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ActorTermComparatorFactory = void 0;
|
|
4
|
+
const core_1 = require("@comunica/core");
|
|
5
|
+
/**
|
|
6
|
+
* A comunica actor for term-comparator-factory events.
|
|
7
|
+
*
|
|
8
|
+
* Actor types:
|
|
9
|
+
* * Input: IActionTermComparatorFactory: the Query Operation Mediator and Function Factory Mediator.
|
|
10
|
+
* * Test: <none>
|
|
11
|
+
* * Output: IActorTermComparatorFactoryOutput: An object that can order RDF terms.
|
|
12
|
+
*
|
|
13
|
+
* @see IActionTermComparatorFactory
|
|
14
|
+
* @see IActorTermComparatorFactoryOutput
|
|
15
|
+
*/
|
|
16
|
+
class ActorTermComparatorFactory extends core_1.Actor {
|
|
17
|
+
/**
|
|
18
|
+
* @param args - @defaultNested {<default_bus> a <cc:components/Bus.jsonld#Bus>} bus
|
|
19
|
+
*/
|
|
20
|
+
constructor(args) {
|
|
21
|
+
super(args);
|
|
22
|
+
this.mediatorQueryOperation = args.mediatorQueryOperation;
|
|
23
|
+
this.mediatorFunctionFactory = args.mediatorFunctionFactory;
|
|
24
|
+
this.mediatorMergeBindingsContext = args.mediatorMergeBindingsContext;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
exports.ActorTermComparatorFactory = ActorTermComparatorFactory;
|
|
28
|
+
//# sourceMappingURL=ActorTermComparatorFactory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ActorTermComparatorFactory.js","sourceRoot":"","sources":["ActorTermComparatorFactory.ts"],"names":[],"mappings":";;;AAIA,yCAAuC;AAGvC;;;;;;;;;;GAUG;AACH,MAAsB,0BAA2C,SAC/D,YAAsF;IAKtF;;OAEG;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;AAfD,gEAeC","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 - @defaultNested {<default_bus> a <cc:components/Bus.jsonld#Bus>} bus\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/lib/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ActorTermComparatorFactory';
|
package/lib/index.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./ActorTermComparatorFactory"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+DAA6C","sourcesContent":["export * from './ActorTermComparatorFactory';\n"]}
|
package/package.json
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@comunica/bus-term-comparator-factory",
|
|
3
|
+
"version": "3.2.4-alpha.47.0",
|
|
4
|
+
"description": "A comunica bus for term-comparator-factory events.",
|
|
5
|
+
"lsd:module": true,
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"homepage": "https://comunica.dev/",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "https://github.com/comunica/comunica.git",
|
|
11
|
+
"directory": "packages/bus-term-comparator-factory"
|
|
12
|
+
},
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/comunica/comunica/issues"
|
|
15
|
+
},
|
|
16
|
+
"keywords": [
|
|
17
|
+
"comunica",
|
|
18
|
+
"bus",
|
|
19
|
+
"term-comparator-factory"
|
|
20
|
+
],
|
|
21
|
+
"sideEffects": false,
|
|
22
|
+
"main": "lib/index.js",
|
|
23
|
+
"typings": "lib/index",
|
|
24
|
+
"publishConfig": {
|
|
25
|
+
"access": "public"
|
|
26
|
+
},
|
|
27
|
+
"files": [
|
|
28
|
+
"components",
|
|
29
|
+
"lib/**/*.d.ts",
|
|
30
|
+
"lib/**/*.js",
|
|
31
|
+
"lib/**/*.js.map"
|
|
32
|
+
],
|
|
33
|
+
"scripts": {
|
|
34
|
+
"build": "npm run build:ts && npm run build:components",
|
|
35
|
+
"build:ts": "node \"../../node_modules/typescript/bin/tsc\"",
|
|
36
|
+
"build:components": "componentsjs-generator"
|
|
37
|
+
},
|
|
38
|
+
"dependencies": {
|
|
39
|
+
"@comunica/bus-function-factory": "3.2.4-alpha.47.0",
|
|
40
|
+
"@comunica/bus-merge-bindings-context": "3.2.4-alpha.47.0",
|
|
41
|
+
"@comunica/bus-query-operation": "3.2.4-alpha.47.0",
|
|
42
|
+
"@comunica/core": "3.2.4-alpha.47.0",
|
|
43
|
+
"@rdfjs/types": "*"
|
|
44
|
+
},
|
|
45
|
+
"gitHead": "85bd4c5cf07dfc293ebbc3a1416b70e2db8bfc48"
|
|
46
|
+
}
|