- 更新日時:
- 2014/09/26 12:16:51 (10 年 前)
- ファイル:
-
- 1 変更
凡例:
- 変更なし
- 追加
- 削除
-
BH13SPARQLBuilder/src/org/biohackathon/SPARQLBuilder/OWL/OWLClassGraph.java
r174 r178 58 58 NavigableSet<Path> sortedpath = new TreeSet<Path>(); 59 59 ListIterator<List<ClassLink>> pit = paths.listIterator(); 60 int j = 0; 60 61 while ( pit.hasNext() ){ 61 62 Path path = new Path(); … … 73 74 path.setWidth(min); 74 75 sortedpath.add(path); 76 j++; 75 77 } 76 78 Path[] patharray = new Path[paths.size()]; … … 94 96 while ( lit.hasNext() ){ 95 97 LinkAndPath crrlp = lit.next(); 96 /*if ( crrlp.classLink.getLinkedClassURI().equals("http://www.biopax.org/release/biopax-level3.owl#Pathway") ){97 System.out.println("here!");98 }*/99 98 ClassLink[] classLinks = rdfsa.getNextClass(null, crrlp.classLink.getLinkedClassURI(), limit, countLinks); 100 99 for ( int j = 0 ; j < classLinks.length; j++ ){ 101 /*if ( classLinks[j].getLinkedClassURI().endsWith("http://www.biopax.org/release/biopax-level3.owl#BiochemicalReaction") ){102 ClassLink cltmp = classLinks[j];103 }*/104 100 List<ClassLink> crrpath = new LinkedList<>(crrlp.path); 105 101 crrpath.add(classLinks[j]); … … 116 112 crrlp.classLink.getDirection() != classLinks[j].getDirection() && 117 113 crrlp.originalClassURI.equals( classLinks[j].getLinkedClassURI()) ){ 118 System.out.println("P1");114 //System.out.println("P1"); 119 115 continue; 120 116 } 121 117 if ( checkPruning(crrlp.classLink, classLinks[j]) ){ 122 System.out.println("P2");118 //System.out.println("P2"); 123 119 continue; 124 120 } 125 121 } 126 /*127 if ( classLinks[j].getDirection() != Direction.reverse ){128 System.out.println("here b");129 }*/130 131 122 nextlp.add(new LinkAndPath(classLinks[j], crrpath, crrlp.classLink.getLinkedClassURI())); 132 123 }