String stripped = unescaped.replace(" ", "-");
if (!stripped.startsWith("http:")) {
getConsumer().setDefaultNamespace(value.toUpperCase());
IRI iri = getIdIRI(stripped);
applyChange(new SetOntologyID(getOntology(), new OWLOntologyID(iri)));
}
else {
if(stripped.endsWith("/")) {
stripped = stripped.substring(0, stripped.length() - 1);
}
IRI iri = IRI.create(stripped);
applyChange(new SetOntologyID(getOntology(), new OWLOntologyID(iri)));
}
}