Catmandu::Importer::EuropePMC - Package that imports EuropePMC data.
For alternatives see e.g. L<Catmandu::Importer::getJSON>.
This module uses the REST service as described at http://www.ebi.ac.uk/europepmc/.
use Catmandu::Importer::EuropePMC; my %attrs = ( source => 'MED', query => 'malaria', module => 'search', db => 'EMBL', page => '2', ); my $importer = Catmandu::Importer::EuropePMC->new(%attrs); my $n = $importer->each(sub { my $hashref = $_[0]; # ... });
Specify the base url of the API. The default is 'https://www.ebi.ac.uk/europepmc/webservices/rest'.
The default is 'MED'.
Provide a search query. Either pmid or query is required.
Specify the PMID of the record you want to import. Either pmid or query is required.
The default is 'search', other possible values are 'databaseLinks', 'citations' and 'references'.
Set the name of the database. Use this when module is set to 'databaseLinks'.
Optional. Set the paging parameter.
Optional. If set to true it delivers the raw xml object.
Catmandu, Catmandu::Iterable, Catmandu::Fix,
To install Catmandu::EuropePMC, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catmandu::EuropePMC
CPAN shell
perl -MCPAN -e shell install Catmandu::EuropePMC
For more information on module installation, please visit the detailed CPAN module installation guide.