差分発生行の前後
無視リスト:
更新日時:
2015/03/24 18:18:00 (10 年 前)
更新者:
atsuko
ログメッセージ:

枝刈り,クラス順序変更(数字は下に)

ファイル:
1 変更

凡例:

変更なし
追加
削除
  • SPARQLBuilderWWW/src/java/org/biohackathon/SPARQLBuilder/OWL/QueryPathGenerator.java

    r228 r248  
    1818    private RDFSchemaAnalyzer analyzer = null; 
    1919    private OWLClassGraph graph; 
     20    private boolean askcheck; 
    2021     
    2122    private static final String CDIR = "cdata"; 
     
    5051        factory = new RDFSchemaAnalyzerFactory(CDIR); 
    5152    } 
    52      
     53 
    5354    public QueryPathGenerator(String sparqlEndpoint){ 
    5455        factory = new RDFSchemaAnalyzerFactory(CDIR); 
    5556        setSPARQLendpoint(sparqlEndpoint); 
    56         setOWLClassGraph(); 
    5757    } 
    58  
     58     
     59    public void setOWLClassGraph(String startClass){ 
     60        graph = new OWLClassGraph(analyzer, sparqlEndpoint, startClass, askcheck); 
     61    } 
     62     
     63/* 
    5964    public QueryPathGenerator(String sparqlEndpoint, String crawlFileName){ 
    6065        factory = new RDFSchemaAnalyzerFactory(crawlFileName); 
     
    6267        setOWLClassGraph(); 
    6368    } 
     69    */ 
    6470     
    6571    public SClass[] getClasses(String keyword){ 
     
    7985    }  
    8086     
    81     public Path[] getPaths(String startClass, String endClass, boolean countLink){ 
     87    public Path[] getPaths(String startClass, String endClass, boolean askcheck){ 
     88        this.askcheck = askcheck; 
    8289        if ( graph == null ){ 
    83             setOWLClassGraph(); 
     90            //System.err.println("Class graph is null.");  
     91            setOWLClassGraph(startClass); 
    8492        } 
    85         graph.setPartClassGraph(analyzer, startClass); 
    8693        return graph.getPaths(startClass, endClass); 
    87         //return graph.getPaths(startClass, endClass, analyzer); 
    88         //return graph.getPaths_old(analyzer, true, startClass, endClass); 
    8994    } 
    9095     
     
    135140    } 
    136141     
     142    /* 
    137143    private void setOWLClassGraph(){ 
    138         graph = new OWLClassGraph(analyzer);  
    139     } 
     144        //graph = new OWLClassGraph(analyzer); 
     145        graph = new OWLClassGraph(); 
     146    }*/ 
    140147     
    141148    public OWLClassGraph getOWLClassGraph(){ 
    142         if ( graph == null ){ 
     149        /*if ( graph == null ){ 
    143150            graph = new OWLClassGraph(analyzer);              
    144         } 
     151        }*/ 
    145152        return graph; 
    146153    }