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); |