チェンジセット 118

差分発生行の前後
無視リスト:
更新日時:
2014/07/07 19:37:22 (10 年 前)
更新者:
atsuko
ログメッセージ:

実験用main追加

ファイル:
1 変更

凡例:

変更なし
追加
削除
  • BH13SPARQLBuilder/src/org/biohackathon/SPARQLBuilder/OWL/QueryPathGenerator.java

    r111 r118  
    2626        String sc = "http://purl.org/allie/ontology/201108#ShortForm"; 
    2727        String ec = "http://purl.org/allie/ontology/201108#LongForm"; 
    28         QueryPathGenerator qpg = new QueryPathGenerator(sp, "c:\\cdata"); 
    29         SClass[] cl = qpg.getClasses(null); 
    30         Path[] path = qpg.getPaths(sc, ec, false); 
    31         System.out.println(path.length); 
     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"; 
     31        //String sp = "http://www.ebi.ac.uk/rdf/services/biosamples/sparql"; 
     32        //String sc = "http://rdf.ebi.ac.uk/terms/biosd/Sample"; 
     33        //String ec = "http://purl.obolibrary.org/obo/NCBITaxon_7955"; 
     34        //String sp = "http://www.ebi.ac.uk/rdf/services/biosamples/sparql"; 
     35        //String sc = "http://rdf.ebi.ac.uk/terms/biosd/Sample"; 
     36        //String ec = "http://purl.obolibrary.org/obo/NCBITaxon_7955"; 
     37        //String sp = "http://lsd.dbcls.jp/sparql"; 
     38        //String sc = "http://purl.jp/bio/10/lsd/ontology/201209#EnglishCode"; 
     39        //String ec = "http://purl.jp/bio/10/lsd/ontology/201209#JapaneseCode"; 
     40        //QueryPathGenerator qpg = new QueryPathGenerator(sp, "c:\\cdata"); 
     41        QueryPathGenerator qpg1 = new QueryPathGenerator(sp, "cdata/"); 
     42        //SClass[] cl = qpg.getClasses(null); 
     43         
     44        long start1 = System.currentTimeMillis(); 
     45        Path[] path1 = qpg1.getPaths(sc, ec, false); 
     46        long end1 = System.currentTimeMillis(); 
     47         
     48        QueryPathGenerator qpg2 = new QueryPathGenerator(sp, "ddata/"); 
     49        long start2 = System.currentTimeMillis(); 
     50        Path[] path2 = qpg2.getPaths(sc, ec, false); 
     51        long end2 = System.currentTimeMillis(); 
     52        System.out.println("TOTAL1:"); 
     53        System.out.println(end1 - start1); 
     54        System.out.println("TOTAL2:"); 
     55        System.out.println(end2 - start2); 
     56         
     57        System.out.println(path1.length); 
     58        System.out.println(path2.length); 
    3259    } 
    3360