- 更新日時:
- 2014/11/11 14:23:58 (10 年 前)
- パス:
- SPARQLBuilderWWW/src/java/org/biohackathon/SPARQLBuilder/OWL
- ファイル:
-
- 1 削除
- 3 変更
凡例:
- 変更なし
- 追加
- 削除
-
SPARQLBuilderWWW/src/java/org/biohackathon/SPARQLBuilder/OWL/LabeledMultiDigraph.java
r201 r204 16 16 List<String> labels; 17 17 HashMap<String,Integer> labelednodes; 18 List<Map<Integer,List<LabeledEdge>>> gadjlist; // node, node-edge list 18 19 19 20 public class LabeledEdge{ … … 41 42 labels.add(label); 42 43 adjlist.add(new LinkedList<LabeledEdge>()); 44 gadjlist.add(new HashMap<Integer, List<LabeledEdge>>()); 43 45 } 44 46 … … 50 52 LabeledEdge edge = new LabeledEdge(node2, elabel, direction, ntriples); 51 53 adjlist.get(node1).add(edge); 54 Map<Integer, List<LabeledEdge>> edges = gadjlist.get(node1); 55 // 52 56 } 53 57 } -
SPARQLBuilderWWW/src/java/org/biohackathon/SPARQLBuilder/OWL/OWLClassGraph.java
r201 r204 21 21 int th; 22 22 int prunecut; 23 23 24 24 public class LinkAndPath{ 25 25 String originalClassURI; // originalClasssURI -classLink.propertyURI-> classLink.linkedClassURL … … 41 41 } 42 42 } 43 43 44 44 public OWLClassGraph(String startClass, String endClass){ 45 45 super(); … … 52 52 nsteps = 3; 53 53 limit = 1000; 54 prunecut = 100; 55 54 prunecut = 100; 56 55 } 57 56 -
SPARQLBuilderWWW/src/java/org/biohackathon/SPARQLBuilder/OWL/QueryPathGenerator.java
r201 r204 44 44 QueryPathGenerator qpg1 = new QueryPathGenerator(sp, "cdata/"); 45 45 //SClass[] cl = qpg.getClasses(null); 46 47 /*48 long start1 = System.currentTimeMillis();49 Path[] path1 = qpg1.getPaths(sc, ec, false);50 long end1 = System.currentTimeMillis();51 52 QueryPathGenerator qpg2 = new QueryPathGenerator(sp, "ddata/");53 long start2 = System.currentTimeMillis();54 Path[] path2 = qpg2.getPaths(sc, ec, false);55 long end2 = System.currentTimeMillis();56 System.out.println("TOTAL1:");57 System.out.println(end1 - start1);58 System.out.println("TOTAL2:");59 System.out.println(end2 - start2);60 61 System.out.println(path1.length);62 System.out.println(path2.length);63 */64 46 } 65 47 … … 112 94 113 95 private void setAnalyzer(){ 114 //analyzer = new EndpointAnalyzer(sparqlEndpoint); //ForTest115 116 96 try { 117 97 analyzer = factory.create(sparqlEndpoint);