|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.vivoweb.harvester.fetch.NIHFetch
org.vivoweb.harvester.fetch.PubmedFetch
public class PubmedFetch
Module for fetching PubMed Citations using the PubMed SOAP Interface Based on the example code available at the PubMed Website.
| Field Summary | |
|---|---|
protected static XMLRecordOutputStream |
baseXMLROS
a base xmlrecordoutputstream |
| Constructor Summary | |
|---|---|
PubmedFetch(ArgList argList)
Constructor |
|
PubmedFetch(java.lang.String[] args)
Constructor |
|
PubmedFetch(java.lang.String emailAddress,
java.io.OutputStream outStream)
Constructor: Primary method for running a PubMed Fetch. |
|
PubmedFetch(java.lang.String emailAddress,
java.lang.String searchTerm,
java.lang.String maxRecords,
java.lang.String batchSize,
java.io.OutputStream outStream)
Constructor: Primary method for running a PubMed Fetch. |
|
PubmedFetch(java.lang.String emailAddress,
java.lang.String searchTerm,
java.lang.String maxRecords,
java.lang.String batchSize,
RecordHandler rh)
Constructor: Primary method for running a PubMed Fetch. |
|
| Method Summary | |
|---|---|
void |
fetchRecords(java.lang.String WebEnv,
java.lang.String QueryKey,
java.lang.String retStart,
java.lang.String numRecords)
Performs an NIH Fetch using a previously defined esearch environment and querykey |
protected int |
getLatestRecord()
Get latest NIH result |
static void |
main(java.lang.String... args)
Main method |
| Methods inherited from class org.vivoweb.harvester.fetch.NIHFetch |
|---|
execute, fetchRecords, fetchRecords, getBatchSize, getEmailAddress, getMaxRecords, getOsWriter, getParser, getSearchTerm, getToolName, runESearch, runESearch, setBatchSize, setEmailAddress, setMaxRecords, setOsWriter, setSearchTerm |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static XMLRecordOutputStream baseXMLROS
| Constructor Detail |
|---|
public PubmedFetch(java.lang.String emailAddress,
java.io.OutputStream outStream)
throws java.io.IOException
emailAddress - contact email address of the person responsible for this install of the VIVO HarvesteroutStream - output stream to write to
java.io.IOException - error finding latest record
public PubmedFetch(java.lang.String emailAddress,
java.lang.String searchTerm,
java.lang.String maxRecords,
java.lang.String batchSize,
java.io.OutputStream outStream)
emailAddress - contact email address of the person responsible for this install of the VIVO HarvestersearchTerm - query to run on pubmed datamaxRecords - maximum number of records to fetchbatchSize - number of records to fetch per batchoutStream - output stream to write to
public PubmedFetch(java.lang.String emailAddress,
java.lang.String searchTerm,
java.lang.String maxRecords,
java.lang.String batchSize,
RecordHandler rh)
emailAddress - contact email address of the person responsible for this install of the VIVO HarvestersearchTerm - query to run on pubmed datamaxRecords - maximum number of records to fetchbatchSize - number of records to fetch per batchrh - record handler to write to
public PubmedFetch(java.lang.String[] args)
throws java.io.IOException
args - commandline argument
java.io.IOException - error creating task
public PubmedFetch(ArgList argList)
throws java.io.IOException
argList - parsed argument list
java.io.IOException - error creating task| Method Detail |
|---|
public void fetchRecords(java.lang.String WebEnv,
java.lang.String QueryKey,
java.lang.String retStart,
java.lang.String numRecords)
throws java.io.IOException
NIHFetch
fetchRecords in class NIHFetchWebEnv - web environment from an ESearchQueryKey - query key from an ESearchretStart - record number (out of the total - eg: '1200' out of 15000 records), not the record IDnumRecords - The number of records to fetch
java.io.IOException - error fetching records
protected int getLatestRecord()
throws java.io.IOException
NIHFetch
getLatestRecord in class NIHFetchjava.io.IOException - error processing searchpublic static void main(java.lang.String... args)
args - commandline arguments
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||