1 # -*-Perl-*- Test Harness script for Bioperl
9 test_begin(-tests => 6,
10 -requires_module => 'Graph',
11 -requires_networking => 1);
13 use_ok('Bio::Ontology::OntologyStore');
16 ok my $store = Bio::Ontology::OntologyStore->get_instance;
19 eval {$ontology = $store->get_ontology(-name => 'Sequence Ontology');};
20 skip "Couldn't get sequence ontology, network problems? Skipping these tests", 4 if $@;
21 ok(scalar($ontology->get_root_terms()) == 1);
22 my($txt) = $ontology->find_terms(-name => 'transcript');
23 is $txt->identifier, 'SO:0000673';
24 is $txt->name, 'transcript';
25 is $txt->definition, 'An RNA synthesized on a DNA or RNA template by an RNA polymerase.';