チェンジセット 173 : SPARQLBuilderWWW/src/java/org/biohackathon/SPARQLBuilder/OWL/AcquiredStructureAnalyzer.java
- 更新日時:
- 2014/09/26 10:09:41 (10 年 前)
- ファイル:
-
- 1 変更
凡例:
- 変更なし
- 追加
- 削除
-
SPARQLBuilderWWW/src/java/org/biohackathon/SPARQLBuilder/OWL/AcquiredStructureAnalyzer.java
r133 r173 35 35 36 36 public static void main(String[] args) throws Exception{ 37 JenaModelGenerator jmGene = new JenaModelGenerator("c:\\temp\\reactomeF18s.ttl"); 37 38 JenaModelGenerator jmGene = new JenaModelGenerator("c:\\temp\\biosamplesF11.ttl"); 39 // JenaModelGenerator jmGene = new JenaModelGenerator("c:\\temp\\reactomeF18s.ttl"); 38 40 AcquiredStructureAnalyzer impl 39 41 = new AcquiredStructureAnalyzer(jmGene.getEndpointURI(), jmGene.getGraphURIs(), jmGene.getModel()); 40 // System.out.println("--------------------------"); 41 // SClass[] scs = impl.getOWLClasses(null, null, null, true); 42 // System.out.println("list classes:---------------"); 43 // for(SClass sc: scs){ 44 // System.out.println(sc.toString()); 42 43 System.out.println("--------------------------"); 44 SClass[] scs = impl.getOWLClasses(null, null, null, true); 45 System.out.println("list classes:---------------"); 46 for(SClass sc: scs){ 47 System.out.println(sc.toString()); 48 } 49 System.out.println("--------------------------"); 50 51 // ClassLink[] cls = impl.getNextClass(null,"http://www.biopax.org/release/biopax-level3.owl#Protein",100,true ); 52 // for(ClassLink cl: cls){ 53 // System.out.println(cl.toString()); 45 54 // } 46 55 // System.out.println("--------------------------"); 47 48 ClassLink[] cls = impl.getNextClass(null,"http://www.biopax.org/release/biopax-level3.owl#Protein",100,true );49 for(ClassLink cl: cls){50 System.out.println(cl.toString());51 }52 System.out.println("--------------------------");53 56 54 57 } … … 217 220 queryStr.append(" {"); 218 221 queryStr.append(" ?cr <").append(URICollection.PROPERTY_SB_OBJECT_CLASS).append("> <" + originClass + ">. \n"); 219 queryStr.append(" ?cr <").append(URICollection.PROPERTY_SB_SUBJECT_CLASS).append("> ? d. \n");222 queryStr.append(" ?cr <").append(URICollection.PROPERTY_SB_SUBJECT_CLASS).append("> ?c. \n"); 220 223 queryStr.append(" ?cr <").append(URICollection.PROPERTY_VOID_DISTINCT_SUBJECTS).append("> ?numLnkInsEnd. \n"); 221 224 queryStr.append(" ?cr <").append(URICollection.PROPERTY_VOID_DISTINCT_OBJECTS).append("> ?numLnkInsStart. \n"); … … 277 280 if(ccls != null && dcls == null ){ 278 281 // direction forward 279 direction = Direction. forward;282 direction = Direction.reverse; 280 283 clsURI = ccls.getURI(); 281 284 }else{ 282 285 if( ccls == null && dcls != null ){ 283 direction = Direction. reverse;286 direction = Direction.forward; 284 287 clsURI = dcls.getURI(); 285 288 }else{