blob: 8a8a59643053c4794ab70937fcb6e22017793e4d (
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
|
package uk.ac.ox.cs.pagoda.global_tests;
import org.testng.annotations.Test;
import uk.ac.ox.cs.pagoda.Pagoda;
import uk.ac.ox.cs.pagoda.util.TestUtil;
import java.io.IOException;
import java.nio.file.Paths;
public class TestPagodaReactome {
@Test(groups = {"justExecute"})
public void justExecute() throws IOException {
String ontoDir = TestUtil.getConfig().getProperty("ontoDir");
Pagoda.builder()
.ontology(Paths.get(ontoDir, "reactome/biopax-level3-processed.owl"))
.data(Paths.get(ontoDir, "reactome/data/sample_10.ttl"))
.query(Paths.get(ontoDir, "reactome/test.sparql"))
.classify(true)
.hermit(true)
.build()
.run();
}
@Test(groups = {"sygenia"})
public void justExecute_sygenia() throws IOException {
String ontoDir = TestUtil.getConfig().getProperty("ontoDir");
Pagoda.builder()
.ontology(Paths.get(ontoDir, "reactome/biopax-level3-processed.owl"))
.data(Paths.get(ontoDir, "reactome/data/sample_10.ttl"))
.query(Paths.get(ontoDir, "reactome/reactome_sygenia_queries.sparql"))
.classify(true)
.hermit(true)
.build()
.run();
}
@Test(groups = {"existential"})
public void justExecute_existential() throws IOException {
String ontoDir = TestUtil.getConfig().getProperty("ontoDir");
Pagoda.builder()
.ontology(Paths.get(ontoDir, "reactome/biopax-level3-processed.owl"))
.data(Paths.get(ontoDir, "reactome/data/sample_10.ttl"))
.query(Paths.get(ontoDir, "reactome/existential_queries.sparql"))
// .query(Paths.get(ontoDir, "reactome/Queries_by_Feier-et-al.sparql"))
.build()
.run();
}
}
|