チェンジセット 86 : BH13SPARQLBuilder/src/org/biohackathon
- 更新日時:
- 2014/06/18 18:44:35 (10 年 前)
- パス:
- BH13SPARQLBuilder/src/org/biohackathon/SPARQLBuilder/OWL
- ファイル:
-
- 2 変更
凡例:
- 変更なし
- 追加
- 削除
-
BH13SPARQLBuilder/src/org/biohackathon/SPARQLBuilder/OWL/RDFSchemaAnalyzerFactory.java
r85 r86 16 16 } 17 17 18 public String[] getEndpointURIList(){ 19 if( acquiredRDFFiles == null ){ 20 return new String[0]; 21 }else{ 22 return acquiredRDFFiles.keySet().toArray(new String[0]); 23 } 24 } 25 18 26 19 27 public RDFSchemaAnalyzer create(String uri) throws Exception{ -
BH13SPARQLBuilder/src/org/biohackathon/SPARQLBuilder/OWL/StructureCrawler.java
r85 r86 17 17 StructureCrawler sc = new StructureCrawler(new File("c:\\temp")); 18 18 sc.crawl("http://data.allie.dbcls.jp/sparql", "allie.ttl"); 19 20 System.out.println("done"); 21 19 22 20 23 Map<String,String> acTable = sc.getAcquiredStructureFiles(); … … 87 90 88 91 // RDF/XML, RDF/XML-ABBREV, N-TRIPLE, N3 89 String tFileName = null;92 File outFile = null; 90 93 if (outFileName == null) { 94 String tFileName = null; 91 95 if (endPURI.lastIndexOf("/", endPURI.length() - 2) > 0) { 92 96 tFileName = endPURI.substring( … … 96 100 tFileName = endPURI; 97 101 } 98 } else { 99 tFileName = outFileName; 100 File outFile = new File(dataDir, tFileName); 102 outFile = new File(dataDir, tFileName); 101 103 if (outFile.exists()) { 102 104 outFile = File.createTempFile(tFileName, "", dataDir); 103 105 } 104 sc.write2File(outFile.getAbsolutePath(), "Turtle");105 // System.out.println("Category:" + sc.getCategory());106 } else { 107 outFile = new File(dataDir, outFileName); 106 108 } 107 109 sc.write2File(outFile.getAbsolutePath(), "Turtle"); 110 // System.out.println("Category:" + sc.getCategory()); 108 111 } 109 112