チェンジセット 177 : SPARQLBuilderWWW/src/java
- 更新日時:
- 2014/09/26 12:16:26 (10 年 前)
- パス:
- SPARQLBuilderWWW/src/java/org/biohackathon/SPARQLBuilder/OWL
- ファイル:
-
- 2 変更
凡例:
- 変更なし
- 追加
- 削除
-
SPARQLBuilderWWW/src/java/org/biohackathon/SPARQLBuilder/OWL/OWLClassGraph.java
r173 r177 58 58 NavigableSet<Path> sortedpath = new TreeSet<Path>(); 59 59 ListIterator<List<ClassLink>> pit = paths.listIterator(); 60 int j = 0; 60 61 while ( pit.hasNext() ){ 61 62 Path path = new Path(); … … 73 74 path.setWidth(min); 74 75 sortedpath.add(path); 76 j++; 75 77 } 76 78 Path[] patharray = new Path[paths.size()]; … … 94 96 while ( lit.hasNext() ){ 95 97 LinkAndPath crrlp = lit.next(); 96 /*if ( crrlp.classLink.getLinkedClassURI().equals("http://www.biopax.org/release/biopax-level3.owl#Pathway") ){97 System.out.println("here!");98 }*/99 98 ClassLink[] classLinks = rdfsa.getNextClass(null, crrlp.classLink.getLinkedClassURI(), limit, countLinks); 100 99 for ( int j = 0 ; j < classLinks.length; j++ ){ 101 /*if ( classLinks[j].getLinkedClassURI().endsWith("http://www.biopax.org/release/biopax-level3.owl#BiochemicalReaction") ){102 ClassLink cltmp = classLinks[j];103 }*/104 100 List<ClassLink> crrpath = new LinkedList<>(crrlp.path); 105 101 crrpath.add(classLinks[j]); … … 116 112 crrlp.classLink.getDirection() != classLinks[j].getDirection() && 117 113 crrlp.originalClassURI.equals( classLinks[j].getLinkedClassURI()) ){ 118 System.out.println("P1");114 //System.out.println("P1"); 119 115 continue; 120 116 } 121 117 if ( checkPruning(crrlp.classLink, classLinks[j]) ){ 122 System.out.println("P2");118 //System.out.println("P2"); 123 119 continue; 124 120 } 125 121 } 126 /*127 if ( classLinks[j].getDirection() != Direction.reverse ){128 System.out.println("here b");129 }*/130 131 122 nextlp.add(new LinkAndPath(classLinks[j], crrpath, crrlp.classLink.getLinkedClassURI())); 132 123 } -
SPARQLBuilderWWW/src/java/org/biohackathon/SPARQLBuilder/OWL/QueryPathGenerator.java
r167 r177 67 67 public QueryPathGenerator(String sparqlEndpoint){ 68 68 factory = new RDFSchemaAnalyzerFactory(CDIR); 69 setSPARQLendpoint(sparqlEndpoint); 69 setSPARQLendpoint(sparqlEndpoint); 70 70 } 71 71