diff options
Diffstat (limited to 'test/uk/ac/ox/cs/pagoda/junit/PagodaUOBM.java')
| -rw-r--r-- | test/uk/ac/ox/cs/pagoda/junit/PagodaUOBM.java | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/test/uk/ac/ox/cs/pagoda/junit/PagodaUOBM.java b/test/uk/ac/ox/cs/pagoda/junit/PagodaUOBM.java new file mode 100644 index 0000000..5b56c6d --- /dev/null +++ b/test/uk/ac/ox/cs/pagoda/junit/PagodaUOBM.java | |||
| @@ -0,0 +1,48 @@ | |||
| 1 | package uk.ac.ox.cs.pagoda.junit; | ||
| 2 | |||
| 3 | import org.junit.Test; | ||
| 4 | |||
| 5 | import uk.ac.ox.cs.pagoda.tester.PagodaTester; | ||
| 6 | import uk.ac.ox.cs.pagoda.tester.Statistics; | ||
| 7 | |||
| 8 | public class PagodaUOBM { | ||
| 9 | |||
| 10 | public void test_all(int number ) { | ||
| 11 | PagodaTester.main( | ||
| 12 | PagodaTester.onto_dir + "uobm/univ-bench-dl.owl", | ||
| 13 | PagodaTester.onto_dir + "uobm/data/uobm" + number + ".ttl", | ||
| 14 | PagodaTester.onto_dir + "uobm/queries/standard_all_pagoda.sparql" | ||
| 15 | // PagodaTester.onto_dir + "uobm/queries/standard_group3_all_less.sparql;" + | ||
| 16 | // PagodaTester.onto_dir + "uobm/queries/G3.sparql;" + | ||
| 17 | // PagodaTester.onto_dir + "uobm/queries/last.sparql" | ||
| 18 | ); | ||
| 19 | |||
| 20 | AllTests.copy("log4j.log", "output/jair/newuobm/uobm" + number + ".out"); | ||
| 21 | } | ||
| 22 | |||
| 23 | public void test_upToSum(int number) { | ||
| 24 | PagodaTester.main( | ||
| 25 | PagodaTester.onto_dir + "uobm/univ-bench-dl.owl", | ||
| 26 | PagodaTester.onto_dir + "uobm/data/uobm" + number + ".ttl", | ||
| 27 | PagodaTester.onto_dir + "uobm/queries/standard_group3_all.sparql" | ||
| 28 | ); | ||
| 29 | |||
| 30 | // AllTests.copy("log4j.log", "output/jair/uobm" + number + ".out"); | ||
| 31 | } | ||
| 32 | |||
| 33 | @Test | ||
| 34 | public void test1() { test_all(1); } | ||
| 35 | |||
| 36 | public void test500() { test_upToSum(500); } | ||
| 37 | |||
| 38 | public static void main(String... args) { | ||
| 39 | new PagodaUOBM().test_all(1); | ||
| 40 | } | ||
| 41 | |||
| 42 | public void check() { | ||
| 43 | Statistics stat = new Statistics("results-backup/current/uobm1.out"); | ||
| 44 | String diff = stat.diff("results-backup/benchmark/uobm1.out"); | ||
| 45 | System.out.println(diff); | ||
| 46 | } | ||
| 47 | |||
| 48 | } | ||
