Class EuroPubmedCentralFetcher
- java.lang.Object
-
- psidev.psi.mi.jami.bridges.europubmedcentral.EuroPubmedCentralFetcher
-
- All Implemented Interfaces:
PublicationFetcher
public class EuroPubmedCentralFetcher extends Object implements PublicationFetcher
Uses the EuroPubmedCentral WSDL SOAP service to fetch publication entries.- Since:
- 30/07/13
- Author:
- Gabriel Aldam (galdam@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description EuroPubmedCentralFetcher()
Initiates the EuroPubmedCentral fetcher
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Publication
fetchByIdentifier(String id, String source)
Uses the identifier to search for a publication and return a completed record.Collection<Publication>
fetchByIdentifiers(Map<String,Collection<String>> identifiers)
Uses the identifiers to search for publications and return completed records.
-
-
-
Field Detail
-
log
protected static final Logger log
Constantlog
-
-
Constructor Detail
-
EuroPubmedCentralFetcher
public EuroPubmedCentralFetcher() throws BridgeFailedException
Initiates the EuroPubmedCentral fetcher- Throws:
BridgeFailedException
- if any.
-
-
Method Detail
-
fetchByIdentifier
public Publication fetchByIdentifier(String id, String source) throws BridgeFailedException
Uses the identifier to search for a publication and return a completed record. Queries the EuroPubmedCentral WSDL service for the meta data. A second query is made to gather Xrefs if the meta data shows they exist.- Specified by:
fetchByIdentifier
in interfacePublicationFetcher
- Parameters:
id
- The identifier of the publication to search for.source
- The database that the identifier is from (pubmed, doi, ...).- Returns:
- A completed record for the publication or null if no publication could be found.
- Throws:
BridgeFailedException
- if any.
-
fetchByIdentifiers
public Collection<Publication> fetchByIdentifiers(Map<String,Collection<String>> identifiers) throws BridgeFailedException
Uses the identifiers to search for publications and return completed records. Uses the PubMed identifiers to search for publications and return completed records.- Specified by:
fetchByIdentifiers
in interfacePublicationFetcher
- Parameters:
identifiers
- The identifiers of the publications to search for per publication identifier source (pubmed, doi, ...).- Returns:
- Completed records for the publications.
- Throws:
BridgeFailedException
- if any.
-
-