}
}
r.close();
return IRI.create(url);
} catch (FileNotFoundException e) {
throw new IOntologyError("Error reading ontology from "+location,e);
} catch (IOException e) {
throw new IOntologyError("Error reading ontology from "+location,e);
}
}
return null;
}