Add method to get all parents of a term.