- 更新日時:
- 2014/01/31 09:46:45 (11 年 前)
- ファイル:
-
- 1 変更
凡例:
- 変更なし
- 追加
- 削除
-
BH13SPARQLBuilder/src/org/biohackathon/SPARQLBuilder/OWL/OWLClassGraph.java
r21 r29 48 48 } 49 49 50 public Path[] getPaths(OWLQueryBuilderImpl qb, int mode ){51 List<List<ClassLink>> paths = searchPaths(qb, mode );50 public Path[] getPaths(OWLQueryBuilderImpl qb, int mode, boolean countLink){ 51 List<List<ClassLink>> paths = searchPaths(qb, mode, countLink); 52 52 Path[] patharray = new Path[paths.size()]; 53 53 ListIterator<List<ClassLink>> pit = paths.listIterator(); … … 82 82 */ 83 83 84 private List<List<ClassLink>> searchPaths(OWLQueryBuilderImpl qb, int mode ){84 private List<List<ClassLink>> searchPaths(OWLQueryBuilderImpl qb, int mode, boolean countLink){ 85 85 List<List<ClassLink>> paths = new ArrayList<>(); 86 86 ClassLink crrLink = new ClassLink(null,startClass,Direction.both,0); … … 97 97 // Mode 98 98 if ( mode == 0 ){ 99 classLinks = qb.getNextClass(null, crrlp.classLink.getLinkedClassURI(), limit, false);99 classLinks = qb.getNextClass(null, crrlp.classLink.getLinkedClassURI(), limit, countLink); 100 100 }else if ( mode == 1 ){ 101 101 classLinks = qb.getNextClassViaInstanceLink(null, crrlp.classLink.getLinkedClassURI(), limit);