@comunica/actor-function-factory-expression-not-in 4.5.0 → 5.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.
- package/README.md +1 -1
- package/components/ActorFunctionFactoryExpressionNotIn.jsonld +15 -15
- package/components/components.jsonld +1 -1
- package/components/context.jsonld +1 -1
- package/lib/ActorFunctionFactoryExpressionNotIn.d.ts +0 -0
- package/lib/ActorFunctionFactoryExpressionNotIn.js +1 -0
- package/lib/ActorFunctionFactoryExpressionNotIn.js.map +1 -1
- package/lib/ExpressionFunctionNotIn.d.ts +0 -0
- package/lib/ExpressionFunctionNotIn.js +1 -0
- package/lib/ExpressionFunctionNotIn.js.map +1 -1
- package/lib/index.d.ts +0 -0
- package/lib/index.js +0 -0
- package/lib/index.js.map +0 -0
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -24,7 +24,7 @@ After installing, this package can be added to your engine's configuration as fo
|
|
|
24
24
|
{
|
|
25
25
|
"@context": [
|
|
26
26
|
...
|
|
27
|
-
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-function-factory-expression-not-in/^
|
|
27
|
+
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-function-factory-expression-not-in/^5.0.0/components/context.jsonld"
|
|
28
28
|
],
|
|
29
29
|
"actors": [
|
|
30
30
|
...
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"@context": [
|
|
3
|
-
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-function-factory-expression-not-in/^
|
|
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/actor-function-factory-expression-not-in/^5.0.0/components/context.jsonld",
|
|
4
|
+
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/core/^5.0.0/components/context.jsonld",
|
|
5
|
+
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-function-factory/^5.0.0/components/context.jsonld"
|
|
6
6
|
],
|
|
7
7
|
"@id": "npmd:@comunica/actor-function-factory-expression-not-in",
|
|
8
8
|
"components": [
|
|
@@ -39,37 +39,37 @@
|
|
|
39
39
|
"genericTypeInstances": [
|
|
40
40
|
{
|
|
41
41
|
"@type": "ParameterRangeGenericTypeReference",
|
|
42
|
-
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^
|
|
42
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^5.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_I"
|
|
43
43
|
},
|
|
44
44
|
{
|
|
45
45
|
"@type": "ParameterRangeGenericTypeReference",
|
|
46
|
-
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^
|
|
46
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^5.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_T"
|
|
47
47
|
},
|
|
48
48
|
{
|
|
49
49
|
"@type": "ParameterRangeGenericTypeReference",
|
|
50
|
-
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^
|
|
50
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^5.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_O"
|
|
51
51
|
},
|
|
52
52
|
{
|
|
53
53
|
"@type": "ParameterRangeGenericTypeReference",
|
|
54
|
-
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^
|
|
54
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^5.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_TS"
|
|
55
55
|
}
|
|
56
56
|
]
|
|
57
57
|
},
|
|
58
58
|
{
|
|
59
59
|
"@type": "ParameterRangeGenericTypeReference",
|
|
60
|
-
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^
|
|
60
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^5.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_I"
|
|
61
61
|
},
|
|
62
62
|
{
|
|
63
63
|
"@type": "ParameterRangeGenericTypeReference",
|
|
64
|
-
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^
|
|
64
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^5.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_T"
|
|
65
65
|
},
|
|
66
66
|
{
|
|
67
67
|
"@type": "ParameterRangeGenericTypeReference",
|
|
68
|
-
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^
|
|
68
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^5.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_O"
|
|
69
69
|
},
|
|
70
70
|
{
|
|
71
71
|
"@type": "ParameterRangeGenericTypeReference",
|
|
72
|
-
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^
|
|
72
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^5.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_TS"
|
|
73
73
|
}
|
|
74
74
|
]
|
|
75
75
|
},
|
|
@@ -106,19 +106,19 @@
|
|
|
106
106
|
"genericTypeInstances": [
|
|
107
107
|
{
|
|
108
108
|
"@type": "ParameterRangeGenericTypeReference",
|
|
109
|
-
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^
|
|
109
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^5.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_I"
|
|
110
110
|
},
|
|
111
111
|
{
|
|
112
112
|
"@type": "ParameterRangeGenericTypeReference",
|
|
113
|
-
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^
|
|
113
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^5.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_T"
|
|
114
114
|
},
|
|
115
115
|
{
|
|
116
116
|
"@type": "ParameterRangeGenericTypeReference",
|
|
117
|
-
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^
|
|
117
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^5.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_O"
|
|
118
118
|
},
|
|
119
119
|
{
|
|
120
120
|
"@type": "ParameterRangeGenericTypeReference",
|
|
121
|
-
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^
|
|
121
|
+
"parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^5.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_TS"
|
|
122
122
|
}
|
|
123
123
|
]
|
|
124
124
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"@context": [
|
|
3
|
-
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-function-factory-expression-not-in/^
|
|
3
|
+
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-function-factory-expression-not-in/^5.0.0/components/context.jsonld"
|
|
4
4
|
],
|
|
5
5
|
"@id": "npmd:@comunica/actor-function-factory-expression-not-in",
|
|
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
|
-
"caffeni": "npmd:@comunica/actor-function-factory-expression-not-in/^
|
|
6
|
+
"caffeni": "npmd:@comunica/actor-function-factory-expression-not-in/^5.0.0/",
|
|
7
7
|
"ActorFunctionFactoryExpressionNotIn": {
|
|
8
8
|
"@id": "caffeni:components/ActorFunctionFactoryExpressionNotIn.jsonld#ActorFunctionFactoryExpressionNotIn",
|
|
9
9
|
"@prefix": true,
|
|
File without changes
|
|
@@ -8,6 +8,7 @@ const ExpressionFunctionNotIn_1 = require("./ExpressionFunctionNotIn");
|
|
|
8
8
|
* A comunica ExpressionFunctionNotIn Function Factory Actor.
|
|
9
9
|
*/
|
|
10
10
|
class ActorFunctionFactoryExpressionNotIn extends bus_function_factory_1.ActorFunctionFactoryDedicated {
|
|
11
|
+
mediatorFunctionFactory;
|
|
11
12
|
constructor(args) {
|
|
12
13
|
super({
|
|
13
14
|
...args,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActorFunctionFactoryExpressionNotIn.js","sourceRoot":"","sources":["ActorFunctionFactoryExpressionNotIn.ts"],"names":[],"mappings":";;;AASA,yEAEwC;AACxC,qFAAsE;AACtE,uEAAoE;AAMpE;;GAEG;AACH,MAAa,mCAAoC,SAAQ,oDAA6B;
|
|
1
|
+
{"version":3,"file":"ActorFunctionFactoryExpressionNotIn.js","sourceRoot":"","sources":["ActorFunctionFactoryExpressionNotIn.ts"],"names":[],"mappings":";;;AASA,yEAEwC;AACxC,qFAAsE;AACtE,uEAAoE;AAMpE;;GAEG;AACH,MAAa,mCAAoC,SAAQ,oDAA6B;IACnE,uBAAuB,CAA0B;IAElE,YAAmB,IAAsD;QACvE,KAAK,CAAC;YACJ,GAAG,IAAI;YACP,aAAa,EAAE,CAAE,2CAAc,CAAC,MAAM,CAAE;YACxC,YAAY,EAAE,KAAK;SACpB,CAAC,CAAC;QACH,IAAI,CAAC,uBAAuB,GAA6B,IAAI,CAAC,uBAAuB,CAAC;IACxF,CAAC;IAEM,KAAK,CAAC,GAAG,CAAmC,IAAO;QAExD,MAAM,UAAU,GAAG,MAAM,IAAI,CAAC,uBAAuB,CAAC,OAAO,CAAC;YAC5D,YAAY,EAAE,2CAAc,CAAC,EAAE;YAC/B,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,SAAS,EAAE,IAAI,CAAC,SAAS;SAC1B,CAAC,CAAC;QAEH,OAGwB,IAAI,iDAAuB,CAAC,UAAU,CAAC,CAAC;IAClE,CAAC;CACF;AAzBD,kFAyBC","sourcesContent":["import type {\n IActionFunctionFactory,\n IActorFunctionFactoryArgs,\n IActorFunctionFactoryOutput,\n IActorFunctionFactoryOutputTerm,\n IExpressionFunction,\n MediatorFunctionFactory,\n MediatorFunctionFactoryUnsafe,\n} from '@comunica/bus-function-factory';\nimport {\n ActorFunctionFactoryDedicated,\n} from '@comunica/bus-function-factory';\nimport { SparqlOperator } from '@comunica/utils-expression-evaluator';\nimport { ExpressionFunctionNotIn } from './ExpressionFunctionNotIn';\n\ninterface IActorFunctionFactoryExpressionFunctionNotInArgs extends IActorFunctionFactoryArgs {\n mediatorFunctionFactory: MediatorFunctionFactoryUnsafe;\n}\n\n/**\n * A comunica ExpressionFunctionNotIn Function Factory Actor.\n */\nexport class ActorFunctionFactoryExpressionNotIn extends ActorFunctionFactoryDedicated {\n private readonly mediatorFunctionFactory: MediatorFunctionFactory;\n\n public constructor(args: IActorFunctionFactoryExpressionFunctionNotInArgs) {\n super({\n ...args,\n functionNames: [ SparqlOperator.NOT_IN ],\n termFunction: false,\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 inFunction = await this.mediatorFunctionFactory.mediate({\n functionName: SparqlOperator.IN,\n context: args.context,\n arguments: args.arguments,\n });\n\n return <T extends { requireTermExpression: true } ?\n IActorFunctionFactoryOutputTerm :\n IActorFunctionFactoryOutput>\n <IExpressionFunction> new ExpressionFunctionNotIn(inFunction);\n }\n}\n"]}
|
|
File without changes
|
|
@@ -8,6 +8,7 @@ const utils_expression_evaluator_1 = require("@comunica/utils-expression-evaluat
|
|
|
8
8
|
* This function doesn't require type promotion or subtype-substitution, everything works on TermExpression
|
|
9
9
|
*/
|
|
10
10
|
class ExpressionFunctionNotIn extends bus_function_factory_1.ExpressionFunctionBase {
|
|
11
|
+
inFunction;
|
|
11
12
|
constructor(inFunction) {
|
|
12
13
|
super({
|
|
13
14
|
arity: Number.POSITIVE_INFINITY,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExpressionFunctionNotIn.js","sourceRoot":"","sources":["ExpressionFunctionNotIn.ts"],"names":[],"mappings":";;;AACA,yEAAwE;AAKxE,qFAG8C;AAE9C;;;GAGG;AACH,MAAa,uBAAwB,SAAQ,6CAAsB;
|
|
1
|
+
{"version":3,"file":"ExpressionFunctionNotIn.js","sourceRoot":"","sources":["ExpressionFunctionNotIn.ts"],"names":[],"mappings":";;;AACA,yEAAwE;AAKxE,qFAG8C;AAE9C;;;GAGG;AACH,MAAa,uBAAwB,SAAQ,6CAAsB;IAC7B;IAApC,YAAoC,UAA+B;QACjE,KAAK,CAAC;YACJ,KAAK,EAAE,MAAM,CAAC,iBAAiB;YAC/B,QAAQ,EAAE,2CAAc,CAAC,MAAM;YAC/B,KAAK,EAAE,KAAK,EAAC,OAAqB,EAA2B,EAAE;gBAC7D,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;gBAClD,OAAO,IAAA,iCAAI,EAAC,CAAmB,IAAK,CAAC,UAAU,CAAC,CAAC;YACnD,CAAC;SACF,CAAC,CAAC;QAR+B,eAAU,GAAV,UAAU,CAAqB;IASnE,CAAC;IAEe,UAAU,CAAC,IAAkB;QAC3C,OAAO,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC;IACzB,CAAC;CACF;AAfD,0DAeC","sourcesContent":["import type { IExpressionFunction } from '@comunica/bus-function-factory';\nimport { ExpressionFunctionBase } from '@comunica/bus-function-factory';\nimport type { Expression, IEvalContext, TermExpression } from '@comunica/types';\nimport type {\n BooleanLiteral,\n} from '@comunica/utils-expression-evaluator';\nimport {\n bool,\n SparqlOperator,\n} from '@comunica/utils-expression-evaluator';\n\n/**\n * https://www.w3.org/TR/sparql11-query/#func-not-in\n * This function doesn't require type promotion or subtype-substitution, everything works on TermExpression\n */\nexport class ExpressionFunctionNotIn extends ExpressionFunctionBase {\n public constructor(private readonly inFunction: IExpressionFunction) {\n super({\n arity: Number.POSITIVE_INFINITY,\n operator: SparqlOperator.NOT_IN,\n apply: async(context: IEvalContext): Promise<TermExpression> => {\n const isIn = await this.inFunction.apply(context);\n return bool(!(<BooleanLiteral> isIn).typedValue);\n },\n });\n }\n\n public override checkArity(args: Expression[]): boolean {\n return args.length > 0;\n }\n}\n"]}
|
package/lib/index.d.ts
CHANGED
|
File without changes
|
package/lib/index.js
CHANGED
|
File without changes
|
package/lib/index.js.map
CHANGED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@comunica/actor-function-factory-expression-not-in",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.2",
|
|
4
4
|
"description": "A expression-not-in function-factory actor",
|
|
5
5
|
"lsd:module": true,
|
|
6
6
|
"license": "MIT",
|
|
@@ -37,9 +37,9 @@
|
|
|
37
37
|
"build:components": "componentsjs-generator"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@comunica/bus-function-factory": "^
|
|
41
|
-
"@comunica/types": "^
|
|
42
|
-
"@comunica/utils-expression-evaluator": "^
|
|
40
|
+
"@comunica/bus-function-factory": "^5.0.2",
|
|
41
|
+
"@comunica/types": "^5.0.0",
|
|
42
|
+
"@comunica/utils-expression-evaluator": "^5.0.2"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "3b29f914010fd2fc56682a0ceff962ef6ff24f32"
|
|
45
45
|
}
|