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