/** @return current ontology */
@Nonnull
public OWLOntology getCurrentOntology() {
OWLOntology ontology = walker.getOntology();
if (ontology == null) {
throw new OWLRuntimeException(
"No current ontology; is the walker being used outside of an ontology visit?");
}
return ontology;
}