From 17bd9beaf7f358a44e5bf36a5855fe6727d506dc Mon Sep 17 00:00:00 2001 From: Federico Igne Date: Tue, 10 May 2022 18:17:06 +0100 Subject: [pagoda] Move project to Scala This commit includes a few changes: - The repository still uses Maven to manage dependency but it is now a Scala project. - The code has been ported from OWLAPI 3.4.10 to 5.1.20 - A proof of concept program using both RSAComb and PAGOdA has been added. --- .../ox/cs/pagoda/global_tests/TestPagodaLUBM.java | 92 ---------------------- 1 file changed, 92 deletions(-) delete mode 100644 test/uk/ac/ox/cs/pagoda/global_tests/TestPagodaLUBM.java (limited to 'test/uk/ac/ox/cs/pagoda/global_tests/TestPagodaLUBM.java') diff --git a/test/uk/ac/ox/cs/pagoda/global_tests/TestPagodaLUBM.java b/test/uk/ac/ox/cs/pagoda/global_tests/TestPagodaLUBM.java deleted file mode 100644 index 019fafa..0000000 --- a/test/uk/ac/ox/cs/pagoda/global_tests/TestPagodaLUBM.java +++ /dev/null @@ -1,92 +0,0 @@ -package uk.ac.ox.cs.pagoda.global_tests; - -import org.testng.annotations.Test; -import uk.ac.ox.cs.pagoda.Pagoda; -import uk.ac.ox.cs.pagoda.query.CheckAnswers; -import uk.ac.ox.cs.pagoda.util.TestUtil; - -import java.io.File; -import java.io.IOException; -import java.nio.file.Path; -import java.nio.file.Paths; - -public class TestPagodaLUBM { - - public void answersCorrectness(int number) throws IOException { - String ontoDir = TestUtil.getConfig().getProperty("ontoDir"); - Path answers = Paths.get(File.createTempFile("answers", ".json").getAbsolutePath()); - new File(answers.toString()).deleteOnExit(); - Path givenAnswers = TestUtil.getAnswersFilePath("answers/pagoda-lubm" + number + ".json"); - - Pagoda pagoda = Pagoda.builder() - .ontology(Paths.get(ontoDir, "lubm/univ-bench.owl")) - .data(Paths.get(ontoDir, "lubm/data/lubm" + number + ".ttl")) - .query(Paths.get(ontoDir, "lubm/queries/test.sparql")) - .answer(answers) - .build(); - - pagoda.run(); - CheckAnswers.assertSameAnswers(answers, givenAnswers); - } - - @Test(groups = {"light", "correctness"}) - public void answersCorrectness_1() throws IOException { - answersCorrectness(1); - } - - public void justExecute_sygenia(int number) throws IOException { - String ontoDir = TestUtil.getConfig().getProperty("ontoDir"); -// Path answers = Paths.get(File.createTempFile("answers", ".json").getAbsolutePath()); -// new File(answers.toString()).deleteOnExit(); -// Path givenAnswers = TestUtil.getAnswersFilePath("answers/pagoda-lubm" + number + ".json"); - - Pagoda pagoda = Pagoda.builder() - .ontology(Paths.get(ontoDir, "lubm/univ-bench.owl")) - .data(Paths.get(ontoDir, "lubm/data/lubm" + number + ".ttl")) - .query(Paths.get(ontoDir, "lubm/queries/lubm_sygenia.sparql")) -// .answer(answers) - .build(); - - pagoda.run(); -// CheckAnswers.assertSameAnswers(answers, givenAnswers); - } - - @Test(groups = {"sygenia"}) - public void justExecute_sygenia_1() throws IOException { - justExecute_sygenia(1); - } - - public void justExecute_sygenia_allBlanks(int number) throws IOException { - String ontoDir = TestUtil.getConfig().getProperty("ontoDir"); -// Path answers = Paths.get(File.createTempFile("answers", ".json").getAbsolutePath()); -// new File(answers.toString()).deleteOnExit(); -// Path givenAnswers = TestUtil.getAnswersFilePath("answers/pagoda-lubm" + number + ".json"); - - Pagoda pagoda = Pagoda.builder() - .ontology(Paths.get(ontoDir, "lubm/univ-bench.owl")) - .data(Paths.get(ontoDir, "lubm/data/lubm" + number + ".ttl")) - .query(Paths.get(ontoDir, "lubm/queries/lubm_sygenia_all-blanks.sparql")) -// .answer(answers) - .build(); - - pagoda.run(); -// CheckAnswers.assertSameAnswers(answers, givenAnswers); - } - - @Test(groups = {"sygenia"}) - public void justExecute_sygenia_1_allBlanks() throws IOException { - justExecute_sygenia_allBlanks(1); - } - - @Test(groups = {"existential"}) - public void justExecute_feier() throws IOException { - String ontoDir = TestUtil.getConfig().getProperty("ontoDir"); - - Pagoda.builder() - .ontology(Paths.get(ontoDir, "lubm/univ-bench.owl")) - .data(Paths.get(ontoDir, "lubm/data/lubm1.ttl")) - .query(Paths.get(ontoDir, "lubm/queries/queries_from_rules.sparql")) - .build() - .run(); - } -} -- cgit v1.2.3