use OBO::Parser::OBOParser;
my $my_parser = OBO::Parser::OBOParser->new();
my $ontology = $my_parser->work("my_obo_ontology.obo");
my $synonym = "cell-cycle";
my $interesting_term = $ontology->get_term_by_name_or_synonym($synonym);
print "The name of the term is: ", $interesting_term->name();
use OBO::Parser::OBOParser;
my $my_parser = OBO::Parser::OBOParser->new();
my $ontology = $my_parser->work("my_obo_ontology.obo");
my $db = "Reactome";
my $acc = "12345";
my $interesting_term = $ontology->get_term_by_xref($db, $acc);
print "The name of the term is: ", $interesting_term->name();