aboutsummaryrefslogtreecommitdiff
path: root/test/uk/ac/ox/cs/pagoda/global_tests/TestPagodaUOBM.java
diff options
context:
space:
mode:
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.java52
1 files changed, 52 insertions, 0 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 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}