Class PubMedSearch
- java.lang.Object
-
- ubic.gemma.core.loader.entrez.pubmed.PubMedSearch
-
public class PubMedSearch extends Object
Search PubMed for terms, retrieve document records.- Author:
- pavlidis
-
-
Constructor Summary
Constructors Constructor Description PubMedSearch()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<BibliographicReference>
searchAndRetrieveByHTTP(Collection<String> searchTerms)
Search based on termsCollection<BibliographicReference>
searchAndRetrieveIdByHTTP(Collection<String> searchTerms)
Collection<String>
searchAndRetrieveIdsByHTTP(String searchQuery)
Gets all the pubmed ID's that would be returned from a pubmed search string, using two eUtil calls.Collection<String>
searchAndRetrieveIdsByHTTP(Collection<String> searchTerms)
Gets all the pubmed ID's that would be returned given a list of input terms, using two eUtil calls.
-
-
-
Method Detail
-
searchAndRetrieveByHTTP
public Collection<BibliographicReference> searchAndRetrieveByHTTP(Collection<String> searchTerms) throws IOException, SAXException, ParserConfigurationException, ESearchException
Search based on terms- Parameters:
searchTerms
- search terms- Returns:
- BibliographicReference representing the publication
- Throws:
IOException
- IO problemsSAXException
- sax exceptionParserConfigurationException
- parser config exceptionESearchException
-
searchAndRetrieveIdByHTTP
public Collection<BibliographicReference> searchAndRetrieveIdByHTTP(Collection<String> searchTerms) throws IOException
- Throws:
IOException
-
searchAndRetrieveIdsByHTTP
public Collection<String> searchAndRetrieveIdsByHTTP(Collection<String> searchTerms) throws IOException, SAXException, ParserConfigurationException, ESearchException
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 problemsSAXException
- SAX exceptionParserConfigurationException
- config problemsESearchException
-
searchAndRetrieveIdsByHTTP
public Collection<String> searchAndRetrieveIdsByHTTP(String searchQuery) throws IOException, SAXException, ParserConfigurationException, ESearchException
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 problemsSAXException
- SAX exceptionParserConfigurationException
- config problemsESearchException
-
-