NAME

Catmandu::Importer::EuropePMC - Package that imports EuropePMC data.

API Documentation

This module uses the REST service as described at http://www.ebi.ac.uk/europepmc/.

SYNOPSIS

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];
  # ...
});

CONFIGURATION

base_url

Specify the base url of the API. The default is 'https://www.ebi.ac.uk/europepmc/webservices/rest'.

source

The default is 'MED'.

query

Provide a search query. Either pmid or query is required.

pmid

Specify the PMID of the record you want to import. Either pmid or query is required.

module

The default is 'search', other possible values are 'databaseLinks', 'citations' and 'references'.

db

Set the name of the database. Use this when module is set to 'databaseLinks'.

page

Optional. Set the paging parameter.

raw

Optional. If set to true it delivers the raw xml object.

SEE ALSO

Catmandu, Catmandu::Iterable, Catmandu::Fix,