If no ontology URI has been defined, then we have to check if the ontology is an anonymous one. If so, we use that anonymous ontology string as the base URI.