- 更新日時:
- 2014/03/13 11:39:13 (11 年 前)
- パス:
- BH13SPARQLBuilder/src/org/biohackathon/SPARQLBuilder/OWL
- ファイル:
-
- 2 変更
凡例:
- 変更なし
- 追加
- 削除
-
BH13SPARQLBuilder/src/org/biohackathon/SPARQLBuilder/OWL/OWLQueryBuilder.java
r36 r55 25 25 * @since 28.01.2014 26 26 */ 27 public SClass[] getOWLClasses(String[] graphURIs, String keyword, boolean countInstances) throws Exception;27 public SClass[] getOWLClasses(String[] graphURIs, String[] keyword, boolean countInstances) throws Exception; 28 28 29 public SClass[] listClasses(String[] graphURIs, boolean countInstances) throws Exception; 30 29 31 /** 30 32 *縲繧、繝ウ繧ケ繧ソ繝ウ繧ケ繧貞叙蠕励☆繧� -
BH13SPARQLBuilder/src/org/biohackathon/SPARQLBuilder/OWL/OWLQueryBuilderImpl.java
r54 r55 152 152 * @since 28.01.2014 153 153 */ 154 public SClass[] getOWLClasses(String[] graphURIs, String keyword,154 public SClass[] getOWLClasses(String[] graphURIs, String[] keywords, 155 155 boolean countInstances) throws Exception { 156 156 StringBuffer queryStr = new StringBuffer(); … … 188 188 // queryStr.append(keyword); 189 189 // 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 196 202 } 197 203 if (countInstances) { … … 248 254 } 249 255 256 public SClass[] listClasses(String[] graphURIs, boolean countInstances) throws Exception{ 257 258 //TODO 259 return null; 260 } 261 262 263 250 264 /** 251 265 * 縲繧、繝ウ繧ケ繧ソ繝ウ繧ケ繧貞叙蠕励☆繧�