@comunica/actor-bindings-aggregator-factory-group-concat 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.
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "@context": [
3
- "https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-bindings-aggregator-factory-group-concat/^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-bindings-aggregator-factory/^4.0.0/components/context.jsonld"
3
+ "https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-bindings-aggregator-factory-group-concat/^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-bindings-aggregator-factory/^5.0.0/components/context.jsonld"
6
6
  ],
7
7
  "@id": "npmd:@comunica/actor-bindings-aggregator-factory-group-concat",
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,8 +1,8 @@
1
1
  {
2
2
  "@context": [
3
- "https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-bindings-aggregator-factory-group-concat/^4.0.0/components/context.jsonld",
4
- "https://linkedsoftwaredependencies.org/bundles/npm/@comunica/types/^4.0.0/components/context.jsonld",
5
- "https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-bindings-aggregator-factory/^4.0.0/components/context.jsonld"
3
+ "https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-bindings-aggregator-factory-group-concat/^5.0.0/components/context.jsonld",
4
+ "https://linkedsoftwaredependencies.org/bundles/npm/@comunica/types/^5.0.0/components/context.jsonld",
5
+ "https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-bindings-aggregator-factory/^5.0.0/components/context.jsonld"
6
6
  ],
7
7
  "@id": "npmd:@comunica/actor-bindings-aggregator-factory-group-concat",
8
8
  "components": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "@context": [
3
- "https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-bindings-aggregator-factory-group-concat/^4.0.0/components/context.jsonld"
3
+ "https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-bindings-aggregator-factory-group-concat/^5.0.0/components/context.jsonld"
4
4
  ],
5
5
  "@id": "npmd:@comunica/actor-bindings-aggregator-factory-group-concat",
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
- "cabafgc": "npmd:@comunica/actor-bindings-aggregator-factory-group-concat/^4.0.0/",
6
+ "cabafgc": "npmd:@comunica/actor-bindings-aggregator-factory-group-concat/^5.0.0/",
7
7
  "ActorBindingsAggregatorFactoryGroupConcat": {
8
8
  "@id": "cabafgc:components/ActorBindingsAggregatorFactoryGroupConcat.jsonld#ActorBindingsAggregatorFactoryGroupConcat",
9
9
  "@prefix": true,
File without changes
File without changes
@@ -4,12 +4,14 @@ exports.GroupConcatAggregator = void 0;
4
4
  const bus_bindings_aggregator_factory_1 = require("@comunica/bus-bindings-aggregator-factory");
5
5
  const Eval = require("@comunica/utils-expression-evaluator");
6
6
  class GroupConcatAggregator extends bus_bindings_aggregator_factory_1.AggregateEvaluator {
7
+ dataFactory;
8
+ state = undefined;
9
+ lastLanguageValid = true;
10
+ lastLanguage = undefined;
11
+ separator;
7
12
  constructor(evaluator, distinct, dataFactory, separator, throwError) {
8
13
  super(evaluator, distinct, throwError);
9
14
  this.dataFactory = dataFactory;
10
- this.state = undefined;
11
- this.lastLanguageValid = true;
12
- this.lastLanguage = undefined;
13
15
  this.separator = separator ?? ' ';
14
16
  }
15
17
  emptyValueTerm() {
@@ -1 +1 @@
1
- {"version":3,"file":"GroupConcatAggregator.js","sourceRoot":"","sources":["GroupConcatAggregator.ts"],"names":[],"mappings":";;;AACA,+FAA+E;AAE/E,6DAA6D;AAG7D,MAAa,qBAAsB,SAAQ,oDAAkB;IAM3D,YACE,SAA+B,EAC/B,QAAiB,EACA,WAAgC,EACjD,SAAkB,EAClB,UAAoB;QAEpB,KAAK,CAAC,SAAS,EAAE,QAAQ,EAAE,UAAU,CAAC,CAAC;QAJtB,gBAAW,GAAX,WAAW,CAAqB;QAR3C,UAAK,GAAuB,SAAS,CAAC;QACtC,sBAAiB,GAAG,IAAI,CAAC;QACzB,iBAAY,GAAuB,SAAS,CAAC;QAWnD,IAAI,CAAC,SAAS,GAAG,SAAS,IAAI,GAAG,CAAC;IACpC,CAAC;IAEe,cAAc;QAC5B,OAAO,I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ateEvaluator } from '@comunica/bus-bindings-aggregator-factory';\nimport type { ComunicaDataFactory, IExpressionEvaluator } from '@comunica/types';\nimport * as Eval from '@comunica/utils-expression-evaluator';\nimport type * as RDF from '@rdfjs/types';\n\nexport class GroupConcatAggregator extends AggregateEvaluator implements IBindingsAggregator {\n private state: string | undefined = undefined;\n private lastLanguageValid = true;\n private lastLanguage: string | undefined = undefined;\n private readonly separator: string;\n\n public constructor(\n evaluator: IExpressionEvaluator,\n distinct: boolean,\n private readonly dataFactory: ComunicaDataFactory,\n separator?: string,\n throwError?: boolean,\n ) {\n super(evaluator, distinct, throwError);\n this.separator = separator ?? ' ';\n }\n\n public override emptyValueTerm(): RDF.Term {\n return Eval.typedLiteral('', Eval.TypeURL.XSD_STRING);\n }\n\n public putTerm(term: RDF.Term): void {\n if (this.state === undefined) {\n this.state = term.value;\n if (term.termType === 'Literal') {\n this.lastLanguage = term.language;\n }\n } else {\n this.state += this.separator + term.value;\n if (this.lastLanguageValid && term.termType === 'Literal' && this.lastLanguage !== term.language) {\n this.lastLanguageValid = false;\n this.lastLanguage = undefined;\n }\n }\n }\n\n public termResult(): RDF.Term | undefined {\n if (this.state === undefined) {\n return this.emptyValue();\n }\n if (this.lastLanguageValid && this.lastLanguage) {\n return Eval.langString(this.state, this.lastLanguage).toRDF(this.dataFactory);\n }\n return Eval.typedLiteral(this.state, Eval.TypeURL.XSD_STRING);\n }\n}\n"]}
1
+ {"version":3,"file":"GroupConcatAggregator.js","sourceRoot":"","sources":["GroupConcatAggregator.ts"],"names":[],"mappings":";;;AACA,+FAA+E;AAE/E,6DAA6D;AAG7D,MAAa,qBAAsB,SAAQ,oDAAkB;IASxC;IARX,KAAK,GAAuB,SAAS,CAAC;IACtC,iBAAiB,GAAG,IAAI,CAAC;IACzB,YAAY,GAAuB,SAAS,CAAC;IACpC,SAAS,CAAS;IAEnC,YACE,SAA+B,EAC/B,QAAiB,EACA,WAAgC,EACjD,SAAkB,EAClB,UAAoB;QAEpB,KAAK,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AAC,YAAY,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;IAChE,CAAC;CACF;AA7CD,sDA6CC","sourcesContent":["import type { IBindingsAggregator } from '@comunica/bus-bindings-aggregator-factory';\nimport { AggregateEvaluator } from '@comunica/bus-bindings-aggregator-factory';\nimport type { ComunicaDataFactory, IExpressionEvaluator } from '@comunica/types';\nimport * as Eval from '@comunica/utils-expression-evaluator';\nimport type * as RDF from '@rdfjs/types';\n\nexport class GroupConcatAggregator extends AggregateEvaluator implements IBindingsAggregator {\n private state: string | undefined = undefined;\n private lastLanguageValid = true;\n private lastLanguage: string | undefined = undefined;\n private readonly separator: string;\n\n public constructor(\n evaluator: IExpressionEvaluator,\n distinct: boolean,\n private readonly dataFactory: ComunicaDataFactory,\n separator?: string,\n throwError?: boolean,\n ) {\n super(evaluator, distinct, throwError);\n this.separator = separator ?? ' ';\n }\n\n public override emptyValueTerm(): RDF.Term {\n return Eval.typedLiteral('', Eval.TypeURL.XSD_STRING);\n }\n\n public putTerm(term: RDF.Term): void {\n if (this.state === undefined) {\n this.state = term.value;\n if (term.termType === 'Literal') {\n this.lastLanguage = term.language;\n }\n } else {\n this.state += this.separator + term.value;\n if (this.lastLanguageValid && term.termType === 'Literal' && this.lastLanguage !== term.language) {\n this.lastLanguageValid = false;\n this.lastLanguage = undefined;\n }\n }\n }\n\n public termResult(): RDF.Term | undefined {\n if (this.state === undefined) {\n return this.emptyValue();\n }\n if (this.lastLanguageValid && this.lastLanguage) {\n return Eval.langString(this.state, this.lastLanguage).toRDF(this.dataFactory);\n }\n return Eval.typedLiteral(this.state, Eval.TypeURL.XSD_STRING);\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-bindings-aggregator-factory-group-concat",
3
- "version": "4.5.0",
3
+ "version": "5.0.2",
4
4
  "description": "A group-concat bindings aggregator factory actor",
5
5
  "lsd:module": true,
6
6
  "license": "MIT",
@@ -37,12 +37,12 @@
37
37
  "build:components": "componentsjs-generator"
38
38
  },
39
39
  "dependencies": {
40
- "@comunica/bus-bindings-aggregator-factory": "^4.5.0",
41
- "@comunica/context-entries": "^4.5.0",
42
- "@comunica/core": "^4.5.0",
43
- "@comunica/types": "^4.5.0",
44
- "@comunica/utils-expression-evaluator": "^4.5.0",
40
+ "@comunica/bus-bindings-aggregator-factory": "^5.0.2",
41
+ "@comunica/context-entries": "^5.0.2",
42
+ "@comunica/core": "^5.0.2",
43
+ "@comunica/types": "^5.0.0",
44
+ "@comunica/utils-expression-evaluator": "^5.0.2",
45
45
  "@rdfjs/types": "*"
46
46
  },
47
- "gitHead": "2bcd98c387a021fc5c08d375793c205ca3d1bf0d"
47
+ "gitHead": "3b29f914010fd2fc56682a0ceff962ef6ff24f32"
48
48
  }