while(resultSet.hasNext()){
QuerySolution solution = resultSet.nextSolution();
String type = solution.getResource("type").getURI();
String label = solution.getLiteral("label").getString();
double score = StringUtils.getLevenshteinScore(label, prefix);
items.add(new SearchResultItem(type, label, score));
}
Collections.sort(items, new Comparator<SearchResultItem>() {
@Override
public int compare(SearchResultItem o1, SearchResultItem o2) {