Bio::DB::Biblio::pdf - Fetch PDF for a PubMed ID Do not use this object directly, it is recommended to access it and use it through the Bio::Biblio module:
use Bio::Biblio;my $biblio = new Bio::Biblio (-access => 'pdf');
This object contains the real implementation of a Bibliographic Query Service as defined in Bio::DB::BiblioI. Bio::DB::BiblioI is not implemented as documented in the interface, particularly the find() method, which is not compatible with PubMed's query language.
Mailing Lists User feedback is an integral part of the evolution of this and other Bioperl modules. Send your comments and suggestions preferably to the Bioperl mailing list. Your participation is much appreciated.
[email protected] - General discussionhttp://bioperl.org/wiki/Mailing_lists - About the mailing lists
Reporting Bugs Report bugs to the Bioperl bug tracking system to help us keep track of the bugs and their resolution. Bug reports can be submitted via the web:
http://bugzilla.open-bio.org/
Allen Day <[email protected]> Copyright (c) 2004 Allen Day, University of California, Los Angeles. This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. This software is provided "as is" without warranty of any kind. Of course, you'll need access to the sites hosting the PDFs to download them.
= item *
If you're having problems retrieving PDF from a site you have access to, you might try adjusting the max_depth() attribute. It is default set to 3, and affects how many links deep will be recursively followed in page fetches to try to find your PDF.
Pub Med Helphttp://eutils.ncbi.nlm.nih.gov/entrez/query/static/help/pmhelp.html
Entrez Utilitieshttp://eutils.ncbi.nlm.nih.gov/entrez/query/static/eutils_help.html
The main documentation details are to be found in Bio::DB::BiblioI. Here is the rest of the object methods. Interface methods first, followed by internal methods.
_initialize
Usage : my $obj = new Bio::Biblio (-access => 'pdf' ...);(_initialize is internally called from this constructor)Returns : 1 on successArgs : none
This is an actual new() method (except for the real object creation and its blessing which is done in the parent class Bio::Root::Root in method _create_object). Note that this method is called always as an object method (never as a class method) - and that the object who calls this method may already be partly initiated (from Bio::Biblio::new method); so if you need to do some tricks with the 'class invocation' you need to change Bio::Biblio::new method, not this one.
get_next
Title : get_nextUsage : $xml = $biblio->get_next();Function: return next record as xmlReturns : an xml stringArgs : none
find
Title : findUsage : $biblio = $biblio->find(1234);Function: perform a PubMed query by PubMed IDReturns : a reference to the object on which the method was calledArgs : a PubMed ID
exists
Title : existsUsage : do not useFunction: no-op. this is here only for interface compatibilityReturns : undefArgs : none
destroy
Title : destroyUsage : do not useFunction: no-op. this is here only for interface compatibilityReturns : undefArgs : none
get_vocabulary_names
Title : get_vocabulary_namesUsage : do not useFunction: no-op. this is here only for interface compatibilityReturns : empty arrayrefArgs : none
contains
Title : containsUsage : do not useFunction: no-op. this is here only for interface compatibilityReturns : undefArgs : none
get_entry_description
Title : get_entry_descriptionUsage : do not useFunction: no-op. this is here only for interface compatibilityReturns : undefArgs : none
get_all_values
Title : get_all_valuesUsage : do not useFunction: no-op. this is here only for interface compatibilityReturns : undefArgs : none
get_all_entries
Title : get_all_entriesUsage : do not useFunction: no-op. this is here only for interface compatibilityReturns : undefArgs : none
depth()
Usage : $obj->depth($newval)Function: track link recursion depthExample :Returns : value of depth (a scalar)Args : on set, new value (a scalar or undef, optional)
max_depth()
Usage : $obj->max_depth($newval)Function: how far should link recursion go?Example :Returns : value of max_depth (a scalar)Args : on set, new value (a scalar or undef, optional)
ua()
Usage : $obj->ua($newval)Function: holds an LWP::UserAgent instanceExample :Returns : value of ua (a scalar)Args : on set, new value (a scalar or undef, optional)
pdf()
Usage : $obj->pdf($newval)Function: holds pdf dataExample :Returns : value of pdf (a scalar)Args : on set, new value (a scalar or undef, optional)