Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jmkeil committed Nov 25, 2024
1 parent b61de8e commit c94d652
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -32,18 +29,6 @@ private ResourceTupel(Resource first, Resource second) {
this.second = second;
}

public static Set<ResourceTupel> getTupelsOf(Set<Resource> resources) {
Set<ResourceTupel> 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);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ public class PopulationComparisonProcessor extends ComparisonProcessor<Populatio
Aspect aspect;
Set<Resource> datasets;
Set<ResourcePair> datasetPairs;
Set<ResourceTupel> datasetTupels;
Map<Resource, Model> outputMetaModelByDataset;

AbsoluteCoverage absoluteCoverage = new AbsoluteCoverage();
Expand Down Expand Up @@ -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);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ public class PropertyComparisonProcessor extends ComparisonProcessor<PropertyCom
Aspect theAspect; // TODO rename to `aspect` after renaming the aspect parameter variable into `aspectIri`
Set<Resource> datasets;
Set<ResourcePair> datasetPairs;
Set<ResourceTupel> datasetTupels;
Map<Resource, Model> outputMetaModelByDataset;

Map<String, AbsoluteCoverage> absoluteValueCoverage;
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit c94d652

Please sign in to comment.