diff options
| author | RncLsn <rnc.lsn@gmail.com> | 2015-06-16 15:54:53 +0100 |
|---|---|---|
| committer | RncLsn <rnc.lsn@gmail.com> | 2015-06-16 15:54:53 +0100 |
| commit | 7cd962751db2a88f426b8b9d7b9dd0d76e2cc1b5 (patch) | |
| tree | a271283211f9a156e7cb04f578a94a3ca5d0d0f7 /test/uk/ac/ox/cs/pagoda/global_tests/TestPagodaUOBM.java | |
| parent | 3a276b7c7836e56a171ab753b018913ce022ba8e (diff) | |
| download | ACQuA-7cd962751db2a88f426b8b9d7b9dd0d76e2cc1b5.tar.gz ACQuA-7cd962751db2a88f426b8b9d7b9dd0d76e2cc1b5.zip | |
Maybe fixed bug in internalisation.
Diffstat (limited to 'test/uk/ac/ox/cs/pagoda/global_tests/TestPagodaUOBM.java')
| -rw-r--r-- | test/uk/ac/ox/cs/pagoda/global_tests/TestPagodaUOBM.java | 37 |
1 files changed, 13 insertions, 24 deletions
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 1d9f1e6..6daeacc 100644 --- a/test/uk/ac/ox/cs/pagoda/global_tests/TestPagodaUOBM.java +++ b/test/uk/ac/ox/cs/pagoda/global_tests/TestPagodaUOBM.java | |||
| @@ -65,13 +65,11 @@ public class TestPagodaUOBM { | |||
| 65 | .ontology(Paths.get(ontoDir, "uobm/univ-bench-dl.owl")) | 65 | .ontology(Paths.get(ontoDir, "uobm/univ-bench-dl.owl")) |
| 66 | .data(Paths.get(ontoDir, "uobm/data/uobm" + number + ".ttl")) | 66 | .data(Paths.get(ontoDir, "uobm/data/uobm" + number + ".ttl")) |
| 67 | .query(Paths.get(ontoDir, "uobm/queries/uobm_sygenia.sparql")) | 67 | .query(Paths.get(ontoDir, "uobm/queries/uobm_sygenia.sparql")) |
| 68 | // .answer(answers) | ||
| 69 | .classify(true) | 68 | .classify(true) |
| 70 | .hermit(true) | 69 | .hermit(true) |
| 71 | .build(); | 70 | .build(); |
| 72 | 71 | ||
| 73 | pagoda.run(); | 72 | pagoda.run(); |
| 74 | // CheckAnswers.assertSameAnswers(answers, givenAnswers); | ||
| 75 | } | 73 | } |
| 76 | 74 | ||
| 77 | @Test(groups = {"sygenia"}) | 75 | @Test(groups = {"sygenia"}) |
| @@ -82,21 +80,14 @@ public class TestPagodaUOBM { | |||
| 82 | @Test(groups = {"heavy"}, dataProvider = "UOBMNumbers") | 80 | @Test(groups = {"heavy"}, dataProvider = "UOBMNumbers") |
| 83 | public void answersCorrectness_sygenia_allBlanks(int number) throws IOException { | 81 | public void answersCorrectness_sygenia_allBlanks(int number) throws IOException { |
| 84 | String ontoDir = TestUtil.getConfig().getProperty("ontoDir"); | 82 | 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 | 83 | ||
| 98 | pagoda.run(); | 84 | Pagoda.builder() |
| 99 | // CheckAnswers.assertSameAnswers(answers, givenAnswers); | 85 | .ontology(Paths.get(ontoDir, "uobm/univ-bench-dl.owl")) |
| 86 | .data(Paths.get(ontoDir, "uobm/data/uobm" + number + ".ttl")) | ||
| 87 | .query(Paths.get(ontoDir, "uobm/queries/uobm_sygenia_all-blanks.sparql")) | ||
| 88 | .classify(true) | ||
| 89 | .hermit(true) | ||
| 90 | .build().run(); | ||
| 100 | } | 91 | } |
| 101 | 92 | ||
| 102 | @Test(groups = {"justExecute"}) | 93 | @Test(groups = {"justExecute"}) |
| @@ -104,14 +95,12 @@ public class TestPagodaUOBM { | |||
| 104 | String ontoDir = TestUtil.getConfig().getProperty("ontoDir"); | 95 | String ontoDir = TestUtil.getConfig().getProperty("ontoDir"); |
| 105 | 96 | ||
| 106 | Pagoda.builder() | 97 | Pagoda.builder() |
| 107 | .ontology(Paths.get(ontoDir, "uobm/univ-bench-dl.owl")) | 98 | .ontology(Paths.get(ontoDir, "uobm/univ-bench-dl-modified.owl")) |
| 108 | .data(Paths.get(ontoDir, "uobm/data/uobm1.ttl")) | 99 | .data(Paths.get(ontoDir, "uobm/data/uobm1.ttl")) |
| 109 | .query(Paths.get(ontoDir, "uobm/queries/existential_queries.sparql")) | 100 | .query(Paths.get(ontoDir, "uobm/queries/existential_queries.sparql")) |
| 110 | // .answer(answers) | 101 | .classify(true) |
| 111 | .classify(true) | 102 | .hermit(true) |
| 112 | .hermit(true) | 103 | .build() |
| 113 | .skolem(false) | 104 | .run(); |
| 114 | .build() | ||
| 115 | .run(); | ||
| 116 | } | 105 | } |
| 117 | } | 106 | } |
