blob: 17d1e82a52bd60df9f187dc657a462c82bfea302 (
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
|
package uk.ac.ox.cs.pagoda.global_tests;
import org.junit.Test;
import uk.ac.ox.cs.pagoda.tester.PagodaTester;
import uk.ac.ox.cs.pagoda.tester.Statistics;
import uk.ac.ox.cs.pagoda.util.TestUtil;
import java.io.IOException;
import static org.junit.Assert.fail;
public class PagodaNPD {
@Test
public void testNPDwithoutDataType() 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")
);
Statistics stat = new Statistics("output/log4j.log");
String diff = stat.diff("results-backup/benchmark/npd_minus.out");
TestUtil.copyFile("output/log4j.log", "results-backup/current/npd_minus.out");
if (!diff.isEmpty())
fail(diff);
}
@Test
public void testNPD() throws IOException {
String ontoDir = TestUtil.getConfig().getProperty("ontoDir");
PagodaTester.main(
TestUtil.combinePaths(ontoDir, "npd/npd-all.owl"),
TestUtil.combinePaths(ontoDir, "npd/data/npd-data-dump-processed.ttl"),
TestUtil.combinePaths(ontoDir, "npd/queries/atomic.sparql")
);
Statistics stat = new Statistics("output/log4j.log");
String diff = stat.diff("results-backup/benchmark/npd.out");
TestUtil.copyFile("output/log4j.log", "results-backup/current/npd.out");
if (!diff.isEmpty())
fail(diff);
}
}
|