@comunica/actor-function-factory-term-inequality 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 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-term-inequality/^4.0.0/components/context.jsonld"
27
+ "https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-function-factory-term-inequality/^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-term-inequality/^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"
3
+ "https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-function-factory-term-inequality/^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-term-inequality",
8
8
  "components": [
@@ -39,37 +39,37 @@
39
39
  "genericTypeInstances": [
40
40
  {
41
41
  "@type": "ParameterRangeGenericTypeReference",
42
- "parameterRangeGenericType": "npmd:@comunica/actor-abstract-mediatyped/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_I"
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/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_T"
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/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_O"
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/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_TS"
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/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_I"
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/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_T"
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/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_O"
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/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_TS"
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/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_I"
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/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_T"
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/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_O"
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/^4.0.0/components/ActorAbstractMediaTyped.jsonld#ActorAbstractMediaTyped__generic_TS"
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-term-inequality/^4.0.0/components/context.jsonld"
3
+ "https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-function-factory-term-inequality/^5.0.0/components/context.jsonld"
4
4
  ],
5
5
  "@id": "npmd:@comunica/actor-function-factory-term-inequality",
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
- "caffti": "npmd:@comunica/actor-function-factory-term-inequality/^4.0.0/",
6
+ "caffti": "npmd:@comunica/actor-function-factory-term-inequality/^5.0.0/",
7
7
  "ActorFunctionFactoryTermInequality": {
8
8
  "@id": "caffti:components/ActorFunctionFactoryTermInequality.jsonld#ActorFunctionFactoryTermInequality",
9
9
  "@prefix": true,
File without changes
@@ -8,6 +8,7 @@ const TermFunctionInequality_1 = require("./TermFunctionInequality");
8
8
  * A comunica TermFunctionInequality Function Factory Actor.
9
9
  */
10
10
  class ActorFunctionFactoryTermInequality extends bus_function_factory_1.ActorFunctionFactoryDedicated {
11
+ mediatorFunctionFactory;
11
12
  constructor(args) {
12
13
  super({
13
14
  ...args,
@@ -1 +1 @@
1
- {"version":3,"file":"ActorFunctionFactoryTermInequality.js","sourceRoot":"","sources":["ActorFunctionFactoryTermInequality.ts"],"names":[],"mappings":";;;AAQA,yEAEwC;AAExC,qFAAsE;AACtE,qEAAkE;AAMlE;;GAEG;AACH,MAAa,kCAAmC,SAAQ,oDAA6B;IAGnF,YAAmB,IAAqD;QACtE,KAAK,CAAC;YACJ,GAAG,IAAI;YACP,aAAa,EAAE,CAAE,2CAAc,CAAC,SAAS,CAAE;YAC3C,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,KAAK;YAClC,qBAAqB,EAAE,IAAI;YAC3B,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,SAAS,EAAE,IAAI,CAAC,SAAS;SAC1B,CAAC,CAAC;QAEH,OAAO,IAAI,+CAAsB,CAAC,gBAAgB,CAAC,CAAC;IACtD,CAAC;CACF;AAvBD,gFAuBC","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 { TermFunctionInequality } from './TermFunctionInequality';\n\ninterface IActorFunctionFactoryTermFunctionInequalityArgs extends IActorFunctionFactoryArgs {\n mediatorFunctionFactory: MediatorFunctionFactoryUnsafe;\n}\n\n/**\n * A comunica TermFunctionInequality Function Factory Actor.\n */\nexport class ActorFunctionFactoryTermInequality extends ActorFunctionFactoryDedicated {\n private readonly mediatorFunctionFactory: MediatorFunctionFactory;\n\n public constructor(args: IActorFunctionFactoryTermFunctionInequalityArgs) {\n super({\n ...args,\n functionNames: [ SparqlOperator.NOT_EQUAL ],\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 equalityFunction = await this.mediatorFunctionFactory.mediate({\n functionName: SparqlOperator.EQUAL,\n requireTermExpression: true,\n context: args.context,\n arguments: args.arguments,\n });\n\n return new TermFunctionInequality(equalityFunction);\n }\n}\n"]}
1
+ {"version":3,"file":"ActorFunctionFactoryTermInequality.js","sourceRoot":"","sources":["ActorFunctionFactoryTermInequality.ts"],"names":[],"mappings":";;;AAQA,yEAEwC;AAExC,qFAAsE;AACtE,qEAAkE;AAMlE;;GAEG;AACH,MAAa,kCAAmC,SAAQ,oDAA6B;IAClE,uBAAuB,CAA0B;IAElE,YAAmB,IAAqD;QACtE,KAAK,CAAC;YACJ,GAAG,IAAI;YACP,aAAa,EAAE,CAAE,2CAAc,CAAC,SAAS,CAAE;YAC3C,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,KAAK;YAClC,qBAAqB,EAAE,IAAI;YAC3B,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,SAAS,EAAE,IAAI,CAAC,SAAS;SAC1B,CAAC,CAAC;QAEH,OAAO,IAAI,+CAAsB,CAAC,gBAAgB,CAAC,CAAC;IACtD,CAAC;CACF;AAvBD,gFAuBC","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 { TermFunctionInequality } from './TermFunctionInequality';\n\ninterface IActorFunctionFactoryTermFunctionInequalityArgs extends IActorFunctionFactoryArgs {\n mediatorFunctionFactory: MediatorFunctionFactoryUnsafe;\n}\n\n/**\n * A comunica TermFunctionInequality Function Factory Actor.\n */\nexport class ActorFunctionFactoryTermInequality extends ActorFunctionFactoryDedicated {\n private readonly mediatorFunctionFactory: MediatorFunctionFactory;\n\n public constructor(args: IActorFunctionFactoryTermFunctionInequalityArgs) {\n super({\n ...args,\n functionNames: [ SparqlOperator.NOT_EQUAL ],\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 equalityFunction = await this.mediatorFunctionFactory.mediate({\n functionName: SparqlOperator.EQUAL,\n requireTermExpression: true,\n context: args.context,\n arguments: args.arguments,\n });\n\n return new TermFunctionInequality(equalityFunction);\n }\n}\n"]}
File without changes
@@ -4,6 +4,7 @@ exports.TermFunctionInequality = void 0;
4
4
  const bus_function_factory_1 = require("@comunica/bus-function-factory");
5
5
  const utils_expression_evaluator_1 = require("@comunica/utils-expression-evaluator");
6
6
  class TermFunctionInequality extends bus_function_factory_1.TermFunctionBase {
7
+ equalityFunction;
7
8
  constructor(equalityFunction) {
8
9
  super({
9
10
  arity: 2,
@@ -1 +1 @@
1
- {"version":3,"file":"TermFunctionInequality.js","sourceRoot":"","sources":["TermFunctionInequality.ts"],"names":[],"mappings":";;;AACA,yEAAkE;AAIlE,qFAI8C;AAE9C,MAAa,sBAAuB,SAAQ,uCAAgB;IAC1D,YAAoC,gBAA+B;QACjE,KAAK,CAAC;YACJ,KAAK,EAAE,CAAC;YACR,QAAQ,EAAE,2CAAc,CAAC,SAAS;YAClC,SAAS,EAAE,IAAA,oCAAO,EAAC,2CAAc,CAAC,SAAS,CAAC;iBACzC,GAAG,CAAC,CAAE,MAAM,EAAE,MAAM,CAAE,EAAE,mBAAmB,CAAC,EAAE,CAC7C,CAAC,CAAE,KAAK,EAAE,MAAM,CAAE,EAAE,EAAE,CACpB,IAAA,iCAAI,EAAC,CAAmB,IAAI,CAAC,gBAAgB;iBAC1C,YAAY,CAAC,CAAE,KAAK,EAAE,MAAM,CAAE,EAAE,mBAAmB,CAAE,CAAC,UAAU,CAAC,CAAC;iBACxE,OAAO,EAAE;SACb,CAAC,CAAC;QAV+B,qBAAgB,GAAhB,gBAAgB,CAAe;IAWnE,CAAC;CACF;AAbD,wDAaC","sourcesContent":["import type { ITermFunction } from '@comunica/bus-function-factory';\nimport { TermFunctionBase } from '@comunica/bus-function-factory';\nimport type {\n BooleanLiteral,\n} from '@comunica/utils-expression-evaluator';\nimport {\n bool,\n declare,\n SparqlOperator,\n} from '@comunica/utils-expression-evaluator';\n\nexport class TermFunctionInequality extends TermFunctionBase {\n public constructor(private readonly equalityFunction: ITermFunction) {\n super({\n arity: 2,\n operator: SparqlOperator.NOT_EQUAL,\n overloads: declare(SparqlOperator.NOT_EQUAL)\n .set([ 'term', 'term' ], expressionEvaluator =>\n ([ first, second ]) =>\n bool(!(<BooleanLiteral> this.equalityFunction\n .applyOnTerms([ first, second ], expressionEvaluator)).typedValue))\n .collect(),\n });\n }\n}\n"]}
1
+ {"version":3,"file":"TermFunctionInequality.js","sourceRoot":"","sources":["TermFunctionInequality.ts"],"names":[],"mappings":";;;AACA,yEAAkE;AAIlE,qFAI8C;AAE9C,MAAa,sBAAuB,SAAQ,uCAAgB;IACtB;IAApC,YAAoC,gBAA+B;QACjE,KAAK,CAAC;YACJ,KAAK,EAAE,CAAC;YACR,QAAQ,EAAE,2CAAc,CAAC,SAAS;YAClC,SAAS,EAAE,IAAA,oCAAO,EAAC,2CAAc,CAAC,SAAS,CAAC;iBACzC,GAAG,CAAC,CAAE,MAAM,EAAE,MAAM,CAAE,EAAE,mBAAmB,CAAC,EAAE,CAC7C,CAAC,CAAE,KAAK,EAAE,MAAM,CAAE,EAAE,EAAE,CACpB,IAAA,iCAAI,EAAC,CAAmB,IAAI,CAAC,gBAAgB;iBAC1C,YAAY,CAAC,CAAE,KAAK,EAAE,MAAM,CAAE,EAAE,mBAAmB,CAAE,CAAC,UAAU,CAAC,CAAC;iBACxE,OAAO,EAAE;SACb,CAAC,CAAC;QAV+B,qBAAgB,GAAhB,gBAAgB,CAAe;IAWnE,CAAC;CACF;AAbD,wDAaC","sourcesContent":["import type { ITermFunction } from '@comunica/bus-function-factory';\nimport { TermFunctionBase } from '@comunica/bus-function-factory';\nimport type {\n BooleanLiteral,\n} from '@comunica/utils-expression-evaluator';\nimport {\n bool,\n declare,\n SparqlOperator,\n} from '@comunica/utils-expression-evaluator';\n\nexport class TermFunctionInequality extends TermFunctionBase {\n public constructor(private readonly equalityFunction: ITermFunction) {\n super({\n arity: 2,\n operator: SparqlOperator.NOT_EQUAL,\n overloads: declare(SparqlOperator.NOT_EQUAL)\n .set([ 'term', 'term' ], expressionEvaluator =>\n ([ first, second ]) =>\n bool(!(<BooleanLiteral> this.equalityFunction\n .applyOnTerms([ first, second ], expressionEvaluator)).typedValue))\n .collect(),\n });\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-term-inequality",
3
- "version": "4.5.0",
3
+ "version": "5.0.2",
4
4
  "description": "A term-inequality function-factory actor",
5
5
  "lsd:module": true,
6
6
  "license": "MIT",
@@ -37,8 +37,8 @@
37
37
  "build:components": "componentsjs-generator"
38
38
  },
39
39
  "dependencies": {
40
- "@comunica/bus-function-factory": "^4.5.0",
41
- "@comunica/utils-expression-evaluator": "^4.5.0"
40
+ "@comunica/bus-function-factory": "^5.0.2",
41
+ "@comunica/utils-expression-evaluator": "^5.0.2"
42
42
  },
43
- "gitHead": "2bcd98c387a021fc5c08d375793c205ca3d1bf0d"
43
+ "gitHead": "3b29f914010fd2fc56682a0ceff962ef6ff24f32"
44
44
  }