if(o instanceof RDFResource){
//TODO: maybe there is some tripplestore trick that I can use
// and avoid loading imported ontology again
RDFResource on = (RDFResource) o;
PResource ont = new PResource(on);
Repository r = model.getRepositoryManager().getRepository(ont.getURI());
//TODO We check this because sometimes r is null. We dont understand this completely,
//just circumventing this for now.
if(r==null)
continue;
URI uri = ont.getURI();
String location = r.getOntologyLocationDescription(uri);
Properties map = new Properties();
map.put("name",PUtils.getName(uri));
map.put("version",ont.getVersion());
map.put("description",ont.getDescription());
map.put("uri",""+uri);