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