@comunica/actor-function-factory-term-greater-than 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 +35 -0
- package/components/ActorFunctionFactoryTermGreaterThan.jsonld +186 -0
- package/components/components.jsonld +11 -0
- package/components/context.jsonld +47 -0
- package/lib/ActorFunctionFactoryTermGreaterThan.d.ts +16 -0
- package/lib/ActorFunctionFactoryTermGreaterThan.js +30 -0
- package/lib/ActorFunctionFactoryTermGreaterThan.js.map +1 -0
- package/lib/TermFunctionGreaterThan.d.ts +6 -0
- package/lib/TermFunctionGreaterThan.js +21 -0
- package/lib/TermFunctionGreaterThan.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 +44 -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,35 @@
|
|
|
1
|
+
# Comunica Term Function Greater Than Function Factory Actor
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/@comunica/actor-function-factory-term-greater-than)
|
|
4
|
+
|
|
5
|
+
A comunica Term Function Greater Than Function Factory Actor.
|
|
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/actor-function-factory-term-greater-than
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Configure
|
|
19
|
+
|
|
20
|
+
After installing, this package can be added to your engine's configuration as follows:
|
|
21
|
+
```text
|
|
22
|
+
{
|
|
23
|
+
"@context": [
|
|
24
|
+
...
|
|
25
|
+
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-function-factory-term-greater-than/^3.0.0/components/context.jsonld"
|
|
26
|
+
],
|
|
27
|
+
"actors": [
|
|
28
|
+
...
|
|
29
|
+
{
|
|
30
|
+
"@id": "urn:comunica:default:function-factory/actors#term-function-greater-than",
|
|
31
|
+
"@type": "ActorFunctionFactoryTermGreaterThan"
|
|
32
|
+
}
|
|
33
|
+
]
|
|
34
|
+
}
|
|
35
|
+
```
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
{
|
|
2
|
+
"@context": [
|
|
3
|
+
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-function-factory-term-greater-than/^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/actor-function-factory-term-greater-than",
|
|
8
|
+
"components": [
|
|
9
|
+
{
|
|
10
|
+
"@id": "cafftgt:components/ActorFunctionFactoryTermGreaterThan.jsonld#ActorFunctionFactoryTermGreaterThan",
|
|
11
|
+
"@type": "Class",
|
|
12
|
+
"requireElement": "ActorFunctionFactoryTermGreaterThan",
|
|
13
|
+
"extends": [
|
|
14
|
+
"cbff:components/ActorFunctionFactoryDedicated.jsonld#ActorFunctionFactoryDedicated"
|
|
15
|
+
],
|
|
16
|
+
"comment": "A comunica TermFunctionGreaterThan Function Factory Actor.",
|
|
17
|
+
"parameters": [
|
|
18
|
+
{
|
|
19
|
+
"@id": "cafftgt:components/ActorFunctionFactoryTermGreaterThan.jsonld#ActorFunctionFactoryTermGreaterThan_args_mediatorFunctionFactory",
|
|
20
|
+
"range": "cc:components/Mediator.jsonld#Mediator"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"@id": "cafftgt:components/ActorFunctionFactoryTermGreaterThan.jsonld#ActorFunctionFactoryTermGreaterThan_args_name",
|
|
24
|
+
"range": "xsd:string",
|
|
25
|
+
"default": {
|
|
26
|
+
"@id": "rdf:subject"
|
|
27
|
+
},
|
|
28
|
+
"comment": "The name for this actor."
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"@id": "cafftgt:components/ActorFunctionFactoryTermGreaterThan.jsonld#ActorFunctionFactoryTermGreaterThan_args_bus",
|
|
32
|
+
"range": {
|
|
33
|
+
"@type": "ParameterRangeGenericComponent",
|
|
34
|
+
"component": "cc:components/Bus.jsonld#Bus",
|
|
35
|
+
"genericTypeInstances": [
|
|
36
|
+
{
|
|
37
|
+
"@type": "ParameterRangeGenericComponent",
|
|
38
|
+
"component": "cc:components/Actor.jsonld#Actor",
|
|
39
|
+
"genericTypeInstances": [
|
|
40
|
+
{
|
|
41
|
+
"@type": "ParameterRangeGenericTypeReference",
|
|
42
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_I"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"@type": "ParameterRangeGenericTypeReference",
|
|
46
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_T"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"@type": "ParameterRangeGenericTypeReference",
|
|
50
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_O"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"@type": "ParameterRangeGenericTypeReference",
|
|
54
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_TS"
|
|
55
|
+
}
|
|
56
|
+
]
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"@type": "ParameterRangeGenericTypeReference",
|
|
60
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_I"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"@type": "ParameterRangeGenericTypeReference",
|
|
64
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_T"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"@type": "ParameterRangeGenericTypeReference",
|
|
68
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_O"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"@type": "ParameterRangeGenericTypeReference",
|
|
72
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_TS"
|
|
73
|
+
}
|
|
74
|
+
]
|
|
75
|
+
},
|
|
76
|
+
"default": {
|
|
77
|
+
"@id": "cbff:components/ActorFunctionFactory.jsonld#ActorFunctionFactory_default_bus",
|
|
78
|
+
"@type": "cbff:components/BusFunctionFactory.jsonld#BusFunctionFactory"
|
|
79
|
+
},
|
|
80
|
+
"comment": "The bus this actor subscribes to."
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"@id": "cafftgt:components/ActorFunctionFactoryTermGreaterThan.jsonld#ActorFunctionFactoryTermGreaterThan_args_busFailMessage",
|
|
84
|
+
"range": {
|
|
85
|
+
"@type": "ParameterRangeUnion",
|
|
86
|
+
"parameterRangeElements": [
|
|
87
|
+
"xsd:string",
|
|
88
|
+
{
|
|
89
|
+
"@type": "ParameterRangeUndefined"
|
|
90
|
+
}
|
|
91
|
+
]
|
|
92
|
+
},
|
|
93
|
+
"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}\""
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"@id": "cafftgt:components/ActorFunctionFactoryTermGreaterThan.jsonld#ActorFunctionFactoryTermGreaterThan_args_beforeActors",
|
|
97
|
+
"range": {
|
|
98
|
+
"@type": "ParameterRangeUnion",
|
|
99
|
+
"parameterRangeElements": [
|
|
100
|
+
{
|
|
101
|
+
"@type": "ParameterRangeArray",
|
|
102
|
+
"parameterRangeValue": {
|
|
103
|
+
"@type": "ParameterRangeGenericComponent",
|
|
104
|
+
"component": "cc:components/Actor.jsonld#Actor",
|
|
105
|
+
"genericTypeInstances": [
|
|
106
|
+
{
|
|
107
|
+
"@type": "ParameterRangeGenericTypeReference",
|
|
108
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_I"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"@type": "ParameterRangeGenericTypeReference",
|
|
112
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_T"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"@type": "ParameterRangeGenericTypeReference",
|
|
116
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_O"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"@type": "ParameterRangeGenericTypeReference",
|
|
120
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^3.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_TS"
|
|
121
|
+
}
|
|
122
|
+
]
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"@type": "ParameterRangeUndefined"
|
|
127
|
+
}
|
|
128
|
+
]
|
|
129
|
+
},
|
|
130
|
+
"comment": "Actor that must be registered in the bus before this actor."
|
|
131
|
+
}
|
|
132
|
+
],
|
|
133
|
+
"memberFields": [
|
|
134
|
+
{
|
|
135
|
+
"@id": "cafftgt:components/ActorFunctionFactoryTermGreaterThan.jsonld#ActorFunctionFactoryTermGreaterThan__member_mediatorFunctionFactory",
|
|
136
|
+
"memberFieldName": "mediatorFunctionFactory"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"@id": "cafftgt:components/ActorFunctionFactoryTermGreaterThan.jsonld#ActorFunctionFactoryTermGreaterThan__member_constructor",
|
|
140
|
+
"memberFieldName": "constructor"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"@id": "cafftgt:components/ActorFunctionFactoryTermGreaterThan.jsonld#ActorFunctionFactoryTermGreaterThan__member_run",
|
|
144
|
+
"memberFieldName": "run"
|
|
145
|
+
}
|
|
146
|
+
],
|
|
147
|
+
"constructorArguments": [
|
|
148
|
+
{
|
|
149
|
+
"@id": "cafftgt:components/ActorFunctionFactoryTermGreaterThan.jsonld#ActorFunctionFactoryTermGreaterThan_args__constructorArgument",
|
|
150
|
+
"fields": [
|
|
151
|
+
{
|
|
152
|
+
"keyRaw": "mediatorFunctionFactory",
|
|
153
|
+
"value": {
|
|
154
|
+
"@id": "cafftgt:components/ActorFunctionFactoryTermGreaterThan.jsonld#ActorFunctionFactoryTermGreaterThan_args_mediatorFunctionFactory"
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"keyRaw": "name",
|
|
159
|
+
"value": {
|
|
160
|
+
"@id": "cafftgt:components/ActorFunctionFactoryTermGreaterThan.jsonld#ActorFunctionFactoryTermGreaterThan_args_name"
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"keyRaw": "bus",
|
|
165
|
+
"value": {
|
|
166
|
+
"@id": "cafftgt:components/ActorFunctionFactoryTermGreaterThan.jsonld#ActorFunctionFactoryTermGreaterThan_args_bus"
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"keyRaw": "busFailMessage",
|
|
171
|
+
"value": {
|
|
172
|
+
"@id": "cafftgt:components/ActorFunctionFactoryTermGreaterThan.jsonld#ActorFunctionFactoryTermGreaterThan_args_busFailMessage"
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"keyRaw": "beforeActors",
|
|
177
|
+
"value": {
|
|
178
|
+
"@id": "cafftgt:components/ActorFunctionFactoryTermGreaterThan.jsonld#ActorFunctionFactoryTermGreaterThan_args_beforeActors"
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
]
|
|
182
|
+
}
|
|
183
|
+
]
|
|
184
|
+
}
|
|
185
|
+
]
|
|
186
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"@context": [
|
|
3
|
+
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-function-factory-term-greater-than/^3.0.0/components/context.jsonld"
|
|
4
|
+
],
|
|
5
|
+
"@id": "npmd:@comunica/actor-function-factory-term-greater-than",
|
|
6
|
+
"@type": "Module",
|
|
7
|
+
"requireName": "@comunica/actor-function-factory-term-greater-than",
|
|
8
|
+
"import": [
|
|
9
|
+
"cafftgt:components/ActorFunctionFactoryTermGreaterThan.jsonld"
|
|
10
|
+
]
|
|
11
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
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
|
+
"cafftgt": "npmd:@comunica/actor-function-factory-term-greater-than/^3.0.0/",
|
|
7
|
+
"ActorFunctionFactoryTermGreaterThan": {
|
|
8
|
+
"@id": "cafftgt:components/ActorFunctionFactoryTermGreaterThan.jsonld#ActorFunctionFactoryTermGreaterThan",
|
|
9
|
+
"@prefix": true,
|
|
10
|
+
"@context": {
|
|
11
|
+
"args_mediatorFunctionFactory": {
|
|
12
|
+
"@id": "cafftgt:components/ActorFunctionFactoryTermGreaterThan.jsonld#ActorFunctionFactoryTermGreaterThan_args_mediatorFunctionFactory"
|
|
13
|
+
},
|
|
14
|
+
"args_name": {
|
|
15
|
+
"@id": "cafftgt:components/ActorFunctionFactoryTermGreaterThan.jsonld#ActorFunctionFactoryTermGreaterThan_args_name"
|
|
16
|
+
},
|
|
17
|
+
"args_bus": {
|
|
18
|
+
"@id": "cafftgt:components/ActorFunctionFactoryTermGreaterThan.jsonld#ActorFunctionFactoryTermGreaterThan_args_bus"
|
|
19
|
+
},
|
|
20
|
+
"args_busFailMessage": {
|
|
21
|
+
"@id": "cafftgt:components/ActorFunctionFactoryTermGreaterThan.jsonld#ActorFunctionFactoryTermGreaterThan_args_busFailMessage"
|
|
22
|
+
},
|
|
23
|
+
"args_beforeActors": {
|
|
24
|
+
"@id": "cafftgt:components/ActorFunctionFactoryTermGreaterThan.jsonld#ActorFunctionFactoryTermGreaterThan_args_beforeActors",
|
|
25
|
+
"@container": "@list"
|
|
26
|
+
},
|
|
27
|
+
"mediatorFunctionFactory": {
|
|
28
|
+
"@id": "cafftgt:components/ActorFunctionFactoryTermGreaterThan.jsonld#ActorFunctionFactoryTermGreaterThan_args_mediatorFunctionFactory"
|
|
29
|
+
},
|
|
30
|
+
"name": {
|
|
31
|
+
"@id": "cafftgt:components/ActorFunctionFactoryTermGreaterThan.jsonld#ActorFunctionFactoryTermGreaterThan_args_name"
|
|
32
|
+
},
|
|
33
|
+
"bus": {
|
|
34
|
+
"@id": "cafftgt:components/ActorFunctionFactoryTermGreaterThan.jsonld#ActorFunctionFactoryTermGreaterThan_args_bus"
|
|
35
|
+
},
|
|
36
|
+
"busFailMessage": {
|
|
37
|
+
"@id": "cafftgt:components/ActorFunctionFactoryTermGreaterThan.jsonld#ActorFunctionFactoryTermGreaterThan_args_busFailMessage"
|
|
38
|
+
},
|
|
39
|
+
"beforeActors": {
|
|
40
|
+
"@id": "cafftgt:components/ActorFunctionFactoryTermGreaterThan.jsonld#ActorFunctionFactoryTermGreaterThan_args_beforeActors",
|
|
41
|
+
"@container": "@list"
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
]
|
|
47
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { IActionFunctionFactory, IActorFunctionFactoryArgs, IActorFunctionFactoryOutput, IActorFunctionFactoryOutputTerm, MediatorFunctionFactoryUnsafe } from '@comunica/bus-function-factory';
|
|
2
|
+
import { ActorFunctionFactoryDedicated } from '@comunica/bus-function-factory';
|
|
3
|
+
interface IActorFunctionFactoryTermFunctionGreaterThanArgs extends IActorFunctionFactoryArgs {
|
|
4
|
+
mediatorFunctionFactory: MediatorFunctionFactoryUnsafe;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* A comunica TermFunctionGreaterThan Function Factory Actor.
|
|
8
|
+
*/
|
|
9
|
+
export declare class ActorFunctionFactoryTermGreaterThan extends ActorFunctionFactoryDedicated {
|
|
10
|
+
private readonly mediatorFunctionFactory;
|
|
11
|
+
constructor(args: IActorFunctionFactoryTermFunctionGreaterThanArgs);
|
|
12
|
+
run<T extends IActionFunctionFactory>(args: T): Promise<T extends {
|
|
13
|
+
requireTermExpression: true;
|
|
14
|
+
} ? IActorFunctionFactoryOutputTerm : IActorFunctionFactoryOutput>;
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ActorFunctionFactoryTermGreaterThan = void 0;
|
|
4
|
+
const bus_function_factory_1 = require("@comunica/bus-function-factory");
|
|
5
|
+
const utils_expression_evaluator_1 = require("@comunica/utils-expression-evaluator");
|
|
6
|
+
const TermFunctionGreaterThan_1 = require("./TermFunctionGreaterThan");
|
|
7
|
+
/**
|
|
8
|
+
* A comunica TermFunctionGreaterThan Function Factory Actor.
|
|
9
|
+
*/
|
|
10
|
+
class ActorFunctionFactoryTermGreaterThan extends bus_function_factory_1.ActorFunctionFactoryDedicated {
|
|
11
|
+
constructor(args) {
|
|
12
|
+
super({
|
|
13
|
+
...args,
|
|
14
|
+
functionNames: [utils_expression_evaluator_1.SparqlOperator.GT],
|
|
15
|
+
termFunction: true,
|
|
16
|
+
});
|
|
17
|
+
this.mediatorFunctionFactory = args.mediatorFunctionFactory;
|
|
18
|
+
}
|
|
19
|
+
async run(args) {
|
|
20
|
+
const lessThanFunction = await this.mediatorFunctionFactory.mediate({
|
|
21
|
+
functionName: utils_expression_evaluator_1.SparqlOperator.LT,
|
|
22
|
+
requireTermExpression: true,
|
|
23
|
+
context: args.context,
|
|
24
|
+
arguments: args.arguments,
|
|
25
|
+
});
|
|
26
|
+
return new TermFunctionGreaterThan_1.TermFunctionGreaterThan(lessThanFunction);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
exports.ActorFunctionFactoryTermGreaterThan = ActorFunctionFactoryTermGreaterThan;
|
|
30
|
+
//# sourceMappingURL=ActorFunctionFactoryTermGreaterThan.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ActorFunctionFactoryTermGreaterThan.js","sourceRoot":"","sources":["ActorFunctionFactoryTermGreaterThan.ts"],"names":[],"mappings":";;;AAQA,yEAEwC;AAExC,qFAAsE;AACtE,uEAAoE;AAMpE;;GAEG;AACH,MAAa,mCAAoC,SAAQ,oDAA6B;IAGpF,YAAmB,IAAsD;QACvE,KAAK,CAAC;YACJ,GAAG,IAAI;YACP,aAAa,EAAE,CAAE,2CAAc,CAAC,EAAE,CAAE;YACpC,YAAY,EAAE,IAAI;SACnB,CAAC,CAAC;QACH,IAAI,CAAC,uBAAuB,GAA6B,IAAI,CAAC,uBAAuB,CAAC;IACxF,CAAC;IAEM,KAAK,CAAC,GAAG,CAAmC,IAAO;QAExD,MAAM,gBAAgB,GAAG,MAAM,IAAI,CAAC,uBAAuB,CAAC,OAAO,CAAC;YAClE,YAAY,EAAE,2CAAc,CAAC,EAAE;YAC/B,qBAAqB,EAAE,IAAI;YAC3B,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,SAAS,EAAE,IAAI,CAAC,SAAS;SAC1B,CAAC,CAAC;QAEH,OAAO,IAAI,iDAAuB,CAAC,gBAAgB,CAAC,CAAC;IACvD,CAAC;CACF;AAvBD,kFAuBC","sourcesContent":["import type {\n IActionFunctionFactory,\n IActorFunctionFactoryArgs,\n IActorFunctionFactoryOutput,\n IActorFunctionFactoryOutputTerm,\n MediatorFunctionFactory,\n MediatorFunctionFactoryUnsafe,\n} from '@comunica/bus-function-factory';\nimport {\n ActorFunctionFactoryDedicated,\n} from '@comunica/bus-function-factory';\n\nimport { SparqlOperator } from '@comunica/utils-expression-evaluator';\nimport { TermFunctionGreaterThan } from './TermFunctionGreaterThan';\n\ninterface IActorFunctionFactoryTermFunctionGreaterThanArgs extends IActorFunctionFactoryArgs {\n mediatorFunctionFactory: MediatorFunctionFactoryUnsafe;\n}\n\n/**\n * A comunica TermFunctionGreaterThan Function Factory Actor.\n */\nexport class ActorFunctionFactoryTermGreaterThan extends ActorFunctionFactoryDedicated {\n private readonly mediatorFunctionFactory: MediatorFunctionFactory;\n\n public constructor(args: IActorFunctionFactoryTermFunctionGreaterThanArgs) {\n super({\n ...args,\n functionNames: [ SparqlOperator.GT ],\n termFunction: true,\n });\n this.mediatorFunctionFactory = <MediatorFunctionFactory> args.mediatorFunctionFactory;\n }\n\n public async run<T extends IActionFunctionFactory>(args: T):\n Promise<T extends { requireTermExpression: true } ? IActorFunctionFactoryOutputTerm : IActorFunctionFactoryOutput> {\n const lessThanFunction = await this.mediatorFunctionFactory.mediate({\n functionName: SparqlOperator.LT,\n requireTermExpression: true,\n context: args.context,\n arguments: args.arguments,\n });\n\n return new TermFunctionGreaterThan(lessThanFunction);\n }\n}\n"]}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ITermFunction } from '@comunica/bus-function-factory';
|
|
2
|
+
import { TermFunctionBase } from '@comunica/bus-function-factory';
|
|
3
|
+
export declare class TermFunctionGreaterThan extends TermFunctionBase {
|
|
4
|
+
private readonly lessThanFunction;
|
|
5
|
+
constructor(lessThanFunction: ITermFunction);
|
|
6
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TermFunctionGreaterThan = void 0;
|
|
4
|
+
const bus_function_factory_1 = require("@comunica/bus-function-factory");
|
|
5
|
+
const utils_expression_evaluator_1 = require("@comunica/utils-expression-evaluator");
|
|
6
|
+
class TermFunctionGreaterThan extends bus_function_factory_1.TermFunctionBase {
|
|
7
|
+
constructor(lessThanFunction) {
|
|
8
|
+
super({
|
|
9
|
+
arity: 2,
|
|
10
|
+
operator: utils_expression_evaluator_1.SparqlOperator.GT,
|
|
11
|
+
overloads: (0, utils_expression_evaluator_1.declare)(utils_expression_evaluator_1.SparqlOperator.GT)
|
|
12
|
+
.set(['term', 'term'], expressionEvaluator => ([first, second]) =>
|
|
13
|
+
// X < Y -> Y > X
|
|
14
|
+
this.lessThanFunction.applyOnTerms([second, first], expressionEvaluator))
|
|
15
|
+
.collect(),
|
|
16
|
+
});
|
|
17
|
+
this.lessThanFunction = lessThanFunction;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.TermFunctionGreaterThan = TermFunctionGreaterThan;
|
|
21
|
+
//# sourceMappingURL=TermFunctionGreaterThan.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TermFunctionGreaterThan.js","sourceRoot":"","sources":["TermFunctionGreaterThan.ts"],"names":[],"mappings":";;;AACA,yEAAkE;AAElE,qFAG8C;AAE9C,MAAa,uBAAwB,SAAQ,uCAAgB;IAC3D,YAAoC,gBAA+B;QACjE,KAAK,CAAC;YACJ,KAAK,EAAE,CAAC;YACR,QAAQ,EAAE,2CAAc,CAAC,EAAE;YAC3B,SAAS,EAAE,IAAA,oCAAO,EAAC,2CAAc,CAAC,EAAE,CAAC;iBAClC,GAAG,CAAC,CAAE,MAAM,EAAE,MAAM,CAAE,EAAE,mBAAmB,CAAC,EAAE,CAC7C,CAAC,CAAE,KAAK,EAAE,MAAM,CAAE,EAAE,EAAE;YACtB,iBAAiB;YACf,IAAI,CAAC,gBAAgB,CAAC,YAAY,CAAC,CAAE,MAAM,EAAE,KAAK,CAAE,EAAE,mBAAmB,CAAC,CAAC;iBAC9E,OAAO,EAAE;SACb,CAAC,CAAC;QAV+B,qBAAgB,GAAhB,gBAAgB,CAAe;IAWnE,CAAC;CACF;AAbD,0DAaC","sourcesContent":["import type { ITermFunction } from '@comunica/bus-function-factory';\nimport { TermFunctionBase } from '@comunica/bus-function-factory';\n\nimport {\n declare,\n SparqlOperator,\n} from '@comunica/utils-expression-evaluator';\n\nexport class TermFunctionGreaterThan extends TermFunctionBase {\n public constructor(private readonly lessThanFunction: ITermFunction) {\n super({\n arity: 2,\n operator: SparqlOperator.GT,\n overloads: declare(SparqlOperator.GT)\n .set([ 'term', 'term' ], expressionEvaluator =>\n ([ first, second ]) =>\n // X < Y -> Y > X\n this.lessThanFunction.applyOnTerms([ second, first ], expressionEvaluator))\n .collect(),\n });\n }\n}\n"]}
|
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ActorFunctionFactoryTermGreaterThan';
|
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("./ActorFunctionFactoryTermGreaterThan"), 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,wEAAsD","sourcesContent":["export * from './ActorFunctionFactoryTermGreaterThan';\n"]}
|
package/package.json
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@comunica/actor-function-factory-term-greater-than",
|
|
3
|
+
"version": "3.2.4-alpha.47.0",
|
|
4
|
+
"description": "A term-greater-than function-factory actor",
|
|
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/actor-function-factory-term-greater-than"
|
|
12
|
+
},
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/comunica/comunica/issues"
|
|
15
|
+
},
|
|
16
|
+
"keywords": [
|
|
17
|
+
"comunica",
|
|
18
|
+
"actor",
|
|
19
|
+
"function-factory",
|
|
20
|
+
"term-function-greater-than"
|
|
21
|
+
],
|
|
22
|
+
"sideEffects": false,
|
|
23
|
+
"main": "lib/index.js",
|
|
24
|
+
"typings": "lib/index",
|
|
25
|
+
"publishConfig": {
|
|
26
|
+
"access": "public"
|
|
27
|
+
},
|
|
28
|
+
"files": [
|
|
29
|
+
"components",
|
|
30
|
+
"lib/**/*.d.ts",
|
|
31
|
+
"lib/**/*.js",
|
|
32
|
+
"lib/**/*.js.map"
|
|
33
|
+
],
|
|
34
|
+
"scripts": {
|
|
35
|
+
"build": "yarn run build:ts && yarn run build:components",
|
|
36
|
+
"build:ts": "node \"../../node_modules/typescript/bin/tsc\"",
|
|
37
|
+
"build:components": "componentsjs-generator"
|
|
38
|
+
},
|
|
39
|
+
"dependencies": {
|
|
40
|
+
"@comunica/bus-function-factory": "3.2.4-alpha.47.0",
|
|
41
|
+
"@comunica/utils-expression-evaluator": "3.2.4-alpha.47.0"
|
|
42
|
+
},
|
|
43
|
+
"gitHead": "85bd4c5cf07dfc293ebbc3a1416b70e2db8bfc48"
|
|
44
|
+
}
|