チェンジセット 32 : BH13SPARQLBuilder
- 更新日時:
- 2014/01/31 10:00:56 (11 年 前)
- パス:
- BH13SPARQLBuilder/src/org/biohackathon/SPARQLBuilder/OWL
- ファイル:
-
- 3 変更
凡例:
- 変更なし
- 追加
- 削除
-
BH13SPARQLBuilder/src/org/biohackathon/SPARQLBuilder/OWL/OWLClassGraph.java
r29 r32 82 82 */ 83 83 84 private List<List<ClassLink>> searchPaths(OWLQueryBuilderImpl qb, int mode, boolean countLink ){84 private List<List<ClassLink>> searchPaths(OWLQueryBuilderImpl qb, int mode, boolean countLinks){ 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, countLink );99 classLinks = qb.getNextClass(null, crrlp.classLink.getLinkedClassURI(), limit, countLinks); 100 100 }else if ( mode == 1 ){ 101 101 classLinks = qb.getNextClassViaInstanceLink(null, crrlp.classLink.getLinkedClassURI(), limit); -
BH13SPARQLBuilder/src/org/biohackathon/SPARQLBuilder/OWL/OWLQueryBuilder.java
r31 r32 81 81 public ClassLink[] getNextClassViaInstanceLink(String[] graphURIs, String originClass, int limit) throws Exception; 82 82 83 public Path[] getPaths(String startClass, String endClass ) throws Exception;83 public Path[] getPaths(String startClass, String endClass, int mode, boolean countLinks) throws Exception; 84 84 public String createSPARQL(Path path) throws Exception; 85 85 -
BH13SPARQLBuilder/src/org/biohackathon/SPARQLBuilder/OWL/OWLQueryBuilderImpl.java
r31 r32 493 493 } 494 494 495 public Path[] getPaths(String startClass, String endClass, int mode, boolean countLink ) throws Exception {495 public Path[] getPaths(String startClass, String endClass, int mode, boolean countLinks) throws Exception { 496 496 OWLClassGraph graph = new OWLClassGraph(startClass, endClass); 497 return graph.getPaths(this, mode, countLink );497 return graph.getPaths(this, mode, countLinks); 498 498 } 499 499