From c7dbc7c61c7094ea4ec49bd630023f23b92fd9d1 Mon Sep 17 00:00:00 2001 From: RncLsn Date: Mon, 18 May 2015 18:27:32 +0100 Subject: Configured Maven and improved executable class and tests. --- test/uk/ac/ox/cs/hermit/JAIR_HermiT.java | 69 ++++++++++++++++++-------------- 1 file changed, 39 insertions(+), 30 deletions(-) (limited to 'test/uk/ac/ox/cs/hermit') diff --git a/test/uk/ac/ox/cs/hermit/JAIR_HermiT.java b/test/uk/ac/ox/cs/hermit/JAIR_HermiT.java index 2fc478d..a3264ba 100644 --- a/test/uk/ac/ox/cs/hermit/JAIR_HermiT.java +++ b/test/uk/ac/ox/cs/hermit/JAIR_HermiT.java @@ -1,17 +1,17 @@ package uk.ac.ox.cs.hermit; import org.junit.Test; - -import uk.ac.ox.cs.pagoda.tester.PagodaTester; +import uk.ac.ox.cs.pagoda.util.TestUtil; public class JAIR_HermiT { @Test public void lubm1() throws Exception { + String ontoDir = TestUtil.getConfig().getProperty("ontoDir"); String[] args = new String[] { - PagodaTester.onto_dir + "lubm/univ-bench.owl", - PagodaTester.onto_dir + "lubm/data/lubm1_owl", - PagodaTester.onto_dir + "lubm/queries/test.sparql" + TestUtil.combinePaths(ontoDir, "lubm/univ-bench.owl"), + TestUtil.combinePaths(ontoDir, "lubm/data/lubm1_owl"), + TestUtil.combinePaths(ontoDir, "lubm/queries/test.sparql") // , "/home/yzhou/java-workspace/test-share/results_new/lubm1/hermit" }; HermitQueryReasoner.main(args); @@ -19,10 +19,11 @@ public class JAIR_HermiT { @Test public void lubm1_rolledUp() throws Exception { + String ontoDir = TestUtil.getConfig().getProperty("ontoDir"); String[] args = new String[] { "/home/yzhou/backup/20141212/univ-bench-queries.owl", - PagodaTester.onto_dir + "lubm/data/lubm1_owl", - PagodaTester.onto_dir + "lubm/queries/atomic_lubm.sparql" + TestUtil.combinePaths(ontoDir, "lubm/data/lubm1_owl"), + TestUtil.combinePaths(ontoDir, "lubm/queries/atomic_lubm.sparql") // , "/home/yzhou/java-workspace/test-share/results_new/lubm1/hermit_rolledUp" }; HermitQueryReasoner.main(args); @@ -30,10 +31,11 @@ public class JAIR_HermiT { @Test public void uobm1() throws Exception { + String ontoDir = TestUtil.getConfig().getProperty("ontoDir"); String[] args = new String[] { - PagodaTester.onto_dir + "uobm/univ-bench-dl.owl", - PagodaTester.onto_dir + "uobm/data/uobm1_owl_withDeclaration", - PagodaTester.onto_dir + "uobm/queries/standard.sparql" + TestUtil.combinePaths(ontoDir, "uobm/univ-bench-dl.owl"), + TestUtil.combinePaths(ontoDir, "uobm/data/uobm1_owl_withDeclaration"), + TestUtil.combinePaths(ontoDir, "uobm/queries/standard.sparql") // , "hermit_uobm1.out" // , "/home/yzhou/java-workspace/test-share/results_new/uobm1/hermit" }; @@ -42,10 +44,11 @@ public class JAIR_HermiT { @Test public void uobm1_rolledUp() throws Exception { + String ontoDir = TestUtil.getConfig().getProperty("ontoDir"); String[] args = new String[] { "/home/yzhou/backup/20141212/univ-bench-dl-queries.owl", - PagodaTester.onto_dir + "uobm/data/uobm1_owl_withDeclaration", - PagodaTester.onto_dir + "uobm/queries/atomic_uobm.sparql" + TestUtil.combinePaths(ontoDir, "uobm/data/uobm1_owl_withDeclaration"), + TestUtil.combinePaths(ontoDir, "uobm/queries/atomic_uobm.sparql") , "hermit_uobm1_rolledUp.out" // , "/home/yzhou/java-workspace/test-share/results_new/uobm1/hermit_rolledUp" }; @@ -54,21 +57,23 @@ public class JAIR_HermiT { @Test public void fly_rolledUp() throws Exception { + String ontoDir = TestUtil.getConfig().getProperty("ontoDir"); HermitQueryReasoner.main( - PagodaTester.onto_dir + "fly/fly-all-in-one_rolledUp.owl", -// PagodaTester.onto_dir + "fly/fly_anatomy_XP_with_GJ_FC_individuals.owl", + TestUtil.combinePaths(ontoDir, "fly/fly-all-in-one_rolledUp.owl"), +// TestUtil.combinePaths(ontoDir, "fly/fly_anatomy_XP_with_GJ_FC_individuals.owl", null, - PagodaTester.onto_dir + "fly/queries/fly_atomic.sparql" + TestUtil.combinePaths(ontoDir, "fly/queries/fly_atomic.sparql") , "hermit_fly.out" ); } @Test public void npd() throws Exception { + String ontoDir = TestUtil.getConfig().getProperty("ontoDir"); HermitQueryReasoner.main( - PagodaTester.onto_dir + "npd/npd-all-minus-datatype.owl", - PagodaTester.onto_dir + "npd/data/npd-data-dump-minus-datatype-new.ttl", - PagodaTester.onto_dir + "npd/queries/atomic_ground.sparql" + TestUtil.combinePaths(ontoDir, "npd/npd-all-minus-datatype.owl"), + TestUtil.combinePaths(ontoDir, "npd/data/npd-data-dump-minus-datatype-new.ttl"), + TestUtil.combinePaths(ontoDir, "npd/queries/atomic_ground.sparql") , "hermit_npd.out" // , "/home/yzhou/java-workspace/test-share/results_new/npd/hermit" ); @@ -76,31 +81,34 @@ public class JAIR_HermiT { @Test public void dbpedia() throws Exception { + String ontoDir = TestUtil.getConfig().getProperty("ontoDir"); HermitQueryReasoner.main( - PagodaTester.onto_dir + "dbpedia/integratedOntology-all-in-one-minus-datatype.owl", - PagodaTester.onto_dir + "dbpedia/data/dbpedia-minus-datatype-new.ttl", - PagodaTester.onto_dir + "dbpedia/queries/atomic_ground.sparql" + TestUtil.combinePaths(ontoDir, "dbpedia/integratedOntology-all-in-one-minus-datatype.owl"), + TestUtil.combinePaths(ontoDir, "dbpedia/data/dbpedia-minus-datatype-new.ttl"), + TestUtil.combinePaths(ontoDir, "dbpedia/queries/atomic_ground.sparql") , "/home/yzhou/java-workspace/test-share/results_new/dbpedia/hermit" ); } @Test public void reactome() throws Exception { + String ontoDir = TestUtil.getConfig().getProperty("ontoDir"); HermitQueryReasoner.main( - PagodaTester.onto_dir + "bio2rdf/reactome/biopax-level3-processed.owl", - PagodaTester.onto_dir + "bio2rdf/reactome/graph sampling/reactome_sample_10.ttl", - PagodaTester.onto_dir + "bio2rdf/reactome/queries/atomic_ground.sparql" + TestUtil.combinePaths(ontoDir, "bio2rdf/reactome/biopax-level3-processed.owl"), + TestUtil.combinePaths(ontoDir, "bio2rdf/reactome/graph sampling/reactome_sample_10.ttl"), + TestUtil.combinePaths(ontoDir, "bio2rdf/reactome/queries/atomic_ground.sparql") , "/home/yzhou/java-workspace/test-share/results_new/reactome/hermit_10p" ); } @Test public void chembl() throws Exception { + String ontoDir = TestUtil.getConfig().getProperty("ontoDir"); HermitQueryReasoner.main( - PagodaTester.onto_dir + "bio2rdf/chembl/cco-noDPR.ttl", + TestUtil.combinePaths(ontoDir, "bio2rdf/chembl/cco-noDPR.ttl"), // null, - PagodaTester.onto_dir + "bio2rdf/chembl/graph sampling/sample_1.nt", - PagodaTester.onto_dir + "bio2rdf/chembl/queries/atomic_ground.sparql" + TestUtil.combinePaths(ontoDir, "bio2rdf/chembl/graph sampling/sample_1.nt"), + TestUtil.combinePaths(ontoDir, "bio2rdf/chembl/queries/atomic_ground.sparql") , "hermit_chembl.out" // , "/home/yzhou/java-workspace/test-share/results_new/chembl/hermit_1p" ); @@ -108,10 +116,11 @@ public class JAIR_HermiT { @Test public void uniprot() throws Exception { + String ontoDir = TestUtil.getConfig().getProperty("ontoDir"); HermitQueryReasoner.main( - PagodaTester.onto_dir + "bio2rdf/uniprot/core-sat.owl", - PagodaTester.onto_dir + "bio2rdf/uniprot/graph sampling/sample_1.nt", - PagodaTester.onto_dir + "bio2rdf/uniprot/queries/atomic_ground.sparql" + TestUtil.combinePaths(ontoDir, "bio2rdf/uniprot/core-sat.owl"), + TestUtil.combinePaths(ontoDir, "bio2rdf/uniprot/graph sampling/sample_1.nt"), + TestUtil.combinePaths(ontoDir, "bio2rdf/uniprot/queries/atomic_ground.sparql") , "hermit_uniprot.out" // , "/home/yzhou/java-workspace/test-share/results_new/uniprot/hermit_1p" ); -- cgit v1.2.3