import re


def get_ontology_ids(text):
	"""
	Find all ontology IDs inside of some text. This makes the assumption that
	all (and exactly) seven digits of the ontology term ID number are included,
	that the abbreviation for the ontology name is in all caps, but makes no 
	assumption about the length of the name.

	Args:
		text (str): Any string of text.
		
	Returns:
		list: A list of the ontology term IDs mentioned in it.
	"""
	pattern = r"[A-Z]+:[0-9]{7}"
	results = re.findall(pattern, text)
	return(results)