| Modifier and Type | Field and Description |
|---|---|
| public static final String | |
| private static final String | |
| private final ImporterPreferences | |
| private static final Logger | |
| private static final int | |
| private int | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private URL | |
| public void | doPostCleanup(BibEntry entry)
Overrides default org. Performs a cleanup of the fetched entry. |
| private List | Returns: Will return an empty list on error.A list of IDs to search for. ids)Fetch and parse an medline item from eutils.ncbi.nlm.nih.gov. |
| public @NonNull Optional | getHelpPage()
Overrides default org. Returns the help page for this fetcher. |
| public String | getName()
Implements org. Returns the localized name of this fetcher. |
| public Parser | getParser()
Implements org. Returns the parser used to convert the response to a list of |
| private List | getPubMedIdsFromQuery(String query)
When using 'esearch.fcgi?db=<database>&term=<query>' we will get a list of IDs matching the query. |
| private String | |
| public URL | getUrlForIdentifier(String identifier)
Implements org. Constructs a URL based on the query. |
| public boolean | isValidKey(@NonNull String apiKey)
Overrides default org. Returns whether the API key is valid |
| public @NonNull List | performRawSearchQuery(@NonNull String rawQuery)
Overrides default org. The raw query is sent as the |
| public @NonNull List | performSearch(@NonNull BaseQueryNode queryNode)
Implements org. This method is used to send complex queries using fielded search. |
| private List | searchForEntries(String query)
Searches PubMed for IDs matching the query, then fetches the corresponding entries |
| FETCHER_NAME | back to summary |
|---|---|
| public static final String FETCHER_NAME | |
| ID_URL | back to summary |
|---|---|
| private static final String ID_URL | |
| importerPreferences | back to summary |
|---|---|
| private final ImporterPreferences importerPreferences | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER Hides org. | |
| NUMBER_TO_FETCH | back to summary |
|---|---|
| private static final int NUMBER_TO_FETCH | |
| numberOfResultsFound | back to summary |
|---|---|
| private int numberOfResultsFound | |
| SEARCH_URL | back to summary |
|---|---|
| private static final String SEARCH_URL | |
| MedlineFetcher | back to summary |
|---|---|
| public MedlineFetcher(ImporterPreferences importerPreferences) | |
| createSearchUrl | back to summary |
|---|---|
| private URL createSearchUrl(String query) throws URISyntaxException, MalformedURLException | |
| doPostCleanup | back to summary |
|---|---|
| public void doPostCleanup(BibEntry entry) Overrides default org. Doc from org. Performs a cleanup of the fetched entry. Only systematic errors of the fetcher should be corrected here (i.e. if information is consistently contained in the wrong field or the wrong format) but not cosmetic issues which may depend on the user's taste (for example, LateX code vs HTML in the abstract). Try to reuse existing By default, no cleanup is done.
| |
| fetchMedline | back to summary |
|---|---|
| private List Fetch and parse an medline item from eutils.ncbi.nlm.nih.gov. The E-utilities generate a huge XML file containing all entries for the ids | |
| getHelpPage | back to summary |
|---|---|
| public @NonNull Optional Overrides default org. Doc from org. Returns the help page for this fetcher.
| |
| getName | back to summary |
|---|---|
| public String getName() Implements org. Doc from org. Returns the localized name of this fetcher. The title can be used to display the fetcher in the menu and in the side pane. Todo This name is also used for identifying the fetcher in preferences for API keys. Thus, any switch of the language will "remove" API keys.
| |
| getParser | back to summary |
|---|---|
| public Parser getParser() Implements org. Doc from org. Returns the parser used to convert the response to a list of
| |
| getPubMedIdsFromQuery | back to summary |
|---|---|
| private List When using 'esearch.fcgi?db=<database>&term=<query>' we will get a list of IDs matching the query. Input: Any text query (&term) Output: List of UIDs matching the query
| |
| getTestUrl | back to summary |
|---|---|
| private String getTestUrl(String apiKey) | |
| getUrlForIdentifier | back to summary |
|---|---|
| public URL getUrlForIdentifier(String identifier) throws URISyntaxException, MalformedURLException Implements org. Doc from org. Constructs a URL based on the query.
| |
| isValidKey | back to summary |
|---|---|
| public boolean isValidKey(@NonNull String apiKey) Overrides default org. Doc from org. Returns whether the API key is valid
| |
| performRawSearchQuery | back to summary |
|---|---|
| public @NonNull List Overrides default org. The raw query is sent as the
| |
| performSearch | back to summary |
|---|---|
| public @NonNull List Implements org. Doc from org. This method is used to send complex queries using fielded search.
| |
| searchForEntries | back to summary |
|---|---|
| private List Searches PubMed for IDs matching the query, then fetches the corresponding entries | |