diff options
Diffstat (limited to 'test/uk/ac/ox/cs/pagoda/global_tests/TestPagodaLUBM.java')
| -rw-r--r-- | test/uk/ac/ox/cs/pagoda/global_tests/TestPagodaLUBM.java | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/test/uk/ac/ox/cs/pagoda/global_tests/TestPagodaLUBM.java b/test/uk/ac/ox/cs/pagoda/global_tests/TestPagodaLUBM.java new file mode 100644 index 0000000..bb58681 --- /dev/null +++ b/test/uk/ac/ox/cs/pagoda/global_tests/TestPagodaLUBM.java | |||
| @@ -0,0 +1,45 @@ | |||
| 1 | package uk.ac.ox.cs.pagoda.global_tests; | ||
| 2 | |||
| 3 | import org.testng.annotations.Test; | ||
| 4 | import uk.ac.ox.cs.pagoda.Pagoda; | ||
| 5 | import uk.ac.ox.cs.pagoda.util.TestUtil; | ||
| 6 | |||
| 7 | import java.io.IOException; | ||
| 8 | import java.nio.file.Paths; | ||
| 9 | |||
| 10 | public class TestPagodaLUBM { | ||
| 11 | |||
| 12 | public void test(int number) throws IOException { | ||
| 13 | String ontoDir = TestUtil.getConfig().getProperty("ontoDir"); | ||
| 14 | Pagoda pagoda = Pagoda.builder() | ||
| 15 | .ontology(Paths.get(ontoDir, "lubm/univ-bench.owl")) | ||
| 16 | .data(Paths.get(ontoDir, "lubm/data/lubm" + number + ".ttl")) | ||
| 17 | .query(Paths.get(ontoDir, "lubm/queries/test.sparql")) | ||
| 18 | .classify(true) | ||
| 19 | .hermit(true) | ||
| 20 | .build(); | ||
| 21 | CheckAnswersOverDataset.check(pagoda, Paths.get(ontoDir, "lubm/lubm" + number + ".json")); | ||
| 22 | } | ||
| 23 | |||
| 24 | @Test | ||
| 25 | public void test_1() throws IOException { | ||
| 26 | test(1); | ||
| 27 | } | ||
| 28 | |||
| 29 | public void justExecute_100() { | ||
| 30 | int number = 100; | ||
| 31 | String ontoDir = TestUtil.getConfig().getProperty("ontoDir"); | ||
| 32 | Pagoda pagoda = Pagoda.builder() | ||
| 33 | .ontology(Paths.get(ontoDir, "lubm/univ-bench.owl")) | ||
| 34 | .data(Paths.get(ontoDir, "lubm/data/lubm" + number + ".ttl")) | ||
| 35 | .query(Paths.get(ontoDir, "lubm/queries/test.sparql")) | ||
| 36 | .classify(true) | ||
| 37 | .hermit(true) | ||
| 38 | .build(); | ||
| 39 | pagoda.run(); | ||
| 40 | } | ||
| 41 | |||
| 42 | public static void main(String... args) { | ||
| 43 | new TestPagodaLUBM().justExecute_100(); | ||
| 44 | } | ||
| 45 | } | ||
