チェンジセット 21
- 更新日時:
- 2014/01/30 15:18:22 (11 年 前)
- ファイル:
-
- 1 変更
凡例:
- 変更なし
- 追加
- 削除
-
BH13SPARQLBuilder/src/org/biohackathon/SPARQLBuilder/OWL/OWLClassGraph.java
r15 r21 39 39 ListIterator<List<ClassLink>> pit = paths.listIterator(); 40 40 while( pit.hasNext() ){ 41 // KOKO 41 List<ClassLink> cls = pit.next(); 42 String start = startClass; 43 ListIterator<ClassLink> cit = cls.listIterator(); 44 while ( cit.hasNext() ){ 45 // KOKO 46 } 42 47 } 43 48 } … … 92 97 // Mode 93 98 if ( mode == 0 ){ 94 classLinks = qb.getNextClass(null, crrlp.classLink.getLinkedClassURI(), limit );99 classLinks = qb.getNextClass(null, crrlp.classLink.getLinkedClassURI(), limit, false); 95 100 }else if ( mode == 1 ){ 96 101 classLinks = qb.getNextClassViaInstanceLink(null, crrlp.classLink.getLinkedClassURI(), limit); 97 102 }else{ System.err.println("Mode is not correct."); } 98 103 for ( int j = 0 ; j < classLinks.length; j++ ){ 99 //List<ClassLink> crrpath = new LinkedList<ClassLink>(crrlp.path);100 104 List<ClassLink> crrpath = new LinkedList<>(crrlp.path); 101 105 crrpath.add(classLinks[j]); 102 106 if ( classLinks[j].getLinkedClassURI().equals(endClass) ){ 103 //paths.add(new LinkedList<ClassLink>(crrpath));104 107 paths.add(new LinkedList<>(crrpath)); 105 108 } … … 112 115 System.err.println(e); 113 116 } 114 return paths; 117 return paths; 115 118 } 116 119 }