From c94d65207ec28192febbef4f8941ecd9b50ad3d3 Mon Sep 17 00:00:00 2001 From: Jan Martin Keil Date: Mon, 25 Nov 2024 23:15:00 +0100 Subject: [PATCH] cleanup --- .../uni_jena/cs/fusion/abecto/ResourceTupel.java | 15 --------------- .../processor/PopulationComparisonProcessor.java | 2 -- .../processor/PropertyComparisonProcessor.java | 2 -- 3 files changed, 19 deletions(-) diff --git a/abecto-core/src/main/java/de/uni_jena/cs/fusion/abecto/ResourceTupel.java b/abecto-core/src/main/java/de/uni_jena/cs/fusion/abecto/ResourceTupel.java index 3de718d..49c8d3f 100644 --- a/abecto-core/src/main/java/de/uni_jena/cs/fusion/abecto/ResourceTupel.java +++ b/abecto-core/src/main/java/de/uni_jena/cs/fusion/abecto/ResourceTupel.java @@ -20,9 +20,6 @@ import org.apache.jena.rdf.model.Resource; -import java.util.HashSet; -import java.util.Set; - public class ResourceTupel { public final Resource first; public final Resource second; @@ -32,18 +29,6 @@ private ResourceTupel(Resource first, Resource second) { this.second = second; } - public static Set getTupelsOf(Set resources) { - Set tupels = new HashSet<>(); - for (Resource first : resources) { - for (Resource second : resources) { - if (!first.equals(second)) { - tupels.add(new ResourceTupel(first, second)); - } - } - } - return tupels; - } - public static ResourceTupel getTupel(Resource first, Resource second) { return new ResourceTupel(first, second); } diff --git a/abecto-core/src/main/java/de/uni_jena/cs/fusion/abecto/processor/PopulationComparisonProcessor.java b/abecto-core/src/main/java/de/uni_jena/cs/fusion/abecto/processor/PopulationComparisonProcessor.java index 8826724..159f86f 100644 --- a/abecto-core/src/main/java/de/uni_jena/cs/fusion/abecto/processor/PopulationComparisonProcessor.java +++ b/abecto-core/src/main/java/de/uni_jena/cs/fusion/abecto/processor/PopulationComparisonProcessor.java @@ -46,7 +46,6 @@ public class PopulationComparisonProcessor extends ComparisonProcessor datasets; Set datasetPairs; - Set datasetTupels; Map outputMetaModelByDataset; AbsoluteCoverage absoluteCoverage = new AbsoluteCoverage(); @@ -98,7 +97,6 @@ private void setAspect(Aspect aspect) { private void setAspectDatasets() { datasets = aspect.getDatasets(); datasetPairs = ResourcePair.getPairsOf(datasets); - datasetTupels = ResourceTupel.getTupelsOf(datasets); outputMetaModelByDataset = getOutputMetaModels(datasets); } diff --git a/abecto-core/src/main/java/de/uni_jena/cs/fusion/abecto/processor/PropertyComparisonProcessor.java b/abecto-core/src/main/java/de/uni_jena/cs/fusion/abecto/processor/PropertyComparisonProcessor.java index 7c950de..09a8b3b 100644 --- a/abecto-core/src/main/java/de/uni_jena/cs/fusion/abecto/processor/PropertyComparisonProcessor.java +++ b/abecto-core/src/main/java/de/uni_jena/cs/fusion/abecto/processor/PropertyComparisonProcessor.java @@ -70,7 +70,6 @@ public class PropertyComparisonProcessor extends ComparisonProcessor datasets; Set datasetPairs; - Set datasetTupels; Map outputMetaModelByDataset; Map absoluteValueCoverage; @@ -109,7 +108,6 @@ protected void setAspect(Resource aspect) { protected void setAspectDatasets() { datasets = theAspect.getDatasets(); datasetPairs = ResourcePair.getPairsOf(datasets); - datasetTupels = ResourceTupel.getTupelsOf(datasets); outputMetaModelByDataset = getOutputMetaModels(datasets); resourcesByNonDistinctValueByDatasetByVariable = createMapOfResourcesByValueByDatasetByVariable(); resourcesByDistinctValueByDatasetByVariable = createMapOfResourcesByValueByDatasetByVariable();