チェンジセット 269 : SPARQLBuilderWWW2016/src/java/org/biohackathon/SPARQLBuilder/OWL/RDFSchemaAnalyzerFactory.java
- 更新日時:
- 2016/03/14 20:01:59 (9 年 前)
- ファイル:
-
- 1 変更
凡例:
- 変更なし
- 追加
- 削除
-
SPARQLBuilderWWW2016/src/java/org/biohackathon/SPARQLBuilder/OWL/RDFSchemaAnalyzerFactory.java
r267 r269 8 8 import org.biohackathon.SPARQLBuilder.endpointMetadata.MetadataManager; 9 9 10 import jp.riken.accc.db.rdf.crawler.dataStructure.sparql.JenaModelGenerator; 10 import jp.riken.accc.db.sparqlBuilderMetadata.crawler.dataStructure.sparql.JenaModelGenerator; 11 import jp.riken.accc.db.sparqlBuilderMetadata.crawler.dataStructure.sparql.crawler.CrawledMetadata; 11 12 12 13 public class RDFSchemaAnalyzerFactory { … … 47 48 } 48 49 49 public MetadataFile[] getMetadataFiles(){50 return metadataManager.get MetadataFiles();50 public CrawledMetadata[] getMetadataFiles(){ 51 return metadataManager.getCrawlerMetadataList(); 51 52 } 52 53 53 54 54 55 public RDFSchemaAnalyzer create(String uri) throws Exception{ 55 MetadataFile mFile = metadataManager.getMetadataFile(uri);56 if( mFile== null ){56 CrawledMetadata crawledMetadata = metadataManager.getCrawledMetadata(uri); 57 if( crawledMetadata == null ){ 57 58 return new EndpointAnalyzer(uri); 58 59 }else{ 59 JenaModelGenerator jmGene = new JenaModelGenerator(mFile.getFilePath()); 60 return new AcquiredStructureAnalyzer(jmGene.getEndpointURI(), jmGene.getGraphURIs(), jmGene.getModel()); 60 return new AcquiredStructureAnalyzer(crawledMetadata); 61 61 } 62 62 }