Summary | Included libraries | Package variables | Synopsis | Description | General documentation | Methods |
WebCvs | Raw content |
use Bio::Biblio;
my $biblio = new Bio::Biblio (@args);
BEGIN | Code | |
contains | Description | Code |
destroy | Description | Code |
exists | Description | Code |
find | Description | Code |
get_all | Description | Code |
get_all_entries | Description | Code |
get_all_ids | Description | Code |
get_all_values | Description | Code |
get_by_id | Description | Code |
get_collection_id | Description | Code |
get_count | Description | Code |
get_entry_description | Description | Code |
get_more | Description | Code |
get_next | Description | Code |
get_vocabulary_names | Description | Code |
has_next | Description | Code |
reset_retrieval | Description | Code |
contains | code | next | Top |
Usage : my $yes = $biblio->contains ($vocabulary_name, $value);It returns 1 if the given controlled vocabulary contains the given value. For example, when you know, that a vocabulary MEDLINE/JournalArticle/properties contains value COUNTRY you can use it in the find method: $biblio->find ('United States', 'COUNTRY'); |
destroy | code | prev | next | Top |
Usage : $biblio->destroy;It sends a message to the remote server to forget (or free, or destroy - whatever server choose to do) the query collection represented by this object. It throws an exception if this object does not represent any query collection. |
exists | code | prev | next | Top |
Usage : my $exists = $biblio->exists;It returns 1 if the underlying query collection represented by the $biblio object still exists (on the server side). If you have a collection ID (e.g. stored or printed in a previous session) but you do not have anymore a Bio::Biblio object representing it this is how you can check the collection existence: use Bio::Biblio;It throws an exception if this object does not represent any query result - see explanation in method reset_retrieval elsewhere in this document. |
find | code | prev | next | Top |
Usage : my $new_biblio = $biblio->find ($keywords, $attrs);This is the main query method. It looks for the $keywords in a default set of attributes, or - if $attrs given - only in the given attributes. Because it returns a new Bio::Biblio object which can be again queried it is possible to chain together several invocations: $biblio->find ('Brazma')->find ('Robinson')->get_collection_id; |
get_all | code | prev | next | Top |
Usage : my $all = $biblio->get_all;It returns an XML valid string (which means that individual citations are also surrounded by a "set" XML tag) representing all citations from the underlying query collection. Note that some servers may limit the number of citations which can be returned by this method. In such case you need either to refine further your query collection (using find method) or to retrieve results by iteration (methods has_next, get_next, get_more). It throws an exception if this object does not represent any query result - see explanation in method reset_retrieval elsewhere in this document. |
get_all_entries | code | prev | next | Top |
Usage : $biblio->get_all_entries ($vocabulary_name);It returns pairs of values and their descriptions of the whole vocabulary. It throws an exception if the vocabulary does not exist. This is one way how to get it and print it: my $name = 'MEDLINE2002/JournalArticle/properties'; |
get_all_ids | code | prev | next | Top |
Usage : my $r_ids = $biblio->get_all_ids;The identifiers of all citations in the underlying query collection are returned. A usual pattern is to use them then in the get_by_id method: my $biblio = $repository->find ('brazma')->find ('robinson');It throws an exception if this object does not represent any query result - see explanation in method reset_retrieval elsewhere in this document. |
get_all_values | code | prev | next | Top |
Usage : $biblio->get_all_values ($vocabulary_name);It returns all values of the given vocabulary. It throws an exception if the vocabulary does not exist. |
get_by_id | code | prev | next | Top |
Usage : my $citation = $biblio->get_by_id ('94033980');It returns a citation - disregarding if the citation is or is not in the underlying query collection (of course, it must be in the repository). |
get_collection_id | code | prev | next | Top |
Usage : my $collection_id = $biblio->get_collection_id;Every query collection is uniquely identify-able by its collection ID. The returned value can be used to populate another $biblio object and then to access that collection. |
get_count | code | prev | next | Top |
Usage : my $count = $biblio->get_count;It returns a number of citations in the query collection represented by the calling $biblio object, or in the collection whose ID is given as an argument. |
get_entry_description | code | prev | next | Top |
Usage : $biblio->get_entry_description ($voc_name, $value);Each vocabulary entry has its value (mandatory attribute), and can have a description (optional attribute). The description may be just a human readable explanation of an attribute, or it can have more exact meaning. For example, the server implementation of the bibliographic query service provided by the EBI puts into attribute descriptions words queryable and/or retrievable to distinguish the role of the attributes. It throws an exception if either vocabulary or value do not exist. |
get_more | code | prev | next | Top |
Usage : my $r_citations = $biblio->get_more (5);It returns the next how_many available citations from the underlying query collection. It does not throw any exception if 'how_many' is more than currently available - it simply returns less. However, it throws an exception if used again without calling first reset_retrieval. It also throws an exception if this object does not represent any query result - see explanation in method reset_retrieval elsewhere in this document. |
get_next | code | prev | next | Top |
Usage : my $citation = $biblio->get_next;It returns the next available citation from the underlying query collection. It throws an exception if there are no more citations. In order to avoid this use it together with the has_next method: my $result = $biblio->find ('brazma', 'authors');It also throws an exception if this object does not represent any query result - see explanation in the reset_retrieval elsewhere in this document. |
get_vocabulary_names | code | prev | next | Top |
Usage : print join ("\n", @{ $biblio->get_vocabulary_names });The controlled vocabularies allow to introspect bibliographic repositories and to find what citation resource types (such as journal and book articles, patents or technical reports) are provided by the repository, what attributes they have, eventually what attribute values are allowed. This method returns names of all available controlled vocabularies. The names can than be used in other methods dealing with vocabularies: contains, get_entry_description, get_all_values, and get_all_entries. |
has_next | code | prev | next | Top |
Usage : my $is = $biblio->has_next;It returns 1 if there is a next citation available in the underlying query collection. Otherwise it returns undef. It throws an exception if this object does not represent any query result - see explanation in method reset_retrieval elsewhere in this document. |
reset_retrieval | code | prev | next | Top |
Usage : $biblio->reset_retrieval;It sets an iterator stored in the $biblio object back to its beginning. After this, the retrieval methods has_next, get_next and get_more start to iterate the underlying query collection again from its start. It throws an exception if this object does not represent any query result (e.i. it does not contain a collection ID). Note that a collection ID is created automatically when this object was returned by a find method, or it can be assigned in a constructor using argument -collection_id. |
BEGIN | Top |
$VERSION = do { my @r = (q$$Revision: 1.5 $ =~ /\d+/g); sprintf "%d.%-02d", @r }; $Revision = q$$Id: BiblioI.pm,v 1.5 2002/10/22 07:45:13 lapp Exp $;}
contains | description | prev | next | Top |
shift->throw_not_implemented;}
destroy | description | prev | next | Top |
shift->throw_not_implemented;}
exists | description | prev | next | Top |
shift->throw_not_implemented;}
find | description | prev | next | Top |
shift->throw_not_implemented;}
get_all | description | prev | next | Top |
shift->throw_not_implemented;}
get_all_entries | description | prev | next | Top |
shift->throw_not_implemented;}
get_all_ids | description | prev | next | Top |
shift->throw_not_implemented;}
get_all_values | description | prev | next | Top |
shift->throw_not_implemented;}
get_by_id | description | prev | next | Top |
shift->throw_not_implemented;}
get_collection_id | description | prev | next | Top |
my ($self,@args) = @_; $self->throw_not_implemented(); } # -----------------------------------------------------------------------------}
get_count | description | prev | next | Top |
shift->throw_not_implemented();}
get_entry_description | description | prev | next | Top |
shift->throw_not_implemented;}
get_more | description | prev | next | Top |
shift->throw_not_implemented;}
get_next | description | prev | next | Top |
shift->throw_not_implemented;}
get_vocabulary_names | description | prev | next | Top |
shift->throw_not_implemented;}
has_next | description | prev | next | Top |
shift->throw_not_implemented;}
reset_retrieval | description | prev | next | Top |
shift->throw_not_implemented;}
FEEDBACK | Top |
Mailing Lists | Top |
bioperl-l@bioperl.org - General discussion
http://bioperl.org/MailList.shtml - About the mailing lists
Reporting Bugs | Top |
bioperl-bugs@bioperl.org
http://bugzilla.bioperl.org/
AUTHOR | Top |
COPYRIGHT | Top |
DISCLAIMER | Top |
APPENDIX | Top |
VERSION and Revision | Top |
Usage : print $Bio::DB::BiblioI::VERSION;
print $Bio::DB::BiblioI::Revision;