* Loads given resources(URIS) from DB and sets their initial rank
* @param queries
* @return
*/
public RdfResultObject getRdfResultObject(Map<String, Double> queries) {
RdfResultObject result = new RdfResultObject();
Model md = Repository.JOINED.getModel();
md.open();
result.addResults(getResourcesFromCache(queries));
IndexResourceLoader<Person, TaxonomyEntry, KOSEntry, String, String> rl = new IndexBookResourceLoader();
List<IndexResource<Person, TaxonomyEntry, KOSEntry, String, String>> list = rl.loadResources(queries, md);
for(IndexResource<Person, TaxonomyEntry, KOSEntry, String, String> res : list){
if(!resourceCache.containsKey(res.getURIAsString())){
resourceCache.put(res.getURIAsString(),(IndexRdfResource) res);
}
}
md.close();
result.addResults(list);
return result;
}