差分発生行の前後
無視リスト:
更新日時:
2014/07/04 18:56:22 (10 年 前)
更新者:
atsuko
ログメッセージ:

querypathgenerator improved

パス:
BH13SPARQLBuilder
ファイル:
3 変更

凡例:

変更なし
追加
削除
  • BH13SPARQLBuilder

    • svn:ignore 属性が
      target
      に 設定されました。
  • BH13SPARQLBuilder/src/org/biohackathon/SPARQLBuilder/OWL/QueryPathGenerator.java

    r90 r100  
    1818    //private OWLClassGraph graph; 
    1919 
    20     /* 
    2120    public static void main(String[] args){ 
    2221        // For Test 
     
    2524        String ec = "http://purl.org/allie/ontology/201108#LongForm"; 
    2625        QueryPathGenerator qpg = new QueryPathGenerator(sp); 
     26        SClass[] cl = qpg.getClasses(null); 
    2727        Path[] path = qpg.getPaths(sc, ec, false); 
    2828        System.out.println(path.length); 
    29     }*/ 
     29    } 
    3030     
    3131    public QueryPathGenerator(){ 
     
    4040    public SClass[] getClasses(String keyword){ 
    4141        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            } 
    4547        } 
    4648        try { 
    47             return analyzer.getOWLClasses(null, keywords, sparqlEndpoint, false); 
     49            return analyzer.getOWLClasses(null, keywords, null, false); 
    4850        }catch(Exception e){ 
    4951            System.err.println(e); 
     
    6668 
    6769    private void setAnalyzer(){ 
    68         //analyzer = new EndpointAnalyzer(sparqlEndpoint); //ForTest 
     70        analyzer = new EndpointAnalyzer(sparqlEndpoint); //ForTest 
     71        /* 
    6972        try { 
    7073            analyzer = factory.create(sparqlEndpoint); 
    7174        } catch (Exception e) { 
    7275            System.err.println(e); 
    73         } 
     76        }*/ 
    7477    } 
    7578} 
  • BH13SPARQLBuilder/src/org/biohackathon/SPARQLBuilder/OWL/RDFSchemaAnalyzerFactory.java

    r93 r100  
    1010 
    1111        private Map<String, String> acquiredRDFFiles = null; 
    12         private static final String FILENAME = "./crawleddata/"; 
     12        private static final String FILENAME = "cdata/"; 
    1313         
    1414        public RDFSchemaAnalyzerFactory(){