code: def _select_ontology(self, line):
          
          try:
              var = int(line)  # it's a string
              if var in range(1, len(self.all_ontologies)+1):
                  self._load_ontology(self.all_ontologies[var-1])
          except ValueError:
              out = []
              for each in self.all_ontologies:
                  if line in each:
                      out += [each]
              choice = self._selectFromList(out, line, "ontology")
              if choice:
                  self._load_ontology(choice)
docs: try to select an ontology NP: the actual load from FS is in <_load_ontology>