aboutsummaryrefslogtreecommitdiff
path: root/test/uk/ac/ox/cs/pagoda/test_units/LightEvaluation.java
diff options
context:
space:
mode:
authorRncLsn <rnc.lsn@gmail.com>2015-05-07 19:26:24 +0100
committerRncLsn <rnc.lsn@gmail.com>2015-05-07 19:26:24 +0100
commit5be5fd3daa0d50980fb3791e904e035cdbca254f (patch)
tree8109fdd92d6a8f3b59b47f147d21e23b84301494 /test/uk/ac/ox/cs/pagoda/test_units/LightEvaluation.java
parent11a432bfc3cb11e07c68c4298fcec060ff1e25fa (diff)
downloadACQuA-5be5fd3daa0d50980fb3791e904e035cdbca254f.tar.gz
ACQuA-5be5fd3daa0d50980fb3791e904e035cdbca254f.zip
Making the output machine-readable (JSON).
Diffstat (limited to 'test/uk/ac/ox/cs/pagoda/test_units/LightEvaluation.java')
-rw-r--r--test/uk/ac/ox/cs/pagoda/test_units/LightEvaluation.java45
1 files changed, 25 insertions, 20 deletions
diff --git a/test/uk/ac/ox/cs/pagoda/test_units/LightEvaluation.java b/test/uk/ac/ox/cs/pagoda/test_units/LightEvaluation.java
index 29006de..932c178 100644
--- a/test/uk/ac/ox/cs/pagoda/test_units/LightEvaluation.java
+++ b/test/uk/ac/ox/cs/pagoda/test_units/LightEvaluation.java
@@ -2,7 +2,7 @@ package uk.ac.ox.cs.pagoda.test_units;
2 2
3import org.junit.Test; 3import org.junit.Test;
4import uk.ac.ox.cs.pagoda.tester.PagodaTester; 4import uk.ac.ox.cs.pagoda.tester.PagodaTester;
5import uk.ac.ox.cs.pagoda.util.Utility; 5import uk.ac.ox.cs.pagoda.util.TestUtil;
6 6
7import java.io.IOException; 7import java.io.IOException;
8 8
@@ -11,52 +11,57 @@ public class LightEvaluation {
11 @Test 11 @Test
12 public void uobm1() throws IOException { 12 public void uobm1() throws IOException {
13 int number = 1; 13 int number = 1;
14 String ontoDir = TestUtil.getConfig().getProperty("ontoDir");
14 PagodaTester.main( 15 PagodaTester.main(
15 PagodaTester.onto_dir + "uobm/univ-bench-dl.owl", 16 TestUtil.combinePaths(ontoDir, "uobm/univ-bench-dl.owl"),
16 PagodaTester.onto_dir + "uobm/data/uobm" + number + ".ttl", 17 TestUtil.combinePaths(ontoDir, "uobm/data/uobm" + number + ".ttl"),
17 PagodaTester.onto_dir + "uobm/queries/standard.sparql" 18 TestUtil.combinePaths(ontoDir, "uobm/queries/standard.sparql")
18 ); 19 );
19 Utility.copyFile("log4j.log", "output/jair/uobm1.out"); 20 TestUtil.copyFile("log4j.log", "output/jair/uobm1.out");
20 } 21 }
21 22
22 @Test 23 @Test
23 public void lubm100() throws IOException { 24 public void lubm100() throws IOException {
24 int number = 100; 25 int number = 100;
26 String ontoDir = TestUtil.getConfig().getProperty("ontoDir");
25 PagodaTester.main( 27 PagodaTester.main(
26 PagodaTester.onto_dir + "lubm/univ-bench.owl", 28 TestUtil.combinePaths(ontoDir, "lubm/univ-bench.owl"),
27 PagodaTester.onto_dir + "lubm/data/lubm" + number + ".ttl", 29 TestUtil.combinePaths(ontoDir, "lubm/data/lubm" + number + ".ttl"),
28 PagodaTester.onto_dir + "lubm/queries/test.sparql" 30 TestUtil.combinePaths(ontoDir, "lubm/queries/test.sparql")
29 ); 31 );
30 Utility.copyFile("log4j.log", "results-backup/current/lubm100.out"); 32 TestUtil.copyFile("log4j.log", "results-backup/current/lubm100.out");
31 } 33 }
32 34
33 @Test 35 @Test
34 public void fly() throws IOException { 36 public void fly() throws IOException {
37 String ontoDir = TestUtil.getConfig().getProperty("ontoDir");
35 PagodaTester.main( 38 PagodaTester.main(
36 PagodaTester.onto_dir + "fly/fly_anatomy_XP_with_GJ_FC_individuals.owl", 39 TestUtil.combinePaths(ontoDir, "fly/fly_anatomy_XP_with_GJ_FC_individuals.owl"),
37 PagodaTester.onto_dir + "fly/queries/fly.sparql" 40 TestUtil.combinePaths(ontoDir, "fly/queries/fly.sparql")
38 ); 41 );
39 Utility.copyFile("log4j.log", "results-backup/current/fly.out"); 42 TestUtil.copyFile("log4j.log", "results-backup/current/fly.out");
40 } 43 }
41 44
42 @Test 45 @Test
43 public void dbpedia() throws IOException { 46 public void dbpedia() throws IOException {
47 String ontoDir = TestUtil.getConfig().getProperty("ontoDir");
44 PagodaTester.main( 48 PagodaTester.main(
45 PagodaTester.onto_dir + "dbpedia/integratedOntology-all-in-one-minus-datatype.owl", 49 TestUtil.combinePaths(ontoDir, "dbpedia/integratedOntology-all-in-one-minus-datatype.owl"),
46 PagodaTester.onto_dir + "dbpedia/data/dbpedia-minus-datatype-new.ttl", 50 TestUtil.combinePaths(ontoDir, "dbpedia/data/dbpedia-minus-datatype-new.ttl"),
47 PagodaTester.onto_dir + "dbpedia/atomic.sparql" 51 TestUtil.combinePaths(ontoDir, "dbpedia/atomic.sparql")
48 ); 52 );
49 Utility.copyFile("log4j.log", "results-backup/current/dbpedia.out"); 53 TestUtil.copyFile("log4j.log", "results-backup/current/dbpedia.out");
50 } 54 }
51 55
52 @Test 56 @Test
53 public void npdWithoutDataType() throws IOException { 57 public void npdWithoutDataType() throws IOException {
58 String ontoDir = TestUtil.getConfig().getProperty("ontoDir");
54 PagodaTester.main( 59 PagodaTester.main(
55 PagodaTester.onto_dir + "npd/npd-all-minus-datatype.owl", 60 TestUtil.combinePaths(ontoDir, "npd/npd-all-minus-datatype.owl"),
56 PagodaTester.onto_dir + "npd/data/npd-data-dump-minus-datatype-new.ttl", 61 TestUtil.combinePaths(ontoDir, "npd/data/npd-data-dump-minus-datatype-new.ttl"),
57 PagodaTester.onto_dir + "npd/queries/atomic.sparql" 62 TestUtil.combinePaths(ontoDir, "npd/queries/atomic.sparql")
58 ); 63 );
59 Utility.copyFile("log4j.log", "results-backup/current/npd_minus.out"); 64 TestUtil.copyFile("log4j.log", "results-backup/current/npd_minus.out");
60 } 65 }
61 66
62} 67}