String prefix = query.substring(0,index);
String lPart = query.substring(index + 1);
for(Vocabulary v:schema.getPrefixesMap().values()){
String name = v.getName();
if (name.equals(prefix)){
result.add(new SearchResultItem(v.getUri()+lPart, prefix, lPart, "", "Not in the imported vocabulary definition"));
}
}
}else{
for(Vocabulary v:schema.getPrefixesMap().values()){
String name = v.getName();
if (name.startsWith(query)){
result.add(new SearchResultItem(v.getUri(), name, "", "", "Not in the imported vocabulary definition"));
}
}
}
return result;
}