diff options
| author | Ronca <alessandro.a.ronca@gmail.com> | 2015-05-06 18:11:08 +0100 |
|---|---|---|
| committer | Ronca <alessandro.a.ronca@gmail.com> | 2015-05-06 18:11:08 +0100 |
| commit | fbbbfbeb79097e5ce8f9ff2682d2c21368971654 (patch) | |
| tree | 02962a710fe27ea1c7a2704a356b7f663a42cb52 /test/uk/ac/ox/cs/pagoda/junit/JAIR_Scalability.java | |
| parent | 58e6d87cb604702e7b307bad73c4fd42a694c3ec (diff) | |
| download | ACQuA-fbbbfbeb79097e5ce8f9ff2682d2c21368971654.tar.gz ACQuA-fbbbfbeb79097e5ce8f9ff2682d2c21368971654.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.java | 86 |
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 @@ | |||
| 1 | package uk.ac.ox.cs.pagoda.junit; | ||
| 2 | |||
| 3 | import org.junit.Test; | ||
| 4 | |||
| 5 | import uk.ac.ox.cs.pagoda.tester.PagodaTester; | ||
| 6 | import uk.ac.ox.cs.pagoda.util.Properties; | ||
| 7 | |||
| 8 | public 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 | } | ||
