public String getOntologyNamespaceFromId(String uri){
if (ontologyMappings.containsKey(uri)){
return ontologyMappings.get(uri).getNamespace();
}
Ontology ontology = olsClient.getOntologyFromId(URI.create(uri));
<BUG>if (ontology != null){
return ontology.getConfig().getNamespace();</BUG>
}
return null;
}

public String getOntologyNamespaceFromId(String uri){
if (ontologyMappings.containsKey(uri)){
return ontologyMappings.get(uri).getNamespace();
}
Ontology ontology = olsClient.getOntologyFromId(URI.create(uri));
if (ontology != null){
ontologyMappings.put(ontology.getId(), ontology);
return ontology.getConfig().getNamespace();
}
return null;
