« lib/EBI/FGPT/FuzzyRecogniser/OntologyTerm/Annotation.pm
↑ Summary
lib/EBI/FGPT/FuzzyRecogniser/OntologyTerm/Label.pm »
| 1 | |||
| 2 | =head1 NAME | ||
| 3 | |||
| 4 | EBI::FGPT::FuzzyRecogniser::OntologyTerm | ||
| 5 | |||
| 6 | |||
| 7 | =head1 SYNOPSIS | ||
| 8 | |||
| 9 | EBI::FGPT::FuzzyRecogniser::OntologyTerm has three fields: | ||
| 10 | accession,label and annotations. Annotations is an array containing | ||
| 11 | synonyms (type of EBI::FGPT::!FuzzyRecogniser::OntologyTerm::Synonym) | ||
| 12 | |||
| 13 | use EBI::FGPT::FuzzyRecogniser::OntologyTerm; | ||
| 14 | |||
| 15 | my $term = EBI::FGPT::FuzzyRecogniser::OntologyTerm->new(); | ||
| 16 | |||
| 17 | |||
| 18 | =head1 AUTHOR | ||
| 19 | |||
| 20 | Emma Hastings , <ehastings@cpan.org> | ||
| 21 | |||
| 22 | =head1 ACKNOWLEDGEMENTS | ||
| 23 | |||
| 24 | Tomasz Adamusiak <tomasz@cpan.org> | ||
| 25 | |||
| 26 | =head1 COPYRIGHT AND LICENSE | ||
| 27 | |||
| 28 | Copyright [2011] EMBL - European Bioinformatics Institute | ||
| 29 | |||
| 30 | Licensed under the Apache License, Version 2.0 (the | ||
| 31 | "License"); you may not use this file except in compliance | ||
| 32 | with the License. You may obtain a copy of the License at | ||
| 33 | http://www.apache.org/licenses/LICENSE-2.0 | ||
| 34 | Unless required by applicable law or agreed to in writing, | ||
| 35 | software distributed under the License is distributed on an | ||
| 36 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, | ||
| 37 | either express or implied. See the License for the specific | ||
| 38 | language governing permissions and limitations under the | ||
| 39 | License. | ||
| 40 | |||
| 41 | =cut | ||
| 42 | |||
| 43 | package EBI::FGPT::FuzzyRecogniser::OntologyTerm; | ||
| 44 | |||
| 45 | use Moose; | ||
| 46 | |||
| 47 | |||
| 48 | our $VERSION = 0.09; | ||
| 49 | |||
| 50 | has 'accession' => ( is => 'rw', isa => 'Str', required => 1 ); | ||
| 51 | has 'label' => ( is => 'rw', isa => 'Str', required => 1 ); | ||
| 52 | has 'annotations' => | ||
| 53 | ( is => 'rw', isa => 'ArrayRef', required => 1 ); | ||
| 54 | |||
| 55 | |||
| 56 | |||
| 57 | 1; # End of FuzzyRecogniser::OntologyTerm |