- 更新日時:
- 2014/07/22 18:47:53 (10 年 前)
- パス:
- BH13SPARQLBuilder/src/org/biohackathon/SPARQLBuilder/OWL
- ファイル:
-
- 2 変更
凡例:
- 変更なし
- 追加
- 削除
-
BH13SPARQLBuilder/src/org/biohackathon/SPARQLBuilder/OWL/AcquiredStructureAnalyzer.java
r127 r128 38 38 AcquiredStructureAnalyzer impl 39 39 = 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()); 45 } 46 System.out.println("--------------------------"); 47 48 // ClassLink[] cls = impl.getNextClass(null,"http://purl.org/allie/ontology/201108#ShortForm",100,true ); 49 // for(ClassLink cl: cls){ 50 // System.out.println(cl.toString()); 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()); 51 45 // } 52 46 // 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 53 54 54 } … … 180 180 181 181 // SELECT 182 queryStr.append("SELECT DISTINCT ?indPropCat ?c ?dat ?d ?p ?numLnkInsStart ?numLnkInsEnd ?numInsDom ?numInsRan ?numTriples ?isStartClsLim ?isEndClsLim\n");182 queryStr.append("SELECT DISTINCT ?indPropCat ?c ?dat ?d ?p ?numLnkInsStart ?numLnkInsEnd ?numInsDom ?numInsRan ?numTriples\n"); 183 183 184 184 // if (targetGraphURIs != null) { … … 192 192 queryStr.append("WHERE{\n"); 193 193 queryStr.append(" ?cr <").append(URICollection.PROPERTY_RDF_TYPE).append("> <").append(URICollection.RESOURCE_SB_CLASS_RELATION).append(">. \n"); 194 queryStr.append(" ?propPart <").append(URICollection.PROPERTY_ VOID_PROPERTY_PARTITION).append("> ?cr. \n");194 queryStr.append(" ?propPart <").append(URICollection.PROPERTY_SB_CLASS_RELATION).append("> ?cr. \n"); 195 195 queryStr.append(" ?propPart <").append(URICollection.PROPERTY_VOID_PROPERTY).append("> ?p. \n"); 196 196 … … 225 225 queryStr.append("}\n"); 226 226 227 queryStr.append(" ?propPart <").append(URICollection.PROPERTY_RDF_TYPE).append("> <").append(URICollection.PROPERTY_VOID_PROPERTY_PARTITION).append(">. \n");227 // queryStr.append(" ?propPart <").append(URICollection.PROPERTY_RDF_TYPE).append("> <").append(URICollection.PROPERTY_VOID_PROPERTY_PARTITION).append(">. \n"); 228 228 queryStr.append(" ?propPart <").append(URICollection.PROPERTY_SB_PROPERTY_CATEGORY).append("> ?indPropCat. \n"); 229 229 -
BH13SPARQLBuilder/src/org/biohackathon/SPARQLBuilder/OWL/QueryPathGenerator.java
r118 r128 23 23 public static void main(String[] args){ 24 24 // For Test 25 String sp = "http://data.allie.dbcls.jp/sparql"; 26 String sc = "http://purl.org/allie/ontology/201108#ShortForm"; 27 String ec = "http://purl.org/allie/ontology/201108#LongForm"; 28 //String sp = "http://www.ebi.ac.uk/rdf/services/chembl/sparql"; 29 //String sc = "http://rdf.ebi.ac.uk/terms/chembl#Enzyme"; 30 //String ec = "http://rdf.ebi.ac.uk/terms/chembl#Activity"; 25 //String sp = "http://data.allie.dbcls.jp/sparql"; 26 //String sc = "http://purl.org/allie/ontology/201108#ShortForm"; 27 //String ec = "http://purl.org/allie/ontology/201108#LongForm"; 28 29 String sp = "http://www.ebi.ac.uk/rdf/services/chembl/sparql"; 30 String sc = "http://rdf.ebi.ac.uk/terms/chembl#Enzyme"; 31 String ec = "http://rdf.ebi.ac.uk/terms/chembl#Activity"; 32 31 33 //String sp = "http://www.ebi.ac.uk/rdf/services/biosamples/sparql"; 32 34 //String sc = "http://rdf.ebi.ac.uk/terms/biosd/Sample";