return IRI.create(prefixIRI);
}
} else {
String prefixName = prefixIRI.substring(0, sep + 1);
if (!containsPrefixMapping(prefixName)) {
throw new OWLRuntimeException(
"Prefix not registered for prefix name: " + prefixName);
}
String prefix = getPrefix(prefixName);
String localName = prefixIRI.substring(sep + 1);
return IRI.create(prefix, localName);