チェンジセット 100
- 更新日時:
- 2014/07/04 18:56:22 (10 年 前)
- パス:
- BH13SPARQLBuilder
- ファイル:
-
- 3 変更
凡例:
- 変更なし
- 追加
- 削除
-
BH13SPARQLBuilder
-
svn:ignore 属性が
target
に 設定されました。
-
svn:ignore 属性が
-
BH13SPARQLBuilder/src/org/biohackathon/SPARQLBuilder/OWL/QueryPathGenerator.java
r90 r100 18 18 //private OWLClassGraph graph; 19 19 20 /*21 20 public static void main(String[] args){ 22 21 // For Test … … 25 24 String ec = "http://purl.org/allie/ontology/201108#LongForm"; 26 25 QueryPathGenerator qpg = new QueryPathGenerator(sp); 26 SClass[] cl = qpg.getClasses(null); 27 27 Path[] path = qpg.getPaths(sc, ec, false); 28 28 System.out.println(path.length); 29 } */29 } 30 30 31 31 public QueryPathGenerator(){ … … 40 40 public SClass[] getClasses(String keyword){ 41 41 String[] keywords = null; 42 if ( keyword != null ){ // KOKO 43 keywords = new String[1]; 44 keywords[0] = keyword; 42 if ( keyword != null ){ 43 if ( keyword.length() != 0 ){ 44 keywords = new String[1]; 45 keywords[0] = keyword; 46 } 45 47 } 46 48 try { 47 return analyzer.getOWLClasses(null, keywords, sparqlEndpoint, false);49 return analyzer.getOWLClasses(null, keywords, null, false); 48 50 }catch(Exception e){ 49 51 System.err.println(e); … … 66 68 67 69 private void setAnalyzer(){ 68 //analyzer = new EndpointAnalyzer(sparqlEndpoint); //ForTest 70 analyzer = new EndpointAnalyzer(sparqlEndpoint); //ForTest 71 /* 69 72 try { 70 73 analyzer = factory.create(sparqlEndpoint); 71 74 } catch (Exception e) { 72 75 System.err.println(e); 73 } 76 }*/ 74 77 } 75 78 } -
BH13SPARQLBuilder/src/org/biohackathon/SPARQLBuilder/OWL/RDFSchemaAnalyzerFactory.java
r93 r100 10 10 11 11 private Map<String, String> acquiredRDFFiles = null; 12 private static final String FILENAME = " ./crawleddata/";12 private static final String FILENAME = "cdata/"; 13 13 14 14 public RDFSchemaAnalyzerFactory(){