aboutsummaryrefslogtreecommitdiff
path: root/test/uk/ac/ox/cs/pagoda/junit/JAIR_PAGOdA.java
blob: 2a148ccc6ef6b01abcb46fda8daadf8709cddc6d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
package uk.ac.ox.cs.pagoda.junit;

import org.junit.Test;

import uk.ac.ox.cs.pagoda.tester.PagodaTester;

public class JAIR_PAGOdA {

	public void lubm1() {
		String[] args = new String[] {
				PagodaTester.onto_dir + "lubm/univ-bench.owl",
				PagodaTester.onto_dir + "lubm/data/lubm1.ttl",
				PagodaTester.onto_dir + "lubm/queries/test.sparql" 
		};
		PagodaTester.main(args);
		AllTests.copy("output/log4j.log", "/home/yzhou/java-workspace/test-share/results_new/lubm1/pagoda"); 
	}
	
	
	public void lubm1_conj() {
		String[] args = new String[] {
				PagodaTester.onto_dir + "lubm/univ-bench.owl",
				PagodaTester.onto_dir + "lubm/data/lubm1.ttl",
				PagodaTester.onto_dir + "lubm/queries/test_pellet.sparql" 
		};
		PagodaTester.main(args);
		AllTests.copy("output/log4j.log", "/home/yzhou/java-workspace/test-share/results_new/lubm1/pagoda_conj"); 
	}
	
	
	public void lubm1_rolledUp() {
		String[] args = new String[] {
				"/home/yzhou/backup/20141212/univ-bench-queries.owl",
				PagodaTester.onto_dir + "lubm/data/lubm1.ttl",
				PagodaTester.onto_dir + "lubm/queries/atomic_lubm.sparql" 
		};
		PagodaTester.main(args);
		AllTests.copy("output/log4j.log", "/home/yzhou/java-workspace/test-share/results_new/lubm1/pagoda_rolledUp"); 
	}
	
	
	public void uobm1() {
		String[] args = new String[] {
				PagodaTester.onto_dir + "uobm/univ-bench-dl.owl",
				PagodaTester.onto_dir + "uobm/data/uobm1.ttl",
				PagodaTester.onto_dir + "uobm/queries/standard.sparql" 
		};
		PagodaTester.main(args);
		AllTests.copy("output/log4j.log", "/home/yzhou/java-workspace/test-share/results_new/uobm1/pagoda"); 
	}
	
	
	public void uobm1_conj() {
		String[] args = new String[] {
				PagodaTester.onto_dir + "uobm/univ-bench-dl.owl",
				PagodaTester.onto_dir + "uobm/data/uobm1.ttl",
				PagodaTester.onto_dir + "uobm/queries/standard_pellet.sparql" 
		};
		PagodaTester.main(args);
		AllTests.copy("output/log4j.log", "/home/yzhou/java-workspace/test-share/results_new/uobm1/pagoda_conj"); 
	}

	
	public void uobm1_rolledUp() {
		String[] args = new String[] {
				"/home/yzhou/backup/20141212/univ-bench-dl-queries.owl",
				PagodaTester.onto_dir + "uobm/data/uobm1.ttl",
				PagodaTester.onto_dir + "uobm/queries/atomic_uobm.sparql" 
		};
		PagodaTester.main(args);
//		AllTests.copy("output/log4j.log", "/home/yzhou/java-workspace/test-share/results_new/uobm1/pagoda_rolledUp"); 
	}
	
	
	public void fly() {
		String[] args = new String[] {
				PagodaTester.onto_dir + "fly/fly_anatomy_XP_with_GJ_FC_individuals.owl",
				null, 
				PagodaTester.onto_dir + "fly/queries/fly_pellet.sparql" 
		};
		PagodaTester.main(args);
//		AllTests.copy("output/log4j.log", "/home/yzhou/java-workspace/test-share/results_new/fly/pagoda"); 
	}
	
	@Test
	public void fly_conj() {
		String[] args = new String[] {
				PagodaTester.onto_dir + "fly/fly_anatomy_XP_with_GJ_FC_individuals.owl",
				null, 
				PagodaTester.onto_dir + "fly/queries/fly_pellet.sparql" 
		};
		PagodaTester.main(args);
		AllTests.copy("output/log4j.log", "/home/yzhou/java-workspace/test-share/results_new/fly/pagoda_conj"); 
	}
	
	
	public void fly_rolledUp() {
		PagodaTester.main(new String[] {
//				PagodaTester.onto_dir + "fly/fly_anatomy_XP_with_GJ_FC_individuals.owl",
				PagodaTester.onto_dir + "fly/fly-all-in-one_rolledUp.owl",
				null, 
				PagodaTester.onto_dir + "fly/queries/fly_atomic.sparql" 
		});
//		AllTests.copy("output/log4j.log", "/home/yzhou/java-workspace/test-share/results_new/fly/pagoda_rolledUp"); 
	}
	
	public void dbpedia() {
		PagodaTester.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"
				, "dbpedia.ans"
		);
		
//		AllTests.copy("output/log4j.log", "/home/yzhou/java-workspace/test-share/results_new/dbpedia/pagoda"); 
	}

	public void npd() {
		PagodaTester.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"
				, "npd.ans"
		); 
		
//		AllTests.copy("output/log4j.log", "/home/yzhou/java-workspace/test-share/results_new/npd/pagoda"); 
	}

	public void reactome() {
		PagodaTester.main(
				PagodaTester.onto_dir + "bio2rdf/reactome/biopax-level3-processed.owl", 
				PagodaTester.onto_dir + "bio2rdf/reactome/graph sampling/reactome_sample_10.ttl",
//				null, 
//				PagodaTester.onto_dir + "bio2rdf/reactome/queries/atomic_ground.sparql"
				PagodaTester.onto_dir + "bio2rdf/reactome/queries/example.sparql"
				, "pagoda_reactome.ans"
		);
		AllTests.copy("log4j.log", "output/jair/pagoda_reactome.example");
		
//		AllTests.copy("output/log4j.log", "/home/yzhou/java-workspace/test-share/results_new/reactome/pagoda_10p"); 
	}
	
	public void chembl() {
		PagodaTester.main(
				PagodaTester.onto_dir + "bio2rdf/chembl/cco-noDPR.ttl", 
				PagodaTester.onto_dir + "bio2rdf/chembl/graph sampling/sample_1.nt", 
//				PagodaTester.onto_dir + "bio2rdf/chembl/queries/atomic_ground.sparql"
				PagodaTester.onto_dir + "bio2rdf/chembl/queries/example.sparql"
				, "pagoda_chembl.ans"
		); 
		AllTests.copy("log4j.log", "output/jair/pagoda_chembl.example"); 
//		AllTests.copy("output/log4j.log", "/home/yzhou/java-workspace/test-share/results_new/chembl/pagoda_1p"); 
	}

	public void uniprot() {
		PagodaTester.main(
				PagodaTester.onto_dir + "bio2rdf/uniprot/core-sat-processed.owl", 
				PagodaTester.onto_dir + "bio2rdf/uniprot/graph sampling/sample_1.nt",
//				null, 
//				PagodaTester.onto_dir + "bio2rdf/uniprot/queries/atomic_ground.sparql"
				PagodaTester.onto_dir + "bio2rdf/uniprot/queries/example.sparql"
				, "pagoda_uniprot.ans"
		); 
		AllTests.copy("log4j.log", "output/jair/pagoda_uniprot.example"); 
//		AllTests.copy("output/log4j.log", "/home/yzhou/java-workspace/test-share/results_new/uniprot/pagoda_1p"); 
	}

	
	public static void main(String... args) {
		new JAIR_PAGOdA().fly();
	}

}