code: def getOntologyByName(self, name):
          
          if name not in self._ontologyNameMap:
              raise exceptions.OntologyNameNotFoundException(name)
          return self._ontologyNameMap[name]
docs: Returns an ontology by name