diff options
| author | RncLsn <rnc.lsn@gmail.com> | 2015-06-04 12:34:11 +0100 |
|---|---|---|
| committer | RncLsn <rnc.lsn@gmail.com> | 2015-06-04 12:34:11 +0100 |
| commit | 9c9434162daf7c25dda9e9ff188ab90eb65f1fb1 (patch) | |
| tree | afe35e75cf5afcc9cb5e24da8ddb342cd45c0802 /test/uk/ac/ox/cs/pagoda/global_tests | |
| parent | a840a197549ced185f212b2aa74abed8774c8b5c (diff) | |
| download | ACQuA-9c9434162daf7c25dda9e9ff188ab90eb65f1fb1.tar.gz ACQuA-9c9434162daf7c25dda9e9ff188ab90eb65f1fb1.zip | |
New queries for LUBM and UOBM, automatically generated by SyGENiA.
Diffstat (limited to 'test/uk/ac/ox/cs/pagoda/global_tests')
| -rw-r--r-- | test/uk/ac/ox/cs/pagoda/global_tests/TestPagodaLUBM.java | 48 | ||||
| -rw-r--r-- | test/uk/ac/ox/cs/pagoda/global_tests/TestPagodaUOBM.java | 52 |
2 files changed, 100 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 index 1db4a43..089a7d2 100644 --- a/test/uk/ac/ox/cs/pagoda/global_tests/TestPagodaLUBM.java +++ b/test/uk/ac/ox/cs/pagoda/global_tests/TestPagodaLUBM.java | |||
| @@ -35,4 +35,52 @@ public class TestPagodaLUBM { | |||
| 35 | public void answersCorrectness_1() throws IOException { | 35 | public void answersCorrectness_1() throws IOException { |
| 36 | answersCorrectness(1); | 36 | answersCorrectness(1); |
| 37 | } | 37 | } |
| 38 | |||
| 39 | public void justExecute_sygenia(int number) throws IOException { | ||
| 40 | String ontoDir = TestUtil.getConfig().getProperty("ontoDir"); | ||
| 41 | // Path answers = Paths.get(File.createTempFile("answers", ".json").getAbsolutePath()); | ||
| 42 | // new File(answers.toString()).deleteOnExit(); | ||
| 43 | // Path givenAnswers = TestUtil.getAnswersFilePath("answers/pagoda-lubm" + number + ".json"); | ||
| 44 | |||
| 45 | Pagoda pagoda = Pagoda.builder() | ||
| 46 | .ontology(Paths.get(ontoDir, "lubm/univ-bench.owl")) | ||
| 47 | .data(Paths.get(ontoDir, "lubm/data/lubm" + number + ".ttl")) | ||
| 48 | .query(Paths.get(ontoDir, "lubm/queries/lubm_sygenia.sparql")) | ||
| 49 | // .answer(answers) | ||
| 50 | .classify(true) | ||
| 51 | .hermit(true) | ||
| 52 | .build(); | ||
| 53 | |||
| 54 | pagoda.run(); | ||
| 55 | // CheckAnswers.assertSameAnswers(answers, givenAnswers); | ||
| 56 | } | ||
| 57 | |||
| 58 | @Test(groups = {"sygenia"}) | ||
| 59 | public void justExecute_sygenia_1() throws IOException { | ||
| 60 | justExecute_sygenia(1); | ||
| 61 | } | ||
| 62 | |||
| 63 | public void justExecute_sygenia_allBlanks(int number) throws IOException { | ||
| 64 | String ontoDir = TestUtil.getConfig().getProperty("ontoDir"); | ||
| 65 | // Path answers = Paths.get(File.createTempFile("answers", ".json").getAbsolutePath()); | ||
| 66 | // new File(answers.toString()).deleteOnExit(); | ||
| 67 | // Path givenAnswers = TestUtil.getAnswersFilePath("answers/pagoda-lubm" + number + ".json"); | ||
| 68 | |||
| 69 | Pagoda pagoda = Pagoda.builder() | ||
| 70 | .ontology(Paths.get(ontoDir, "lubm/univ-bench.owl")) | ||
| 71 | .data(Paths.get(ontoDir, "lubm/data/lubm" + number + ".ttl")) | ||
| 72 | .query(Paths.get(ontoDir, "lubm/queries/lubm_sygenia_all-blanks.sparql")) | ||
| 73 | // .answer(answers) | ||
| 74 | .classify(true) | ||
| 75 | .hermit(true) | ||
| 76 | .build(); | ||
| 77 | |||
| 78 | pagoda.run(); | ||
| 79 | // CheckAnswers.assertSameAnswers(answers, givenAnswers); | ||
| 80 | } | ||
| 81 | |||
| 82 | @Test(groups = {"sygenia"}) | ||
| 83 | public void justExecute_sygenia_1_allBlanks() throws IOException { | ||
| 84 | justExecute_sygenia_allBlanks(1); | ||
| 85 | } | ||
| 38 | } | 86 | } |
diff --git a/test/uk/ac/ox/cs/pagoda/global_tests/TestPagodaUOBM.java b/test/uk/ac/ox/cs/pagoda/global_tests/TestPagodaUOBM.java index 4f49fe0..d05e3b1 100644 --- a/test/uk/ac/ox/cs/pagoda/global_tests/TestPagodaUOBM.java +++ b/test/uk/ac/ox/cs/pagoda/global_tests/TestPagodaUOBM.java | |||
| @@ -48,5 +48,57 @@ public class TestPagodaUOBM { | |||
| 48 | pagoda.run(); | 48 | pagoda.run(); |
| 49 | CheckAnswers.assertSameAnswers(answers, givenAnswers); | 49 | CheckAnswers.assertSameAnswers(answers, givenAnswers); |
| 50 | } | 50 | } |
| 51 | |||
| 52 | @Test(groups = {"sygenia"}) | ||
| 53 | public void answersCorrectness_sygenia_1() throws IOException { | ||
| 54 | answersCorrectness_sygenia(1); | ||
| 55 | } | ||
| 56 | |||
| 57 | @Test(groups = {"heavy",}, dataProvider = "UOBMNumbers") | ||
| 58 | public void answersCorrectness_sygenia(int number) throws IOException { | ||
| 59 | String ontoDir = TestUtil.getConfig().getProperty("ontoDir"); | ||
| 60 | // Path answers = Paths.get(File.createTempFile("answers", ".json").getAbsolutePath()); | ||
| 61 | // new File(answers.toString()).deleteOnExit(); | ||
| 62 | // Path givenAnswers = TestUtil.getAnswersFilePath("answers/pagoda-uobm" + number + ".json"); | ||
| 63 | |||
| 64 | Pagoda pagoda = Pagoda.builder() | ||
| 65 | .ontology(Paths.get(ontoDir, "uobm/univ-bench-dl.owl")) | ||
| 66 | .data(Paths.get(ontoDir, "uobm/data/uobm" + number + ".ttl")) | ||
| 67 | .query(Paths.get(ontoDir, "uobm/queries/uobm_sygenia.sparql")) | ||
| 68 | // .answer(answers) | ||
| 69 | .classify(true) | ||
| 70 | .hermit(true) | ||
| 71 | .build(); | ||
| 72 | |||
| 73 | pagoda.run(); | ||
| 74 | // CheckAnswers.assertSameAnswers(answers, givenAnswers); | ||
| 75 | } | ||
| 76 | |||
| 77 | @Test(groups = {"sygenia"}) | ||
| 78 | public void answersCorrectness_sygenia_allBlanks_1() throws IOException { | ||
| 79 | answersCorrectness_sygenia(1); | ||
| 80 | } | ||
| 81 | |||
| 82 | @Test(groups = {"heavy",}, dataProvider = "UOBMNumbers") | ||
| 83 | public void answersCorrectness_sygenia_allBlanks(int number) throws IOException { | ||
| 84 | String ontoDir = TestUtil.getConfig().getProperty("ontoDir"); | ||
| 85 | // Path answers = Paths.get(File.createTempFile("answers", ".json").getAbsolutePath()); | ||
| 86 | // new File(answers.toString()).deleteOnExit(); | ||
| 87 | // Path givenAnswers = TestUtil.getAnswersFilePath("answers/pagoda-uobm" + number + ".json"); | ||
| 88 | |||
| 89 | Pagoda pagoda = Pagoda.builder() | ||
| 90 | .ontology(Paths.get(ontoDir, "uobm/univ-bench-dl.owl")) | ||
| 91 | .data(Paths.get(ontoDir, "uobm/data/uobm" + number + ".ttl")) | ||
| 92 | .query(Paths.get(ontoDir, "uobm/queries/uobm_sygenia_all-blanks.sparql")) | ||
| 93 | // .answer(answers) | ||
| 94 | .classify(true) | ||
| 95 | .hermit(true) | ||
| 96 | .build(); | ||
| 97 | |||
| 98 | pagoda.run(); | ||
| 99 | // CheckAnswers.assertSameAnswers(answers, givenAnswers); | ||
| 100 | } | ||
| 101 | |||
| 102 | |||
| 51 | 103 | ||
| 52 | } | 104 | } |
