チェンジセット 34 : BH13SPARQLBuilder/src

差分発生行の前後
無視リスト:
更新日時:
2014/01/31 10:35:01 (11 年 前)
更新者:
atsuko
ログメッセージ:

パス探索を numOfLinks <= th で枝刈り

ファイル:
1 変更

凡例:

変更なし
追加
削除
  • BH13SPARQLBuilder/src/org/biohackathon/SPARQLBuilder/OWL/OWLClassGraph.java

    r32 r34  
    1616    int nsteps; 
    1717    int limit; 
     18    int th; 
    1819         
    1920    public class LinkAndPath{ 
     
    3435        nsteps = 2; 
    3536        limit = 1000; 
     37        th = 0; 
    3638    } 
    3739     
     
    9395              while ( lit.hasNext() ){ 
    9496                  LinkAndPath crrlp = lit.next(); 
    95                   if ( crrlp.classLink.getLinkedClassURI().equals(endClass) ){ continue; } 
    9697                  ClassLink[] classLinks = null; 
    9798                  // Mode 
     
    106107                      if ( classLinks[j].getLinkedClassURI().equals(endClass) ){ 
    107108                          paths.add(new LinkedList<>(crrpath)); 
     109                          continue; 
     110                      } 
     111                      if ( countLinks == true && classLinks[j].getNumOfLinks() <= th){ 
     112                          continue; 
    108113                      } 
    109114                      nextlp.add(new LinkAndPath(classLinks[j],crrpath));