差分発生行の前後
無視リスト:
更新日時:
2014/03/13 11:39:13 (11 年 前)
更新者:
nori
ログメッセージ:

クラス検索機能について、複数のキーワードが指定できるよう、引数をStringからString[]に変更

パス:
BH13SPARQLBuilder/src/org/biohackathon/SPARQLBuilder/OWL
ファイル:
2 変更

凡例:

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

    r36 r55  
    2525         * @since 28.01.2014 
    2626         */ 
    27         public SClass[] getOWLClasses(String[] graphURIs, String keyword, boolean countInstances) throws Exception; 
     27        public SClass[] getOWLClasses(String[] graphURIs, String[] keyword, boolean countInstances) throws Exception; 
    2828 
     29        public SClass[] listClasses(String[] graphURIs, boolean countInstances) throws Exception; 
     30         
    2931        /** 
    3032         *縲€繧、繝ウ繧ケ繧ソ繝ウ繧ケ繧貞叙蠕励☆繧� 
  • BH13SPARQLBuilder/src/org/biohackathon/SPARQLBuilder/OWL/OWLQueryBuilderImpl.java

    r54 r55  
    152152         * @since 28.01.2014 
    153153         */ 
    154         public SClass[] getOWLClasses(String[] graphURIs, String keyword, 
     154        public SClass[] getOWLClasses(String[] graphURIs, String[] keywords, 
    155155                        boolean countInstances) throws Exception { 
    156156                StringBuffer queryStr = new StringBuffer(); 
     
    188188                // queryStr.append(keyword); 
    189189                // queryStr.append("."); 
    190                 if (keyword != null && keyword.length() != 0) { 
    191                         queryStr.append("  FILTER (\n"); 
    192                         queryStr.append("    REGEX( ?label , \""); 
    193                         queryStr.append(keyword); 
    194                         queryStr.append("\" , \"i\" )\n"); 
    195                         queryStr.append("  )\n"); 
     190                if (keywords != null && keywords.length != 0) { 
     191                         
     192                        // TODO 
     193 
     194                         
     195//                      queryStr.append("  FILTER (\n"); 
     196//                      queryStr.append("    REGEX( ?label , \""); 
     197//                      queryStr.append(keyword); 
     198//                      queryStr.append("\" , \"i\" )\n"); 
     199//                      queryStr.append("  )\n"); 
     200 
     201                 
    196202                } 
    197203                if (countInstances) { 
     
    248254        } 
    249255 
     256        public SClass[] listClasses(String[] graphURIs, boolean countInstances) throws Exception{ 
     257 
     258                //TODO  
     259                return null; 
     260        } 
     261 
     262         
     263         
    250264        /** 
    251265         * 縲€繧、繝ウ繧ケ繧ソ繝ウ繧ケ繧貞叙蠕励☆繧�