aboutsummaryrefslogtreecommitdiff
path: root/test/uk/ac/ox/cs/pagoda/junit/JAIR_Scalability.java
diff options
context:
space:
mode:
authorRncLsn <rnc.lsn@gmail.com>2015-05-06 18:11:08 +0100
committerRonca <alessandro.a.ronca@gmail.com>2015-05-06 18:20:58 +0100
commitf2909a748a300f94cf6067fc84416e408d3e6de8 (patch)
tree02962a710fe27ea1c7a2704a356b7f663a42cb52 /test/uk/ac/ox/cs/pagoda/junit/JAIR_Scalability.java
parent58e6d87cb604702e7b307bad73c4fd42a694c3ec (diff)
downloadACQuA-f2909a748a300f94cf6067fc84416e408d3e6de8.tar.gz
ACQuA-f2909a748a300f94cf6067fc84416e408d3e6de8.zip
Switch from JUnit to TestNG.
Plus minor fixes.
Diffstat (limited to 'test/uk/ac/ox/cs/pagoda/junit/JAIR_Scalability.java')
-rw-r--r--test/uk/ac/ox/cs/pagoda/junit/JAIR_Scalability.java86
1 files changed, 0 insertions, 86 deletions
diff --git a/test/uk/ac/ox/cs/pagoda/junit/JAIR_Scalability.java b/test/uk/ac/ox/cs/pagoda/junit/JAIR_Scalability.java
deleted file mode 100644
index 5e2b1d7..0000000
--- a/test/uk/ac/ox/cs/pagoda/junit/JAIR_Scalability.java
+++ /dev/null
@@ -1,86 +0,0 @@
1package uk.ac.ox.cs.pagoda.junit;
2
3import org.junit.Test;
4
5import uk.ac.ox.cs.pagoda.tester.PagodaTester;
6import uk.ac.ox.cs.pagoda.util.Properties;
7
8public class JAIR_Scalability {
9
10 private static final String date = "_0123";
11
12 @Test
13 public void reactome() {
14 testReactome(10, false);
15 }
16
17 @Test
18 public void chembl() {
19 testChEMBL(1, false);
20 }
21
22 @Test
23 public void uniprot() {
24 testUniProt(1, false);
25 }
26
27 public void testReactome(int percentage, boolean save) {
28 String[] args = new String[] {
29 PagodaTester.onto_dir + "bio2rdf/reactome/biopax-level3-processed.owl",
30 PagodaTester.onto_dir + "bio2rdf/reactome/graph sampling/simplifed_sample_" + percentage + ".ttl",
31 PagodaTester.onto_dir + "bio2rdf/reactome/queries/test.sparql"
32 , "reactome.ans"
33 };
34 if (percentage == 10)
35 args[1] = args[1].replace("simplifed", "reactome");
36
37 PagodaTester.main(args);
38 if (save)
39 AllTests.copy("log4j.log", "/home/yzhou/java-workspace/test-share/results_new/reactome/pagoda_" + percentage + "p" + date);
40 }
41
42 public void testChEMBL(int percentage, boolean save) {
43 String[] args = new String[] {
44 PagodaTester.onto_dir + "bio2rdf/chembl/cco-noDPR.ttl",
45 PagodaTester.onto_dir + "bio2rdf/chembl/sample_" + percentage + ".nt",
46// PagodaTester.onto_dir + "bio2rdf/chembl/queries/atomic_ground.sparql"
47 PagodaTester.onto_dir + "bio2rdf/chembl/queries/test.sparql"
48 , "chembl.ans"
49 };
50 if (percentage == 1 || percentage == 10 || percentage == 50)
51 args[1] = args[1].replace("chembl", "chembl/graph sampling");
52 else
53 if (percentage == 100)
54 args[1] = "/home/yzhou/RDFData/ChEMBL/facts/ChEMBL.ttl";
55
56 PagodaTester.main(args);
57 if (save)
58 AllTests.copy("log4j.log", "/home/yzhou/java-workspace/test-share/results_new/chembl/pagoda_" + percentage + "p" + date);
59 }
60
61 public void testUniProt(int percentage, boolean save) {
62 String[] args = new String[] {
63 PagodaTester.onto_dir + "bio2rdf/uniprot/core-sat-processed.owl",
64 PagodaTester.onto_dir + "bio2rdf/uniprot/sample_" + percentage + ".nt",
65// PagodaTester.onto_dir + "bio2rdf/uniprot/queries/atomic_ground.sparql"
66 PagodaTester.onto_dir + "bio2rdf/uniprot/queries/test.sparql"
67 , "uniprot.ans"
68 };
69
70 if (percentage == 1 || percentage == 10 || percentage == 50)
71 args[1] = args[1].replace("uniprot", "uniprot/graph sampling");
72 else
73 if (percentage == 100)
74 args[1] = "/home/yzhou/krr-nas-share/Yujiao/ontologies/bio2rdf/uniprot/data/uniprot_cleaned.nt";
75
76 PagodaTester.main(args);
77 if (save)
78 AllTests.copy("log4j.log", "/home/yzhou/java-workspace/test-share/results_new/uniprot/pagoda_" + percentage + "p" + date);
79 }
80
81 public static void main(String... args) {
82 Properties.ShellModeDefault = true;
83 new JAIR_Scalability().testUniProt(50, false);
84 }
85
86}