diff options
| author | RncLsn <rnc.lsn@gmail.com> | 2015-05-18 18:27:32 +0100 |
|---|---|---|
| committer | RncLsn <rnc.lsn@gmail.com> | 2015-05-18 18:27:32 +0100 |
| commit | c7dbc7c61c7094ea4ec49bd630023f23b92fd9d1 (patch) | |
| tree | 45ff5a535e7d519b58d60c0c214a1f9ecc5a35ef /test/uk/ac/ox/cs/pagoda/global_tests/LightEvaluation.java | |
| parent | 1b6a128137e5d7a6ff75566869232fc054afabef (diff) | |
| download | ACQuA-c7dbc7c61c7094ea4ec49bd630023f23b92fd9d1.tar.gz ACQuA-c7dbc7c61c7094ea4ec49bd630023f23b92fd9d1.zip | |
Configured Maven and improved executable class and tests.
Diffstat (limited to 'test/uk/ac/ox/cs/pagoda/global_tests/LightEvaluation.java')
| -rw-r--r-- | test/uk/ac/ox/cs/pagoda/global_tests/LightEvaluation.java | 64 |
1 files changed, 7 insertions, 57 deletions
diff --git a/test/uk/ac/ox/cs/pagoda/global_tests/LightEvaluation.java b/test/uk/ac/ox/cs/pagoda/global_tests/LightEvaluation.java index 3ee268e..b073a26 100644 --- a/test/uk/ac/ox/cs/pagoda/global_tests/LightEvaluation.java +++ b/test/uk/ac/ox/cs/pagoda/global_tests/LightEvaluation.java | |||
| @@ -1,67 +1,17 @@ | |||
| 1 | package uk.ac.ox.cs.pagoda.global_tests; | 1 | package uk.ac.ox.cs.pagoda.global_tests; |
| 2 | 2 | ||
| 3 | import org.junit.Test; | 3 | import org.testng.annotations.Test; |
| 4 | import uk.ac.ox.cs.pagoda.tester.PagodaTester; | ||
| 5 | import uk.ac.ox.cs.pagoda.util.TestUtil; | ||
| 6 | 4 | ||
| 7 | import java.io.IOException; | 5 | import java.io.IOException; |
| 8 | 6 | ||
| 9 | public class LightEvaluation { | 7 | public class LightEvaluation { |
| 10 | 8 | ||
| 11 | @Test | 9 | @Test |
| 12 | public void uobm1() throws IOException { | 10 | public void evaluation() throws IOException { |
| 13 | int number = 1; | 11 | new TestPagodaUOBM().test(1); |
| 14 | String ontoDir = TestUtil.getConfig().getProperty("ontoDir"); | 12 | new TestPagodaLUBM().test(100); |
| 15 | PagodaTester.main( | 13 | new TestPagodaFLY().test(); |
| 16 | TestUtil.combinePaths(ontoDir, "uobm/univ-bench-dl.owl"), | 14 | new TestPagodaDBPedia().test(); |
| 17 | TestUtil.combinePaths(ontoDir, "uobm/data/uobm" + number + ".ttl"), | 15 | new TestPagodaNPD().testNPDwithoutDataType(); |
| 18 | TestUtil.combinePaths(ontoDir, "uobm/queries/standard.sparql") | ||
| 19 | ); | ||
| 20 | TestUtil.copyFile("log4j.log", "output/jair/uobm1.out"); | ||
| 21 | } | 16 | } |
| 22 | |||
| 23 | @Test | ||
| 24 | public void lubm100() throws IOException { | ||
| 25 | int number = 100; | ||
| 26 | String ontoDir = TestUtil.getConfig().getProperty("ontoDir"); | ||
| 27 | PagodaTester.main( | ||
| 28 | TestUtil.combinePaths(ontoDir, "lubm/univ-bench.owl"), | ||
| 29 | TestUtil.combinePaths(ontoDir, "lubm/data/lubm" + number + ".ttl"), | ||
| 30 | TestUtil.combinePaths(ontoDir, "lubm/queries/test.sparql") | ||
| 31 | ); | ||
| 32 | TestUtil.copyFile("log4j.log", "results-backup/current/lubm100.out"); | ||
| 33 | } | ||
| 34 | |||
| 35 | @Test | ||
| 36 | public void fly() throws IOException { | ||
| 37 | String ontoDir = TestUtil.getConfig().getProperty("ontoDir"); | ||
| 38 | PagodaTester.main( | ||
| 39 | TestUtil.combinePaths(ontoDir, "fly/fly_anatomy_XP_with_GJ_FC_individuals.owl"), | ||
| 40 | TestUtil.combinePaths(ontoDir, "fly/queries/fly.sparql") | ||
| 41 | ); | ||
| 42 | TestUtil.copyFile("log4j.log", "results-backup/current/fly.out"); | ||
| 43 | } | ||
| 44 | |||
| 45 | @Test | ||
| 46 | public void dbpedia() throws IOException { | ||
| 47 | String ontoDir = TestUtil.getConfig().getProperty("ontoDir"); | ||
| 48 | PagodaTester.main( | ||
| 49 | TestUtil.combinePaths(ontoDir, "dbpedia/integratedOntology-all-in-one-minus-datatype.owl"), | ||
| 50 | TestUtil.combinePaths(ontoDir, "dbpedia/data/dbpedia-minus-datatype-new.ttl"), | ||
| 51 | TestUtil.combinePaths(ontoDir, "dbpedia/atomic.sparql") | ||
| 52 | ); | ||
| 53 | TestUtil.copyFile("log4j.log", "results-backup/current/dbpedia.out"); | ||
| 54 | } | ||
| 55 | |||
| 56 | @Test | ||
| 57 | public void npdWithoutDataType() throws IOException { | ||
| 58 | String ontoDir = TestUtil.getConfig().getProperty("ontoDir"); | ||
| 59 | PagodaTester.main( | ||
| 60 | TestUtil.combinePaths(ontoDir, "npd/npd-all-minus-datatype.owl"), | ||
| 61 | TestUtil.combinePaths(ontoDir, "npd/data/npd-data-dump-minus-datatype-new.ttl"), | ||
| 62 | TestUtil.combinePaths(ontoDir, "npd/queries/atomic.sparql") | ||
| 63 | ); | ||
| 64 | TestUtil.copyFile("log4j.log", "results-backup/current/npd_minus.out"); | ||
| 65 | } | ||
| 66 | |||
| 67 | } | 17 | } |
