aboutsummaryrefslogtreecommitdiff
path: root/external/uk/ac/ox/cs/data/WriteIntoTurtle.java
blob: b17e0353f921fc80e48c9c9caf818b37cd361eec (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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
package uk.ac.ox.cs.data;

import org.semanticweb.simpleETL.SimpleETL;

public class WriteIntoTurtle {
	
	public void rewriteUOBM(int number) {
		rewrite(
				"http://semantics.crl.ibm.com/univ-bench-dl.owl#", 
				"/home/yzhou/krr-nas-share/Yujiao/ontologies/uobm/data/uobm" + number + "_owl", 
				"/home/yzhou/krr-nas-share/Yujiao/ontologies/uobm/data/uobm" + number + ".ttl" 
				);	
	}
	
	public void rewriteUOBM15() {
		rewriteUOBM(15);
	}
	
	public void rewriteUOBM300() {
		rewriteUOBM(300);
	}
	
	public void testUOBM400() {
		rewriteUOBM(400);
	}

	public void rewriteLUBM(int number) {
		rewrite(
				"http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#",
				"/home/yzhou/krr-nas-share/Yujiao/ontologies/lubm/data/lubm" + number + "_owl",
				"/home/yzhou/krr-nas-share/Yujiao/ontologies/lubm/data/lubm" + number + ".ttl"
				);
	}
	
	public void testLUBM900() {
		rewriteLUBM(900);
	}

	public static void main(String[] args) {
//		"http://identifiers.org/biomodels.vocabulary#", 
//		"/home/yzhou/krr-nas-share/Yujiao/BioModels/sbml2rdfall", 
//		"/users/yzhou/ontologies/biomodels");
		
//		"http://www.biopax.org/release/biopax-level3.owl#", 
//		"/home/scratch/yzhou/ontologies/bio2rdf/reactome/biopaxrdf", 
//		"/home/scratch/yzhou/ontologies/bio2rdf/reactome"

		new WriteIntoTurtle().rewriteUOBM(20);
		
//		args = new String[] {
//				"http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#",
//				"/home/yzhou/krr-nas-share/Yujiao/ontologies/lubm/data/lubm400_owl",
//				"/home/yzhou/krr-nas-share/Yujiao/ontologies/lubm/data/lubm400.ttl"
//		}; 
//		
//		new WriteIntoTurtle().rewrite(args); 
	}
	
	public void rewrite(String... args) {
		SimpleETL rewriter = new SimpleETL(args[0], args[1], args[2]); 
		
		try {
			rewriter.rewrite();
		} catch (Exception e) {
			e.printStackTrace();
		} 
	}
	
}