Class PmidLookup
java.lang.Object
org.eclipse.pass.loader.nihms.entrez.PmidLookup
Service to retrieve a PMID records from Entrez. If you prefer to avoid dealing with JSON,
there is an option to retrieve a PubMedRecord object where you can use standard getters to
retrieve article details.
- Version:
- $Id$
- Author:
- Karen Hanson
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionretrievePubMedRecord(String pmid) Retrieve PubMedRecord object for PMID record from NIH's Entrez API service.org.json.JSONObjectRetrieve JSON for PMID record from NIH's Entrez API service.
-
Constructor Details
-
PmidLookup
-
-
Method Details
-
retrievePubMedRecord
Retrieve PubMedRecord object for PMID record from NIH's Entrez API service.- Parameters:
pmid- pub med id- Returns:
- the record
-
retrievePubMedRecordAsJson
Retrieve JSON for PMID record from NIH's Entrez API service. Returns JSON object containing the record or null if no match found. Note that "no match found" means there is no record for that pmid, whereas a RuntimeException means communication with the service failed, and the client app can decide what to do about those.- Parameters:
pmid- pub med id- Returns:
- the record as a JSON object
-