From 1f9b60102c14131a97228f6d84cf84ffe29df024 Mon Sep 17 00:00:00 2001 From: Sven Hertling Date: Fri, 15 Sep 2023 20:25:32 +0200 Subject: [PATCH] do not skip testcases without reference alignment for Popconference0 (because the track has no reference alignments) --- .../dws/melt/matching_data/TestCase.java | 2 ++ .../melt/matching_data/TrackRepository.java | 25 +++++++++++++------ 2 files changed, 19 insertions(+), 8 deletions(-) diff --git a/matching-data/src/main/java/de/uni_mannheim/informatik/dws/melt/matching_data/TestCase.java b/matching-data/src/main/java/de/uni_mannheim/informatik/dws/melt/matching_data/TestCase.java index 41f38170e5..a547622c76 100644 --- a/matching-data/src/main/java/de/uni_mannheim/informatik/dws/melt/matching_data/TestCase.java +++ b/matching-data/src/main/java/de/uni_mannheim/informatik/dws/melt/matching_data/TestCase.java @@ -231,6 +231,8 @@ public T getTargetOntology(Class clazz, Properties parameters){ */ public Alignment getParsedReferenceAlignment() { if(parsedReference == null){ + if(getReference() == null) + return new Alignment(); try { parsedReference = new Alignment(getReference().toURL()); } catch (SAXException | IOException ex) { diff --git a/matching-data/src/main/java/de/uni_mannheim/informatik/dws/melt/matching_data/TrackRepository.java b/matching-data/src/main/java/de/uni_mannheim/informatik/dws/melt/matching_data/TrackRepository.java index 52c5e602c9..c878d0e34f 100644 --- a/matching-data/src/main/java/de/uni_mannheim/informatik/dws/melt/matching_data/TrackRepository.java +++ b/matching-data/src/main/java/de/uni_mannheim/informatik/dws/melt/matching_data/TrackRepository.java @@ -73,12 +73,12 @@ public static class Conference { /** * Conference Testsuite V1 which is used all the time. */ - public static Track V1 = new SealsTrack("http://oaei.webdatacommons.org/tdrs/", "conference", "conference-v1");//new SealsTrack("http://repositories.seals-project.eu/tdrs/", "conference", "conference-v1"); + public final static Track V1 = new SealsTrack("http://oaei.webdatacommons.org/tdrs/", "conference", "conference-v1");//new SealsTrack("http://repositories.seals-project.eu/tdrs/", "conference", "conference-v1"); /** * Conference Testsuite V1 with all test cases ( even without reference alignment */ - public static Track V1_ALL_TESTCASES = new SealsTrack("http://oaei.webdatacommons.org/tdrs/", "conference", "conference-v1-all"); + public final static Track V1_ALL_TESTCASES = new SealsTrack("http://oaei.webdatacommons.org/tdrs/", "conference", "conference-v1-all"); static { V1_ALL_TESTCASES.setSkipTestCasesWithoutRefAlign(false); @@ -265,12 +265,21 @@ public static class Complex { /** * Popconference **/ - public static Track Popconference0 = new SealsTrack("http://oaei.webdatacommons.org/tdrs/", "popconference", "popconference-0-v1"); - public static Track Popconference20 = new SealsTrack("http://oaei.webdatacommons.org/tdrs/", "popconference", "popconference-20-v1"); - public static Track Popconference40 = new SealsTrack("http://oaei.webdatacommons.org/tdrs/", "popconference", "popconference-40-v1"); - public static Track Popconference60 = new SealsTrack("http://oaei.webdatacommons.org/tdrs/", "popconference", "popconference-60-v1"); - public static Track Popconference80 = new SealsTrack("http://oaei.webdatacommons.org/tdrs/", "popconference", "popconference-80-v1"); - public static Track Popconference100 = new SealsTrack("http://oaei.webdatacommons.org/tdrs/", "popconference", "popconference-100-v1"); + public final static Track Popconference0 = new SealsTrack("http://oaei.webdatacommons.org/tdrs/", "popconference", "popconference-0-v1"); + public final static Track Popconference20 = new SealsTrack("http://oaei.webdatacommons.org/tdrs/", "popconference", "popconference-20-v1"); + public final static Track Popconference40 = new SealsTrack("http://oaei.webdatacommons.org/tdrs/", "popconference", "popconference-40-v1"); + public final static Track Popconference60 = new SealsTrack("http://oaei.webdatacommons.org/tdrs/", "popconference", "popconference-60-v1"); + public final static Track Popconference80 = new SealsTrack("http://oaei.webdatacommons.org/tdrs/", "popconference", "popconference-80-v1"); + public final static Track Popconference100 = new SealsTrack("http://oaei.webdatacommons.org/tdrs/", "popconference", "popconference-100-v1"); + + static { + Popconference0.setSkipTestCasesWithoutRefAlign(false); + Popconference20.setSkipTestCasesWithoutRefAlign(false); + Popconference40.setSkipTestCasesWithoutRefAlign(false); + Popconference60.setSkipTestCasesWithoutRefAlign(false); + Popconference80.setSkipTestCasesWithoutRefAlign(false); + Popconference100.setSkipTestCasesWithoutRefAlign(false); + } }