aboutsummaryrefslogtreecommitdiff
path: root/test/uk/ac/ox/cs/pagoda/global_tests/TestPagodaReactome.java
blob: 30f3d93d842f7291d3056bb1ffa091ba24e2b9fb (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
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 = {"light"})
    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();
    }

}