Class PubMedSearch


  • public class PubMedSearch
    extends Object
    Search PubMed for terms, retrieve document records.
    Author:
    pavlidis
    • Constructor Detail

      • PubMedSearch

        public PubMedSearch​(String apiKey)
    • Method Detail

      • searchAndRetrieveIdsByHTTP

        public Collection<String> searchAndRetrieveIdsByHTTP​(Collection<String> searchTerms)
                                                      throws IOException
        Gets all the pubmed ID's that would be returned given a list of input terms, using two eUtil calls.
        Parameters:
        searchTerms - search terms
        Returns:
        The PubMed ids (as strings) for the search results.
        Throws:
        IOException - IO problems
      • searchAndRetrieveIdsByHTTP

        public Collection<String> searchAndRetrieveIdsByHTTP​(String searchQuery)
                                                      throws IOException
        Gets all the pubmed ID's that would be returned from a pubmed search string, using two eUtil calls.
        Parameters:
        searchQuery - - what would normally be typed into pubmed search box for example "Neural Pathways"[MeSH]
        Returns:
        The PubMed ids (as strings) for the search results.
        Throws:
        IOException - IO problems