* @throws org.semanticweb.owlapi.model.UnknownOWLOntologyException
* if there isn't an ontology in this manager which has the specified IRI.
*/
public Set<OWLOntology> getDirectImports(OWLOntology ontology) throws UnknownOWLOntologyException {
if (!contains(ontology)) {
throw new UnknownOWLOntologyException(ontology.getOntologyID());
}
Set<OWLOntology> imports = new HashSet<OWLOntology>();
for (OWLImportsDeclaration axiom : ontology.getImportsDeclarations()) {
OWLOntology importedOntology = getImportedOntology(axiom);
if (importedOntology != null) {