938 simplify save ontology

Fixes #938, but we cannot get rid of most of the method's arguments, if we want to keep the code DRY. `save_ontology` is much cleaner than before, though.
I'm ignoring this comment