diff options
| author | RncLsn <rnc.lsn@gmail.com> | 2015-05-15 17:32:22 +0100 |
|---|---|---|
| committer | RncLsn <rnc.lsn@gmail.com> | 2015-05-15 17:32:22 +0100 |
| commit | 1b6a128137e5d7a6ff75566869232fc054afabef (patch) | |
| tree | 3def49c3c9c1e2ebebc49b82d9eb562b6d097cad /test | |
| parent | bd995407098d1b0c79c17a28b0b23a2c24a493c6 (diff) | |
| download | ACQuA-1b6a128137e5d7a6ff75566869232fc054afabef.tar.gz ACQuA-1b6a128137e5d7a6ff75566869232fc054afabef.zip | |
Testing and fixing. Executed successfully on UOBM{1,2,3,4,5,6,7,8}.
Diffstat (limited to 'test')
| -rw-r--r-- | test/AllTests.xml | 4 | ||||
| -rw-r--r-- | test/FullEvaluation.xml | 4 | ||||
| -rw-r--r-- | test/uk/ac/ox/cs/pagoda/global_tests/ClauseTester.java (renamed from test/uk/ac/ox/cs/pagoda/test_units/ClauseTester.java) | 10 | ||||
| -rw-r--r-- | test/uk/ac/ox/cs/pagoda/global_tests/CostEvaluation.java (renamed from test/uk/ac/ox/cs/pagoda/test_units/CostEvaluation.java) | 2 | ||||
| -rw-r--r-- | test/uk/ac/ox/cs/pagoda/global_tests/JAIR_PAGOdA.java (renamed from test/uk/ac/ox/cs/pagoda/test_units/JAIR_PAGOdA.java) | 2 | ||||
| -rw-r--r-- | test/uk/ac/ox/cs/pagoda/global_tests/JAIR_Scalability.java (renamed from test/uk/ac/ox/cs/pagoda/test_units/JAIR_Scalability.java) | 2 | ||||
| -rw-r--r-- | test/uk/ac/ox/cs/pagoda/global_tests/LightEvaluation.java (renamed from test/uk/ac/ox/cs/pagoda/test_units/LightEvaluation.java) | 2 | ||||
| -rw-r--r-- | test/uk/ac/ox/cs/pagoda/global_tests/PagodaDBPedia.java (renamed from test/uk/ac/ox/cs/pagoda/test_units/PagodaDBPedia.java) | 2 | ||||
| -rw-r--r-- | test/uk/ac/ox/cs/pagoda/global_tests/PagodaELU.java (renamed from test/uk/ac/ox/cs/pagoda/test_units/PagodaELU.java) | 2 | ||||
| -rw-r--r-- | test/uk/ac/ox/cs/pagoda/global_tests/PagodaFLY.java (renamed from test/uk/ac/ox/cs/pagoda/test_units/PagodaFLY.java) | 2 | ||||
| -rw-r--r-- | test/uk/ac/ox/cs/pagoda/global_tests/PagodaLUBM.java (renamed from test/uk/ac/ox/cs/pagoda/test_units/PagodaLUBM.java) | 2 | ||||
| -rw-r--r-- | test/uk/ac/ox/cs/pagoda/global_tests/PagodaNPD.java (renamed from test/uk/ac/ox/cs/pagoda/test_units/PagodaNPD.java) | 2 | ||||
| -rw-r--r-- | test/uk/ac/ox/cs/pagoda/global_tests/PagodaNPD_bench.java (renamed from test/uk/ac/ox/cs/pagoda/test_units/PagodaNPD_bench.java) | 2 | ||||
| -rw-r--r-- | test/uk/ac/ox/cs/pagoda/global_tests/PagodaRLU.java (renamed from test/uk/ac/ox/cs/pagoda/test_units/PagodaRLU.java) | 2 | ||||
| -rw-r--r-- | test/uk/ac/ox/cs/pagoda/global_tests/PagodaUOBM.java | 53 | ||||
| -rw-r--r-- | test/uk/ac/ox/cs/pagoda/global_tests/TestGlobalCorrectness.java (renamed from test/uk/ac/ox/cs/pagoda/test_units/TestGlobalCorrectness.java) | 3 | ||||
| -rw-r--r-- | test/uk/ac/ox/cs/pagoda/test_units/PagodaUOBM.java | 24 | ||||
| -rw-r--r-- | test/uk/ac/ox/cs/pagoda/tester/PagodaTester.java | 10 |
18 files changed, 77 insertions, 53 deletions
diff --git a/test/AllTests.xml b/test/AllTests.xml index cb8a0e3..c2567a8 100644 --- a/test/AllTests.xml +++ b/test/AllTests.xml | |||
| @@ -5,13 +5,13 @@ | |||
| 5 | 5 | ||
| 6 | <test name="PagodaUOBM"> | 6 | <test name="PagodaUOBM"> |
| 7 | <classes> | 7 | <classes> |
| 8 | <class name="uk.ac.ox.cs.pagoda.test_units.PagodaUOBM" /> | 8 | <class name="uk.ac.ox.cs.pagoda.global_tests.PagodaUOBM" /> |
| 9 | </classes> | 9 | </classes> |
| 10 | </test> | 10 | </test> |
| 11 | 11 | ||
| 12 | <test name="PagodaLUBM"> | 12 | <test name="PagodaLUBM"> |
| 13 | <classes> | 13 | <classes> |
| 14 | <class name="uk.ac.ox.cs.pagoda.test_units.PagodaLUBM" /> | 14 | <class name="uk.ac.ox.cs.pagoda.global_tests.PagodaLUBM" /> |
| 15 | </classes> | 15 | </classes> |
| 16 | </test> | 16 | </test> |
| 17 | 17 | ||
diff --git a/test/FullEvaluation.xml b/test/FullEvaluation.xml index f0f047d..c4a3ebe 100644 --- a/test/FullEvaluation.xml +++ b/test/FullEvaluation.xml | |||
| @@ -5,13 +5,13 @@ | |||
| 5 | 5 | ||
| 6 | <test name="LightEvaluation"> | 6 | <test name="LightEvaluation"> |
| 7 | <classes> | 7 | <classes> |
| 8 | <class name="uk.ac.ox.cs.pagoda.test_units.LightEvaluation" /> | 8 | <class name="uk.ac.ox.cs.pagoda.global_tests.LightEvaluation" /> |
| 9 | </classes> | 9 | </classes> |
| 10 | </test> | 10 | </test> |
| 11 | 11 | ||
| 12 | <test name="CostEvaluation"> | 12 | <test name="CostEvaluation"> |
| 13 | <classes> | 13 | <classes> |
| 14 | <class name="uk.ac.ox.cs.pagoda.test_units.CostEvaluation" /> | 14 | <class name="uk.ac.ox.cs.pagoda.global_tests.CostEvaluation" /> |
| 15 | </classes> | 15 | </classes> |
| 16 | </test> | 16 | </test> |
| 17 | 17 | ||
diff --git a/test/uk/ac/ox/cs/pagoda/test_units/ClauseTester.java b/test/uk/ac/ox/cs/pagoda/global_tests/ClauseTester.java index a0f16d4..abd0741 100644 --- a/test/uk/ac/ox/cs/pagoda/test_units/ClauseTester.java +++ b/test/uk/ac/ox/cs/pagoda/global_tests/ClauseTester.java | |||
| @@ -1,15 +1,9 @@ | |||
| 1 | package uk.ac.ox.cs.pagoda.test_units; | 1 | package uk.ac.ox.cs.pagoda.global_tests; |
| 2 | 2 | ||
| 3 | import org.semanticweb.HermiT.model.Atom; | 3 | import org.semanticweb.HermiT.model.*; |
| 4 | import org.semanticweb.HermiT.model.AtomicConcept; | ||
| 5 | import org.semanticweb.HermiT.model.AtomicRole; | ||
| 6 | import org.semanticweb.HermiT.model.DLClause; | ||
| 7 | import org.semanticweb.HermiT.model.Equality; | ||
| 8 | import org.semanticweb.HermiT.model.Variable; | ||
| 9 | import org.semanticweb.owlapi.apibinding.OWLManager; | 4 | import org.semanticweb.owlapi.apibinding.OWLManager; |
| 10 | import org.semanticweb.owlapi.model.OWLOntology; | 5 | import org.semanticweb.owlapi.model.OWLOntology; |
| 11 | import org.semanticweb.owlapi.model.OWLOntologyManager; | 6 | import org.semanticweb.owlapi.model.OWLOntologyManager; |
| 12 | |||
| 13 | import org.testng.Assert; | 7 | import org.testng.Assert; |
| 14 | import org.testng.annotations.Test; | 8 | import org.testng.annotations.Test; |
| 15 | import uk.ac.ox.cs.pagoda.approx.Clause; | 9 | import uk.ac.ox.cs.pagoda.approx.Clause; |
diff --git a/test/uk/ac/ox/cs/pagoda/test_units/CostEvaluation.java b/test/uk/ac/ox/cs/pagoda/global_tests/CostEvaluation.java index 968cf01..01e8203 100644 --- a/test/uk/ac/ox/cs/pagoda/test_units/CostEvaluation.java +++ b/test/uk/ac/ox/cs/pagoda/global_tests/CostEvaluation.java | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | package uk.ac.ox.cs.pagoda.test_units; | 1 | package uk.ac.ox.cs.pagoda.global_tests; |
| 2 | 2 | ||
| 3 | import org.semanticweb.owlapi.model.OWLOntology; | 3 | import org.semanticweb.owlapi.model.OWLOntology; |
| 4 | import org.testng.annotations.Test; | 4 | import org.testng.annotations.Test; |
diff --git a/test/uk/ac/ox/cs/pagoda/test_units/JAIR_PAGOdA.java b/test/uk/ac/ox/cs/pagoda/global_tests/JAIR_PAGOdA.java index 10ac974..0d77fdb 100644 --- a/test/uk/ac/ox/cs/pagoda/test_units/JAIR_PAGOdA.java +++ b/test/uk/ac/ox/cs/pagoda/global_tests/JAIR_PAGOdA.java | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | package uk.ac.ox.cs.pagoda.test_units; | 1 | package uk.ac.ox.cs.pagoda.global_tests; |
| 2 | 2 | ||
| 3 | import org.testng.annotations.Test; | 3 | import org.testng.annotations.Test; |
| 4 | import uk.ac.ox.cs.pagoda.tester.PagodaTester; | 4 | import uk.ac.ox.cs.pagoda.tester.PagodaTester; |
diff --git a/test/uk/ac/ox/cs/pagoda/test_units/JAIR_Scalability.java b/test/uk/ac/ox/cs/pagoda/global_tests/JAIR_Scalability.java index 2cf8446..cdf55bd 100644 --- a/test/uk/ac/ox/cs/pagoda/test_units/JAIR_Scalability.java +++ b/test/uk/ac/ox/cs/pagoda/global_tests/JAIR_Scalability.java | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | package uk.ac.ox.cs.pagoda.test_units; | 1 | package uk.ac.ox.cs.pagoda.global_tests; |
| 2 | 2 | ||
| 3 | import org.testng.annotations.Test; | 3 | import org.testng.annotations.Test; |
| 4 | import uk.ac.ox.cs.pagoda.tester.PagodaTester; | 4 | import uk.ac.ox.cs.pagoda.tester.PagodaTester; |
diff --git a/test/uk/ac/ox/cs/pagoda/test_units/LightEvaluation.java b/test/uk/ac/ox/cs/pagoda/global_tests/LightEvaluation.java index 932c178..3ee268e 100644 --- a/test/uk/ac/ox/cs/pagoda/test_units/LightEvaluation.java +++ b/test/uk/ac/ox/cs/pagoda/global_tests/LightEvaluation.java | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | package uk.ac.ox.cs.pagoda.test_units; | 1 | package uk.ac.ox.cs.pagoda.global_tests; |
| 2 | 2 | ||
| 3 | import org.junit.Test; | 3 | import org.junit.Test; |
| 4 | import uk.ac.ox.cs.pagoda.tester.PagodaTester; | 4 | import uk.ac.ox.cs.pagoda.tester.PagodaTester; |
diff --git a/test/uk/ac/ox/cs/pagoda/test_units/PagodaDBPedia.java b/test/uk/ac/ox/cs/pagoda/global_tests/PagodaDBPedia.java index 1673179..2b9cdbd 100644 --- a/test/uk/ac/ox/cs/pagoda/test_units/PagodaDBPedia.java +++ b/test/uk/ac/ox/cs/pagoda/global_tests/PagodaDBPedia.java | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | package uk.ac.ox.cs.pagoda.test_units; | 1 | package uk.ac.ox.cs.pagoda.global_tests; |
| 2 | 2 | ||
| 3 | import org.junit.Test; | 3 | import org.junit.Test; |
| 4 | import uk.ac.ox.cs.pagoda.tester.PagodaTester; | 4 | import uk.ac.ox.cs.pagoda.tester.PagodaTester; |
diff --git a/test/uk/ac/ox/cs/pagoda/test_units/PagodaELU.java b/test/uk/ac/ox/cs/pagoda/global_tests/PagodaELU.java index 70d531d..da059f9 100644 --- a/test/uk/ac/ox/cs/pagoda/test_units/PagodaELU.java +++ b/test/uk/ac/ox/cs/pagoda/global_tests/PagodaELU.java | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | package uk.ac.ox.cs.pagoda.test_units; | 1 | package uk.ac.ox.cs.pagoda.global_tests; |
| 2 | 2 | ||
| 3 | import org.junit.Test; | 3 | import org.junit.Test; |
| 4 | import uk.ac.ox.cs.pagoda.tester.PagodaTester; | 4 | import uk.ac.ox.cs.pagoda.tester.PagodaTester; |
diff --git a/test/uk/ac/ox/cs/pagoda/test_units/PagodaFLY.java b/test/uk/ac/ox/cs/pagoda/global_tests/PagodaFLY.java index bad533f..d558e0f 100644 --- a/test/uk/ac/ox/cs/pagoda/test_units/PagodaFLY.java +++ b/test/uk/ac/ox/cs/pagoda/global_tests/PagodaFLY.java | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | package uk.ac.ox.cs.pagoda.test_units; | 1 | package uk.ac.ox.cs.pagoda.global_tests; |
| 2 | 2 | ||
| 3 | import org.junit.Test; | 3 | import org.junit.Test; |
| 4 | import uk.ac.ox.cs.pagoda.tester.PagodaTester; | 4 | import uk.ac.ox.cs.pagoda.tester.PagodaTester; |
diff --git a/test/uk/ac/ox/cs/pagoda/test_units/PagodaLUBM.java b/test/uk/ac/ox/cs/pagoda/global_tests/PagodaLUBM.java index 1aded5b..2014ec1 100644 --- a/test/uk/ac/ox/cs/pagoda/test_units/PagodaLUBM.java +++ b/test/uk/ac/ox/cs/pagoda/global_tests/PagodaLUBM.java | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | package uk.ac.ox.cs.pagoda.test_units; | 1 | package uk.ac.ox.cs.pagoda.global_tests; |
| 2 | 2 | ||
| 3 | import org.testng.annotations.Test; | 3 | import org.testng.annotations.Test; |
| 4 | import uk.ac.ox.cs.pagoda.util.TestUtil; | 4 | import uk.ac.ox.cs.pagoda.util.TestUtil; |
diff --git a/test/uk/ac/ox/cs/pagoda/test_units/PagodaNPD.java b/test/uk/ac/ox/cs/pagoda/global_tests/PagodaNPD.java index 5f89162..17d1e82 100644 --- a/test/uk/ac/ox/cs/pagoda/test_units/PagodaNPD.java +++ b/test/uk/ac/ox/cs/pagoda/global_tests/PagodaNPD.java | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | package uk.ac.ox.cs.pagoda.test_units; | 1 | package uk.ac.ox.cs.pagoda.global_tests; |
| 2 | 2 | ||
| 3 | import org.junit.Test; | 3 | import org.junit.Test; |
| 4 | import uk.ac.ox.cs.pagoda.tester.PagodaTester; | 4 | import uk.ac.ox.cs.pagoda.tester.PagodaTester; |
diff --git a/test/uk/ac/ox/cs/pagoda/test_units/PagodaNPD_bench.java b/test/uk/ac/ox/cs/pagoda/global_tests/PagodaNPD_bench.java index 1aca36a..c908cb4 100644 --- a/test/uk/ac/ox/cs/pagoda/test_units/PagodaNPD_bench.java +++ b/test/uk/ac/ox/cs/pagoda/global_tests/PagodaNPD_bench.java | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | package uk.ac.ox.cs.pagoda.test_units; | 1 | package uk.ac.ox.cs.pagoda.global_tests; |
| 2 | 2 | ||
| 3 | import org.junit.Test; | 3 | import org.junit.Test; |
| 4 | import uk.ac.ox.cs.pagoda.tester.PagodaTester; | 4 | import uk.ac.ox.cs.pagoda.tester.PagodaTester; |
diff --git a/test/uk/ac/ox/cs/pagoda/test_units/PagodaRLU.java b/test/uk/ac/ox/cs/pagoda/global_tests/PagodaRLU.java index c365196..88e0835 100644 --- a/test/uk/ac/ox/cs/pagoda/test_units/PagodaRLU.java +++ b/test/uk/ac/ox/cs/pagoda/global_tests/PagodaRLU.java | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | package uk.ac.ox.cs.pagoda.test_units; | 1 | package uk.ac.ox.cs.pagoda.global_tests; |
| 2 | 2 | ||
| 3 | import org.junit.Test; | 3 | import org.junit.Test; |
| 4 | import uk.ac.ox.cs.pagoda.tester.PagodaTester; | 4 | import uk.ac.ox.cs.pagoda.tester.PagodaTester; |
diff --git a/test/uk/ac/ox/cs/pagoda/global_tests/PagodaUOBM.java b/test/uk/ac/ox/cs/pagoda/global_tests/PagodaUOBM.java new file mode 100644 index 0000000..065fb29 --- /dev/null +++ b/test/uk/ac/ox/cs/pagoda/global_tests/PagodaUOBM.java | |||
| @@ -0,0 +1,53 @@ | |||
| 1 | package uk.ac.ox.cs.pagoda.global_tests; | ||
| 2 | |||
| 3 | import org.testng.annotations.DataProvider; | ||
| 4 | import org.testng.annotations.Test; | ||
| 5 | import uk.ac.ox.cs.pagoda.tester.PagodaTester; | ||
| 6 | import uk.ac.ox.cs.pagoda.util.TestUtil; | ||
| 7 | |||
| 8 | import java.io.IOException; | ||
| 9 | import java.nio.file.Paths; | ||
| 10 | |||
| 11 | import static uk.ac.ox.cs.pagoda.util.TestUtil.combinePaths; | ||
| 12 | |||
| 13 | public class PagodaUOBM { | ||
| 14 | |||
| 15 | private void testN(int number ) throws IOException { | ||
| 16 | String ontoDir = TestUtil.getConfig().getProperty("ontoDir"); | ||
| 17 | TestGlobalCorrectness.test(Paths.get(ontoDir, "uobm/univ-bench-dl.owl"), | ||
| 18 | Paths.get(ontoDir, "uobm/data/uobm" + number + ".ttl"), | ||
| 19 | Paths.get(ontoDir, "uobm/queries/test.sparql"), | ||
| 20 | Paths.get(ontoDir, "uobm/uobm" + number + ".json")); | ||
| 21 | } | ||
| 22 | |||
| 23 | @Test | ||
| 24 | public void test1() throws IOException { | ||
| 25 | testN(1); | ||
| 26 | } | ||
| 27 | |||
| 28 | private static final int N_1 = 8; | ||
| 29 | private static final int N_2 = 10; | ||
| 30 | |||
| 31 | |||
| 32 | @DataProvider(name = "uobmNumbers") | ||
| 33 | public static Object[][] uobmNumbers() { | ||
| 34 | Integer[][] integers = new Integer[N_2 - N_1 + 1][1]; | ||
| 35 | for (int i = 0; i < N_2 - N_1 + 1; i++) | ||
| 36 | integers[i][0]= N_1 + i; | ||
| 37 | return integers; | ||
| 38 | } | ||
| 39 | |||
| 40 | // @Test | ||
| 41 | // public void justExecute3() { | ||
| 42 | // justExecute(1); | ||
| 43 | // } | ||
| 44 | |||
| 45 | @Test(dataProvider = "uobmNumbers") | ||
| 46 | public void justExecute(int number) { | ||
| 47 | String ontoDir = TestUtil.getConfig().getProperty("ontoDir"); | ||
| 48 | PagodaTester.main(combinePaths(ontoDir, "uobm/univ-bench-dl.owl"), | ||
| 49 | combinePaths(ontoDir, "uobm/data/uobm" + number + ".ttl"), | ||
| 50 | combinePaths(ontoDir, "uobm/queries/test.sparql")); | ||
| 51 | } | ||
| 52 | |||
| 53 | } | ||
diff --git a/test/uk/ac/ox/cs/pagoda/test_units/TestGlobalCorrectness.java b/test/uk/ac/ox/cs/pagoda/global_tests/TestGlobalCorrectness.java index ffaf8fc..dff2366 100644 --- a/test/uk/ac/ox/cs/pagoda/test_units/TestGlobalCorrectness.java +++ b/test/uk/ac/ox/cs/pagoda/global_tests/TestGlobalCorrectness.java | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | package uk.ac.ox.cs.pagoda.test_units; | 1 | package uk.ac.ox.cs.pagoda.global_tests; |
| 2 | 2 | ||
| 3 | import com.google.gson.Gson; | 3 | import com.google.gson.Gson; |
| 4 | import com.google.gson.reflect.TypeToken; | 4 | import com.google.gson.reflect.TypeToken; |
| @@ -28,6 +28,7 @@ public class TestGlobalCorrectness { | |||
| 28 | try { | 28 | try { |
| 29 | Utility.setLogLevel(Level.DEBUG); | 29 | Utility.setLogLevel(Level.DEBUG); |
| 30 | Path computedAnswers = Paths.get(File.createTempFile("answers", ".json").getAbsolutePath()); | 30 | Path computedAnswers = Paths.get(File.createTempFile("answers", ".json").getAbsolutePath()); |
| 31 | new File(computedAnswers.toString()).deleteOnExit(); | ||
| 31 | PagodaTester.main(ontology.toString(), data.toString(), queries.toString(), computedAnswers.toString()); | 32 | PagodaTester.main(ontology.toString(), data.toString(), queries.toString(), computedAnswers.toString()); |
| 32 | assertSameContent(computedAnswers, givenAnswers); | 33 | assertSameContent(computedAnswers, givenAnswers); |
| 33 | } catch (IOException e) { | 34 | } catch (IOException e) { |
diff --git a/test/uk/ac/ox/cs/pagoda/test_units/PagodaUOBM.java b/test/uk/ac/ox/cs/pagoda/test_units/PagodaUOBM.java deleted file mode 100644 index ee9cf13..0000000 --- a/test/uk/ac/ox/cs/pagoda/test_units/PagodaUOBM.java +++ /dev/null | |||
| @@ -1,24 +0,0 @@ | |||
| 1 | package uk.ac.ox.cs.pagoda.test_units; | ||
| 2 | |||
| 3 | import org.testng.annotations.Test; | ||
| 4 | import uk.ac.ox.cs.pagoda.util.TestUtil; | ||
| 5 | |||
| 6 | import java.io.IOException; | ||
| 7 | import java.nio.file.Paths; | ||
| 8 | |||
| 9 | public class PagodaUOBM { | ||
| 10 | |||
| 11 | private void testN(int number ) throws IOException { | ||
| 12 | String ontoDir = TestUtil.getConfig().getProperty("ontoDir"); | ||
| 13 | TestGlobalCorrectness.test(Paths.get(ontoDir, "uobm/univ-bench-dl.owl"), | ||
| 14 | Paths.get(ontoDir, "uobm/data/uobm" + number + ".ttl"), | ||
| 15 | Paths.get(ontoDir, "uobm/queries/test.sparql"), | ||
| 16 | Paths.get(ontoDir, "uobm/uobm" + number + ".json")); | ||
| 17 | } | ||
| 18 | |||
| 19 | @Test | ||
| 20 | public void test1() throws IOException { | ||
| 21 | testN(1); | ||
| 22 | } | ||
| 23 | |||
| 24 | } | ||
diff --git a/test/uk/ac/ox/cs/pagoda/tester/PagodaTester.java b/test/uk/ac/ox/cs/pagoda/tester/PagodaTester.java index 5e49f79..b97d85e 100644 --- a/test/uk/ac/ox/cs/pagoda/tester/PagodaTester.java +++ b/test/uk/ac/ox/cs/pagoda/tester/PagodaTester.java | |||
| @@ -94,11 +94,11 @@ public class PagodaTester { | |||
| 94 | if (args.length == 0) { | 94 | if (args.length == 0) { |
| 95 | // args = new String[] {test_tbox, test_abox, test_query}; | 95 | // args = new String[] {test_tbox, test_abox, test_query}; |
| 96 | // args = new String[] {lubm_tbox, lubm_abox, lubm_query}; | 96 | // args = new String[] {lubm_tbox, lubm_abox, lubm_query}; |
| 97 | args = new String[] {uobm_tbox, uobm_abox, uobm_query, "/home/alessandro/Desktop/uobm1.ans"}; | 97 | // args = new String[] {uobm_tbox, uobm_abox, uobm_query}; |
| 98 | // args = new String[] {fly, "null", fly_query.replace(".sparql", "_pellet.sparql") }; | 98 | // args = new String[] {fly, "null", fly_query}; |
| 99 | // args = new String[] {dbpedia_tbox, dbpedia_abox, dbpedia_query}; | 99 | // args = new String[] {dbpedia_tbox, dbpedia_abox, dbpedia_query}; |
| 100 | // args = new String[] {travel_tbox, null, dbpedia_query274}; | 100 | // args = new String[] {travel_tbox, null, dbpedia_query274}; |
| 101 | // args = new String[] {fly, null, fly_query}; | 101 | args = new String[] {fly, fly_query}; |
| 102 | // args = new String[] {npd_tbox, npd_abox, npd_query}; | 102 | // args = new String[] {npd_tbox, npd_abox, npd_query}; |
| 103 | // args = new String[] {npd_bench_tbox, npd_bench_abox, npd_bench_query}; | 103 | // args = new String[] {npd_bench_tbox, npd_bench_abox, npd_bench_query}; |
| 104 | // args = new String[] {"../SemFacet/WebContent/WEB-INF/data/dbpedia.owl", "../SemFacet/WebContent/WEB-INF/data/dbpediaA.nt", null}; | 104 | // args = new String[] {"../SemFacet/WebContent/WEB-INF/data/dbpedia.owl", "../SemFacet/WebContent/WEB-INF/data/dbpediaA.nt", null}; |
| @@ -119,7 +119,7 @@ public class PagodaTester { | |||
| 119 | // args[2] = args[2].replace(".sparql", "_pellet.sparql"); | 119 | // args[2] = args[2].replace(".sparql", "_pellet.sparql"); |
| 120 | } | 120 | } |
| 121 | 121 | ||
| 122 | Properties properties = new Properties("config/uobm.conf"); | 122 | Properties properties = new Properties("config/uobm.properties"); |
| 123 | 123 | ||
| 124 | int index = 0; | 124 | int index = 0; |
| 125 | if (args.length > index) properties.setOntologyPath(args[index++]); | 125 | if (args.length > index) properties.setOntologyPath(args[index++]); |
| @@ -157,7 +157,7 @@ public class PagodaTester { | |||
| 157 | if (pagoda != null) pagoda.dispose(); | 157 | if (pagoda != null) pagoda.dispose(); |
| 158 | } | 158 | } |
| 159 | 159 | ||
| 160 | Utility.closeCurrentOut(); | 160 | // Utility.closeCurrentOut(); |
| 161 | 161 | ||
| 162 | if (properties.getShellMode()) System.exit(0); | 162 | if (properties.getShellMode()) System.exit(0); |
| 163 | } | 163 | } |
