チェンジセット 85
- 更新日時:
- 2014/06/18 18:04:20 (10 年 前)
- パス:
- BH13SPARQLBuilder
- ファイル:
-
- 1 追加
- 3 変更
凡例:
- 変更なし
- 追加
- 削除
-
BH13SPARQLBuilder/.classpath
r42 r85 18 18 </classpathentry> 19 19 <classpathentry kind="lib" path="lib2/agraph-4.5.jar"/> 20 <classpathentry combineaccessrules="false" kind="src" path="/RDFManager"/> 20 21 <classpathentry kind="output" path="target/classes"/> 21 22 </classpath> -
BH13SPARQLBuilder/.settings/org.eclipse.core.resources.prefs
r2 r85 1 1 eclipse.preferences.version=1 2 encoding//src/org/biohackathon/SPARQLBuilder/OWL/ OWLQueryBuilderImpl.java=UTF-82 encoding//src/org/biohackathon/SPARQLBuilder/OWL/EndpointAnalyzer.java=UTF-8 3 3 encoding/<project>=UTF-8 -
BH13SPARQLBuilder/src/org/biohackathon/SPARQLBuilder/OWL/RDFSchemaAnalyzerFactory.java
r81 r85 11 11 private Map<String, String> acquiredRDFFiles = null; 12 12 13 public void setAcqiredRDFFiles(File data){ 14 if( data.isDirectory() ){ 15 // read files 16 File[] files = data.listFiles(); 17 acquiredRDFFiles = new HashMap<String, String>(); 18 for(File file: files){ 19 String uri = null; 20 try{ 21 JenaModelGenerator jmGene = new JenaModelGenerator(file.getAbsolutePath()); 22 uri = jmGene.getEndpointURI(); 23 }catch(Exception ex){ 24 // 25 } 26 if( uri != null ){ 27 acquiredRDFFiles.put(uri, data.getAbsolutePath()); 28 } 29 } 30 }else{ 31 if( data.isFile() ){ 32 String uri = null; 33 try{ 34 JenaModelGenerator jmGene = new JenaModelGenerator(data.getAbsolutePath()); 35 uri = jmGene.getEndpointURI(); 36 }catch(Exception ex){ 37 // 38 } 39 if( uri != null ){ 40 acquiredRDFFiles = new HashMap<String, String>(); 41 acquiredRDFFiles.put(uri, data.getAbsolutePath()); 42 } 43 } 44 } 13 public void setAcqiredRDFFiles(File data) throws Exception{ 14 StructureCrawler sc = new StructureCrawler(data); 15 acquiredRDFFiles = sc.getAcquiredStructureFiles(); 45 16 } 17 46 18 47 19 public RDFSchemaAnalyzer create(String uri) throws Exception{