Class PubMedEntrezRecord
java.lang.Object
org.eclipse.pass.loader.nihms.entrez.PubMedEntrezRecord
Class is instantiated by passing in a JSONObject from Entrez representing a PubMed
article record. Using getters you can then pull fields from that JSONObject
- Author:
- Karen Hanson
-
Constructor Summary
ConstructorsConstructorDescriptionPubMedEntrezRecord(org.json.JSONObject entrezJson) Instantiate a PubMedRecord by passing in a JSONObject representing a single result from the PubMed database of the Entrez API. -
Method Summary
Modifier and TypeMethodDescriptiongetDoi()Extract DOI from Entrez JSON as https://doi.org/10....getEssn()Extracts ESSN from Entrez JSON record and returns itgetIssn()Extracts ISSN from Entrez JSON record and returns itgetIssue()Extracts issue from Entrez JSON record and returns itgetPmid()Extracts PMID from Entrez JSON record and returns itgetTitle()Extracts title from Entrez JSON record and returns itExtracts volume from Entrez JSON record and returns it
-
Constructor Details
-
PubMedEntrezRecord
public PubMedEntrezRecord(org.json.JSONObject entrezJson) Instantiate a PubMedRecord by passing in a JSONObject representing a single result from the PubMed database of the Entrez API. The root of this record starts at the PMID if the results JSON. Here is a sample record: https://eutils.ncbi.nlm.nih.gov/entrez/eutils/esummary.fcgi?db=pubmed&retmode=json&rettype=full&id=27771272- Parameters:
entrezJson- JSONObject for single PubMed record from Entrez API.
-
-
Method Details
-
getDoi
Extract DOI from Entrez JSON as https://doi.org/10....- Returns:
- the doi
-
getPmid
Extracts PMID from Entrez JSON record and returns it- Returns:
- the title
-
getTitle
Extracts title from Entrez JSON record and returns it- Returns:
- the title
-
getVolume
Extracts volume from Entrez JSON record and returns it- Returns:
- the volume
-
getIssue
Extracts issue from Entrez JSON record and returns it- Returns:
- the issue
-
getIssn
Extracts ISSN from Entrez JSON record and returns it- Returns:
- the ISSN
-
getEssn
Extracts ESSN from Entrez JSON record and returns it- Returns:
- the ESSN
-