public class PubMedQuery extends AbstractQuery
PubMed article query
Copyright: Copyright (c) 2003
Company: IST, Drexel University
| Modifier and Type | Field and Description |
|---|---|
protected String[] |
arrPaper |
protected String |
database |
protected String |
eFetchUrl |
protected String |
endDate |
protected String |
eSearchUrl |
protected HttpUtil |
http |
protected String |
queryKey |
protected String |
server |
protected String |
startDate |
protected String |
term |
protected String |
webEnv |
articleNum, curArticle, curArticleNo, curPageNo, curPageWidth, pageNum, pageWidth, parser| Constructor and Description |
|---|
PubMedQuery(int pageWidth) |
PubMedQuery(String term,
int pageWidth) |
| Modifier and Type | Method and Description |
|---|---|
protected Article |
getArticle(int articleNo) |
Article |
getArticleByKey(String PMID)
Reads out the article according to its key
|
boolean |
initQuery()
One should call this method before retrieval articles.
|
static void |
main(String[] args) |
boolean |
moveToPage(int pageNo)
Move to the given page and the pointer is set on the first article of the page.
|
void |
setDateRange(String start,
String end) |
void |
setSearchTerm(String term)
Set the searching terms.
|
boolean |
supportArticleKeyRetrieval()
if the query supports this retrieval mode, one can get articles by calling getArticleByKey method.
|
close, getArticle, getArticleKey, getArticleParser, getCurPageNo, getCurPageWidth, getNextArticle, getPageNum, getPageWidth, getTotalArticleNum, loadCollection, moveToArticle, moveToNextArticle, moveToNextPage, restart, setArticleParser, sizeprotected HttpUtil http
protected String webEnv
protected String queryKey
protected String database
protected String term
protected String eSearchUrl
protected String eFetchUrl
protected String server
protected String startDate
protected String endDate
protected String[] arrPaper
public PubMedQuery(String term, int pageWidth)
public PubMedQuery(int pageWidth)
public static void main(String[] args)
public boolean supportArticleKeyRetrieval()
CollectionReaderpublic void setSearchTerm(String term)
ArticleQuerypublic boolean initQuery()
ArticleQuerypublic boolean moveToPage(int pageNo)
ArticleQuerypageNo - the page #public Article getArticleByKey(String PMID)
CollectionReaderPMID - the unique entry number of the articleprotected Article getArticle(int articleNo)
getArticle in class AbstractQueryCopyright © 2018 JULIE Lab, Germany. All rights reserved.