- 更新日時:
- 2016/02/16 16:14:34 (9 年 前)
- パス:
- SPARQLBuilderWWW/src/java/org/biohackathon/SPARQLBuilder/OWL
- ファイル:
-
- 2 変更
凡例:
- 変更なし
- 追加
- 削除
-
SPARQLBuilderWWW/src/java/org/biohackathon/SPARQLBuilder/OWL/OWLClassGraph.java
r261 r263 100 100 } 101 101 // using length of path 102 int rankwidth = (int) ( ( min * nsteps )/ crrpath.size() );103 path.setWidth( rankwidth);102 //int rankwidth = (int) ( ( min * nsteps )/ crrpath.size() ); 103 path.setWidth(500000 - crrpath.size()*100000 - min); 104 104 sortedpaths.add(path); 105 105 j++; … … 197 197 List<ClassLink> addedpath = new LinkedList<ClassLink>(basepath); 198 198 addedpath.add(cl); 199 // check 200 //if (checkPath(startClass, addedpath)){ 201 tmppaths.add(addedpath); 202 //} 199 tmppaths.add(addedpath); 203 200 } 204 201 } -
SPARQLBuilderWWW/src/java/org/biohackathon/SPARQLBuilder/OWL/QueryPathGenerator.java
r261 r263 121 121 } 122 122 123 public Path[] getPaths(String startClass, String endClass, boolean askcheck){ 123 public Path[] getPaths(String startClass, String endClass){ 124 if (startClass == null || endClass == null){ 125 return null; 126 } 124 127 if ( graph == null ){ 125 128 //System.err.println("Class graph is null.");