public Map<String,List<RelatedKeyword>> search(String keyword, String ontologyURI) throws SearchException {
return search(keyword);
}
private FieldQuery getFieldQuery(String keyword) {
FieldQueryFactory qf = DefaultQueryFactory.getInstance();
FieldQuery fieldQuery = qf.createFieldQuery();
Collection<String> selectedFields = new ArrayList<String>();
selectedFields.add(RDFS.label.getUnicodeString());
fieldQuery.addSelectedFields(selectedFields);
fieldQuery.setConstraint(RDFS.label.getUnicodeString(), new TextConstraint(keyword,
PatternType.wildcard, false, "en"));