// The new OntModel that will contain the pre-existing attributes (if any),
// plus the new and updated attributes:
final OntModel newOntModel = ModelFactory.createOntologyModel(model.getSpecification(), model);
// Note: previously, newOntModel = new OwlModel(model); but the OwlModel extension was not used
// in any particular way, so the new call should be equivalent.
final Ontology ont_ = newOntModel.createOntology(base_);
if ( log.isDebugEnabled() ) {
log.debug("New ontology created with namespace " + ns_ + " base " + base_);
}
newOntModel.setNsPrefix("", ns_);