aboutsummaryrefslogtreecommitdiff
path: root/test/uk/ac/ox/cs/pagoda/test_units/LightEvaluation.java
blob: 932c178f235c38074192e6e553d284c401ebcfe2 (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
package uk.ac.ox.cs.pagoda.test_units;

import org.junit.Test;
import uk.ac.ox.cs.pagoda.tester.PagodaTester;
import uk.ac.ox.cs.pagoda.util.TestUtil;

import java.io.IOException;

public class LightEvaluation {

	@Test
	public void uobm1() throws IOException {
		int number = 1;
		String ontoDir = TestUtil.getConfig().getProperty("ontoDir");
		PagodaTester.main(
				TestUtil.combinePaths(ontoDir, "uobm/univ-bench-dl.owl"),
				TestUtil.combinePaths(ontoDir, "uobm/data/uobm" + number + ".ttl"),
				TestUtil.combinePaths(ontoDir, "uobm/queries/standard.sparql")
		);
		TestUtil.copyFile("log4j.log", "output/jair/uobm1.out");
	}
	
	@Test
	public void lubm100() throws IOException {
		int number = 100;
		String ontoDir = TestUtil.getConfig().getProperty("ontoDir");
		PagodaTester.main(
				TestUtil.combinePaths(ontoDir, "lubm/univ-bench.owl"),
				TestUtil.combinePaths(ontoDir, "lubm/data/lubm" + number + ".ttl"),
				TestUtil.combinePaths(ontoDir, "lubm/queries/test.sparql")
		);
		TestUtil.copyFile("log4j.log", "results-backup/current/lubm100.out");
	}
	
	@Test
	public void fly() throws IOException {
		String ontoDir = TestUtil.getConfig().getProperty("ontoDir");
		PagodaTester.main(
				TestUtil.combinePaths(ontoDir, "fly/fly_anatomy_XP_with_GJ_FC_individuals.owl"),
				TestUtil.combinePaths(ontoDir, "fly/queries/fly.sparql")
		);
		TestUtil.copyFile("log4j.log", "results-backup/current/fly.out");
	}
	
	@Test 
	public void dbpedia() throws IOException {
		String ontoDir = TestUtil.getConfig().getProperty("ontoDir");
		PagodaTester.main(
				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/atomic.sparql")
		);
		TestUtil.copyFile("log4j.log", "results-backup/current/dbpedia.out");
	}
	
	@Test
	public void npdWithoutDataType() throws IOException {
		String ontoDir = TestUtil.getConfig().getProperty("ontoDir");
		PagodaTester.main(
				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.sparql")
		);
		TestUtil.copyFile("log4j.log", "results-backup/current/npd_minus.out");
	}
	
}