diff --git a/misc-scripts/ontology/scripts/demo3.pl b/misc-scripts/ontology/scripts/demo3.pl index e9cfa45f56169a66a9fa75b70307037c44a95335..f65ba10590205a53b029f039239e7f02c205e7a3 100755 --- a/misc-scripts/ontology/scripts/demo3.pl +++ b/misc-scripts/ontology/scripts/demo3.pl @@ -27,8 +27,12 @@ my $adaptor = my @terms = @{ $adaptor->fetch_all_by_name($pattern) }; foreach my $term (@terms) { - printf( "Accession = %s\tName = %s\n", + printf( "Accession = %s\n\tName\t= '%s'\n", $term->accession(), $term->name() ); + foreach my $synonym ( @{ $term->synonyms() } ) { + printf( "\tSynonym\t= '%s'\n", $synonym ); + } + print("\n"); } # $Id$