diff options
Diffstat (limited to 'test/uk/ac/ox/cs/data/WriteIntoTurtle.java')
| -rw-r--r-- | test/uk/ac/ox/cs/data/WriteIntoTurtle.java | 69 |
1 files changed, 0 insertions, 69 deletions
diff --git a/test/uk/ac/ox/cs/data/WriteIntoTurtle.java b/test/uk/ac/ox/cs/data/WriteIntoTurtle.java deleted file mode 100644 index b17e035..0000000 --- a/test/uk/ac/ox/cs/data/WriteIntoTurtle.java +++ /dev/null | |||
| @@ -1,69 +0,0 @@ | |||
| 1 | package uk.ac.ox.cs.data; | ||
| 2 | |||
| 3 | import org.semanticweb.simpleETL.SimpleETL; | ||
| 4 | |||
| 5 | public class WriteIntoTurtle { | ||
| 6 | |||
| 7 | public void rewriteUOBM(int number) { | ||
| 8 | rewrite( | ||
| 9 | "http://semantics.crl.ibm.com/univ-bench-dl.owl#", | ||
| 10 | "/home/yzhou/krr-nas-share/Yujiao/ontologies/uobm/data/uobm" + number + "_owl", | ||
| 11 | "/home/yzhou/krr-nas-share/Yujiao/ontologies/uobm/data/uobm" + number + ".ttl" | ||
| 12 | ); | ||
| 13 | } | ||
| 14 | |||
| 15 | public void rewriteUOBM15() { | ||
| 16 | rewriteUOBM(15); | ||
| 17 | } | ||
| 18 | |||
| 19 | public void rewriteUOBM300() { | ||
| 20 | rewriteUOBM(300); | ||
| 21 | } | ||
| 22 | |||
| 23 | public void testUOBM400() { | ||
| 24 | rewriteUOBM(400); | ||
| 25 | } | ||
| 26 | |||
| 27 | public void rewriteLUBM(int number) { | ||
| 28 | rewrite( | ||
| 29 | "http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#", | ||
| 30 | "/home/yzhou/krr-nas-share/Yujiao/ontologies/lubm/data/lubm" + number + "_owl", | ||
| 31 | "/home/yzhou/krr-nas-share/Yujiao/ontologies/lubm/data/lubm" + number + ".ttl" | ||
| 32 | ); | ||
| 33 | } | ||
| 34 | |||
| 35 | public void testLUBM900() { | ||
| 36 | rewriteLUBM(900); | ||
| 37 | } | ||
| 38 | |||
| 39 | public static void main(String[] args) { | ||
| 40 | // "http://identifiers.org/biomodels.vocabulary#", | ||
| 41 | // "/home/yzhou/krr-nas-share/Yujiao/BioModels/sbml2rdfall", | ||
| 42 | // "/users/yzhou/ontologies/biomodels"); | ||
| 43 | |||
| 44 | // "http://www.biopax.org/release/biopax-level3.owl#", | ||
| 45 | // "/home/scratch/yzhou/ontologies/bio2rdf/reactome/biopaxrdf", | ||
| 46 | // "/home/scratch/yzhou/ontologies/bio2rdf/reactome" | ||
| 47 | |||
| 48 | new WriteIntoTurtle().rewriteUOBM(20); | ||
| 49 | |||
| 50 | // args = new String[] { | ||
| 51 | // "http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#", | ||
| 52 | // "/home/yzhou/krr-nas-share/Yujiao/ontologies/lubm/data/lubm400_owl", | ||
| 53 | // "/home/yzhou/krr-nas-share/Yujiao/ontologies/lubm/data/lubm400.ttl" | ||
| 54 | // }; | ||
| 55 | // | ||
| 56 | // new WriteIntoTurtle().rewrite(args); | ||
| 57 | } | ||
| 58 | |||
| 59 | public void rewrite(String... args) { | ||
| 60 | SimpleETL rewriter = new SimpleETL(args[0], args[1], args[2]); | ||
| 61 | |||
| 62 | try { | ||
| 63 | rewriter.rewrite(); | ||
| 64 | } catch (Exception e) { | ||
| 65 | e.printStackTrace(); | ||
| 66 | } | ||
| 67 | } | ||
| 68 | |||
| 69 | } | ||
