Bio::Ontology::Ontology

Bio::Ontology::Ontology is a standard implementation of an Ontology.
Download

Bio::Ontology::Ontology Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Hilmar Lapp
  • Publisher web site:
  • http://search.cpan.org/~sendu/bioperl-db-1.5.2_100/Bio/DB/BioSQL/SimpleValueAdaptor.pm

Bio::Ontology::Ontology Tags


Bio::Ontology::Ontology Description

Bio::Ontology::Ontology is a standard implementation of an Ontology. Bio::Ontology::Ontology is a standard implementation of an Ontology.SYNOPSIS use Bio::Ontology::Ontology; # create ontology object my $ont = Bio::Ontology::Ontology->new(-name => "OBF"); # add terms, relationships ... my $bp = Bio::Ontology::Term->new(-name => "Bioperl"); my $obf = Bio::Ontology::Term->new(-name => "OBF"); my $partof = Bio::Ontology::RelationshipType->get_instance("PART_OF"); $ont->add_term($bp); $ont->add_term($obf); $ont->add_relationship($bp, $obf, $partof); # then query my @terms = $ont->get_root_terms(); # "OBF" my @desc = $ont->get_descendant_terms($terms, $partof); # "Bioperl" # ... see methods for other ways to query # for advanced users, you can re-use the query engine outside of an # ontology to let one instance manage multiple ontologies my $ont2 = Bio::Ontology::Ontology->new(-name => "Foundations", -engine => $ont->engine());This is a no-frills implementation of Bio::Ontology::OntologyI.The query functions are implemented by delegation to an OntologyEngineI implementation. Requirements: · Perl


Bio::Ontology::Ontology Related Software