@Override
public ImmutableList<SearchResultItem> wrapTypeSuggestResultSet(ResultSet resultSet, String prefix, int limit) {
List<SearchResultItem> items = new ArrayList<SearchResultItem>();
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>() {