チェンジセット 271 : SPARQLBuilderWWW2016/src/java/org/biohackathon/SPARQLBuilder/OWL/RDFSchemaAnalyzerFactory.java
- 更新日時:
- 2016/03/15 12:22:07 (9 年 前)
- ファイル:
-
- 1 変更
凡例:
- 変更なし
- 追加
- 削除
-
SPARQLBuilderWWW2016/src/java/org/biohackathon/SPARQLBuilder/OWL/RDFSchemaAnalyzerFactory.java
r269 r271 1 1 package org.biohackathon.SPARQLBuilder.OWL; 2 2 3 import java.io.File; 4 import java.util.HashMap; 5 import java.util.Map; 3 import org.biohackathon.SPARQLBuilder.endpointMetadata.MetadataManager; 4 import jp.riken.accc.db.sparqlBuilderMetadata.crawler.dataStructure.sparql.crawler.CrawledMetadata; 6 5 7 import org.biohackathon.SPARQLBuilder.endpointMetadata.MetadataFile;8 import org.biohackathon.SPARQLBuilder.endpointMetadata.MetadataManager;9 10 import jp.riken.accc.db.sparqlBuilderMetadata.crawler.dataStructure.sparql.JenaModelGenerator;11 import jp.riken.accc.db.sparqlBuilderMetadata.crawler.dataStructure.sparql.crawler.CrawledMetadata;12 6 13 7 public class RDFSchemaAnalyzerFactory { 14 8 15 9 private MetadataManager metadataManager = null; 16 // private Map<String, String> acquiredRDFFiles = null;17 10 private static final String FILENAME = "C:\\cdata"; 18 11 … … 20 13 try{ 21 14 metadataManager = new MetadataManager(fileName); 22 // setAcqiredRDFFiles(new File(fileName));23 15 }catch(Exception e){ 24 16 System.err.println(e); … … 29 21 try{ 30 22 metadataManager = new MetadataManager(FILENAME); 31 // setAcqiredRDFFiles(new File(FILENAME));32 23 }catch(Exception e){ 33 24 System.err.println(e); … … 35 26 } 36 27 37 // private void setAcqiredRDFFiles(String dirFile) throws Exception{38 // setAcqiredRDFFiles(new File(dirFile));39 // }40 28 41 // private void setAcqiredRDFFiles(File data) throws Exception{42 // StructureCrawler sc = new StructureCrawler(data);43 // acquiredRDFFiles = sc.getAcquiredStructureFiles();44 // }45 29 46 30 public String[] getEndpointURIList(){ … … 53 37 54 38 55 public RDFSchemaAnalyzer create(String uri) throws Exception{ 56 CrawledMetadata crawledMetadata = metadataManager.getCrawledMetadata(uri); 57 if( crawledMetadata == null ){ 58 return new EndpointAnalyzer(uri); 59 }else{ 60 return new AcquiredStructureAnalyzer(crawledMetadata); 61 } 39 public RDFSchemaAnalyzer create() throws Exception{ 40 return new AcquiredStructureAnalyzer(metadataManager); 62 41 } 63 42 }