code: def _next_ontology(self):
          
          currentfile = self.current['file']
          try:
              idx = self.all_ontologies.index(currentfile)
              return self.all_ontologies[idx+1]
          except:
              return self.all_ontologies[0]
docs: Dynamically retrieves the next ontology in the list