チェンジセット 88
- 更新日時:
- 2014/06/19 15:44:36 (10 年 前)
- パス:
- BH13SPARQLBuilder/src/org/biohackathon/SPARQLBuilder/OWL
- ファイル:
-
- 2 変更
凡例:
- 変更なし
- 追加
- 削除
-
BH13SPARQLBuilder/src/org/biohackathon/SPARQLBuilder/OWL/AcquiredStructureAnalyzer.java
r80 r88 184 184 queryStr.append("WHERE{\n"); 185 185 queryStr.append(" ?cr rdf:type <http://sparqlbuilder.org/ClassRelation>. \n"); 186 queryStr.append(" <" + originClass + "> <http://sparqlbuilder.org/numberOfInstances> ?numIns End. \n");186 queryStr.append(" <" + originClass + "> <http://sparqlbuilder.org/numberOfInstances> ?numInsStart. \n"); 187 187 queryStr.append(" {"); 188 188 queryStr.append(" ?cr <http://sparqlbuilder.org/startClass> <" + originClass + ">. \n"); … … 251 251 numTriples = numTriplesLit.getInt(); 252 252 } 253 int numInsStart = 0; 254 Literal numInsStartLit = sol.getLiteral("numInsStart"); 255 if( numInsStartLit != null ){ 256 numInsStart = numInsStartLit.getInt(); 257 } 258 int numInsEnd = 0; 259 Literal numInsEndLit = sol.getLiteral("numInsEnd"); 260 if( numInsEndLit != null ){ 261 numInsEnd = numInsEndLit.getInt(); 262 } 253 263 ClassLink cl = new ClassLink(proURI, clsURI, direction, 254 numTriples, 0, 0, 0, 0);264 numTriples, 0, 0, numInsEnd, numInsStart); 255 265 solCLs.add(cl); 256 266 } -
BH13SPARQLBuilder/src/org/biohackathon/SPARQLBuilder/OWL/StructureCrawler.java
r86 r88 41 41 JenaModelGenerator jmGene = new JenaModelGenerator(file.getAbsolutePath()); 42 42 uri = jmGene.getEndpointURI(); 43 44 System.out.println("URI: "+ uri); 43 45 }catch(Exception ex){ 44 46 // … … 54 56 JenaModelGenerator jmGene = new JenaModelGenerator(dataDir.getAbsolutePath()); 55 57 uri = jmGene.getEndpointURI(); 58 56 59 }catch(Exception ex){ 57 60 //