@comunica/actor-rdf-join-entries-sort-selectivity 4.4.2-alpha.49.0 → 5.0.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.
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "@context": [
3
- "https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-rdf-join-entries-sort-selectivity/^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-rdf-join-entries-sort/^4.0.0/components/context.jsonld"
3
+ "https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-rdf-join-entries-sort-selectivity/^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-rdf-join-entries-sort/^5.0.0/components/context.jsonld"
6
6
  ],
7
7
  "@id": "npmd:@comunica/actor-rdf-join-entries-sort-selectivity",
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-rdf-join-entries-sort-selectivity/^4.0.0/components/context.jsonld"
3
+ "https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-rdf-join-entries-sort-selectivity/^5.0.0/components/context.jsonld"
4
4
  ],
5
5
  "@id": "npmd:@comunica/actor-rdf-join-entries-sort-selectivity",
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
- "carjess": "npmd:@comunica/actor-rdf-join-entries-sort-selectivity/^4.0.0/",
6
+ "carjess": "npmd:@comunica/actor-rdf-join-entries-sort-selectivity/^5.0.0/",
7
7
  "ActorRdfJoinEntriesSortSelectivity": {
8
8
  "@id": "carjess:components/ActorRdfJoinEntriesSortSelectivity.jsonld#ActorRdfJoinEntriesSortSelectivity",
9
9
  "@prefix": true,
@@ -7,8 +7,10 @@ const core_1 = require("@comunica/core");
7
7
  * A comunica Selectivity RDF Join Entries Sort Actor.
8
8
  */
9
9
  class ActorRdfJoinEntriesSortSelectivity extends bus_rdf_join_entries_sort_1.ActorRdfJoinEntriesSort {
10
+ mediatorJoinSelectivity;
10
11
  constructor(args) {
11
12
  super(args);
13
+ this.mediatorJoinSelectivity = args.mediatorJoinSelectivity;
12
14
  }
13
15
  async test(_action) {
14
16
  return (0, core_1.passTest)({ accuracy: 0.501 });
@@ -1 +1 @@
1
-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AED,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,CAAC;IACnC,CAAC;CACF;AAlCD,gFAkCC","sourcesContent":["import type {\n IActionRdfJoinEntriesSort,\n IActorRdfJoinEntriesSortOutput,\n IActorRdfJoinEntriesSortArgs,\n IActorRdfJoinEntriesSortTest,\n} from '@comunica/bus-rdf-join-entries-sort';\nimport { ActorRdfJoinEntriesSort } from '@comunica/bus-rdf-join-entries-sort';\nimport type { MediatorRdfJoinSelectivity } from '@comunica/bus-rdf-join-selectivity';\nimport type { TestResult } from '@comunica/core';\nimport { passTest } from '@comunica/core';\nimport type { IJoinEntryWithMetadata } from '@comunica/types';\n\n/**\n * A comunica Selectivity RDF Join Entries Sort Actor.\n */\nexport class ActorRdfJoinEntriesSortSelectivity extends ActorRdfJoinEntriesSort {\n public readonly mediatorJoinSelectivity: MediatorRdfJoinSelectivity;\n\n public constructor(args: IActorRdfJoinEntriesSortSelectivityArgs) {\n super(args);\n }\n\n public async test(_action: IActionRdfJoinEntriesSort): Promise<TestResult<IActorRdfJoinEntriesSortTest>> {\n return passTest({ accuracy: 0.501 });\n }\n\n public async run(action: IActionRdfJoinEntriesSort): Promise<IActorRdfJoinEntriesSortOutput> {\n const remainingEntries = [ ...action.entries ];\n const finalEntries: IJoinEntryWithMetadata[] = [];\n\n while (remainingEntries.length > 0) {\n let minSelectivity = Number.MAX_VALUE;\n let minEntryIndex = -1;\n for (const [ remainingEntryIndex, remainingEntry ] of remainingEntries.entries()) {\n const { selectivity } = await this.mediatorJoinSelectivity.mediate({\n entries: [ remainingEntry, ...finalEntries ],\n context: action.context,\n });\n if (selectivity < minSelectivity) {\n minSelectivity = selectivity;\n minEntryIndex = remainingEntryIndex;\n }\n }\n finalEntries.push(remainingEntries[minEntryIndex]);\n remainingEntries.splice(minEntryIndex, 1);\n }\n\n return { entries: finalEntries };\n }\n}\n\nexport interface IActorRdfJoinEntriesSortSelectivityArgs extends IActorRdfJoinEntriesSortArgs {\n mediatorJoinSelectivity: Medi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,gBAAgB,CAAC,aAAa,CAAC,CAAC,CAAC;YACnD,gBAAgB,CAAC,MAAM,CAAC,aAAa,EAAE,CAAC,CAAC,CAAC;QAC5C,CAAC;QAED,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,CAAC;IACnC,CAAC;CACF;AAnCD,gFAmCC","sourcesContent":["import type {\n IActionRdfJoinEntriesSort,\n IActorRdfJoinEntriesSortOutput,\n IActorRdfJoinEntriesSortArgs,\n IActorRdfJoinEntriesSortTest,\n} from '@comunica/bus-rdf-join-entries-sort';\nimport { ActorRdfJoinEntriesSort } from '@comunica/bus-rdf-join-entries-sort';\nimport type { MediatorRdfJoinSelectivity } from '@comunica/bus-rdf-join-selectivity';\nimport type { TestResult } from '@comunica/core';\nimport { passTest } from '@comunica/core';\nimport type { IJoinEntryWithMetadata } from '@comunica/types';\n\n/**\n * A comunica Selectivity RDF Join Entries Sort Actor.\n */\nexport class ActorRdfJoinEntriesSortSelectivity extends ActorRdfJoinEntriesSort {\n public readonly mediatorJoinSelectivity: MediatorRdfJoinSelectivity;\n\n public constructor(args: IActorRdfJoinEntriesSortSelectivityArgs) {\n super(args);\n this.mediatorJoinSelectivity = args.mediatorJoinSelectivity;\n }\n\n public async test(_action: IActionRdfJoinEntriesSort): Promise<TestResult<IActorRdfJoinEntriesSortTest>> {\n return passTest({ accuracy: 0.501 });\n }\n\n public async run(action: IActionRdfJoinEntriesSort): Promise<IActorRdfJoinEntriesSortOutput> {\n const remainingEntries = [ ...action.entries ];\n const finalEntries: IJoinEntryWithMetadata[] = [];\n\n while (remainingEntries.length > 0) {\n let minSelectivity = Number.MAX_VALUE;\n let minEntryIndex = -1;\n for (const [ remainingEntryIndex, remainingEntry ] of remainingEntries.entries()) {\n const { selectivity } = await this.mediatorJoinSelectivity.mediate({\n entries: [ remainingEntry, ...finalEntries ],\n context: action.context,\n });\n if (selectivity < minSelectivity) {\n minSelectivity = selectivity;\n minEntryIndex = remainingEntryIndex;\n }\n }\n finalEntries.push(remainingEntries[minEntryIndex]);\n remainingEntries.splice(minEntryIndex, 1);\n }\n\n return { entries: finalEntries };\n }\n}\n\nexport interface IActorRdfJoinEntriesSortSelectivityArgs extends IActorRdfJoinEntriesSortArgs {\n mediatorJoinSelectivity: MediatorRdfJoinSelectivity;\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@comunica/actor-rdf-join-entries-sort-selectivity",
3
- "version": "4.4.2-alpha.49.0",
3
+ "version": "5.0.0",
4
4
  "description": "A selectivity rdf-join-entries-sort actor",
5
5
  "lsd:module": true,
6
6
  "license": "MIT",
@@ -41,10 +41,10 @@
41
41
  "build:components": "componentsjs-generator"
42
42
  },
43
43
  "dependencies": {
44
- "@comunica/bus-rdf-join-entries-sort": "4.4.2-alpha.49.0",
45
- "@comunica/bus-rdf-join-selectivity": "4.4.2-alpha.49.0",
46
- "@comunica/core": "4.4.2-alpha.49.0",
47
- "@comunica/types": "4.4.2-alpha.49.0"
44
+ "@comunica/bus-rdf-join-entries-sort": "^5.0.0",
45
+ "@comunica/bus-rdf-join-selectivity": "^5.0.0",
46
+ "@comunica/core": "^5.0.0",
47
+ "@comunica/types": "^5.0.0"
48
48
  },
49
- "gitHead": "ef6f96cfd8faf7c37955bb7e0fe9f6fc6a994bdf"
49
+ "gitHead": "0b1756fdb9bef014133432489627c1bd71779bd0"
50
50
  }