Top Fields Constructors Methods
org.jabref.logic.importer.fetcher

public Class CiteSeer

extends Object
implements SearchBasedFetcher, FulltextFetcher
Class Inheritance
All Implemented Interfaces
org.jabref.logic.importer.FulltextFetcher, org.jabref.logic.importer.SearchBasedFetcher, org.jabref.logic.importer.WebFetcher
Imports
java.io.IOException, java.net.URL, java.util.List, .Objects, .Optional, org.jabref.logic.help.HelpFile, org.jabref.logic.importer.FetcherException, .FulltextFetcher, .ParseException, .SearchBasedFetcher, org.jabref.logic.importer.fetcher.transformers.CiteSeerQueryTransformer, org.jabref.logic.importer.fileformat.CiteSeerParser, org.jabref.model.entry.BibEntry, org.jabref.model.entry.field.StandardField, kong.unirest.core.JsonNode, kong.unirest.core.Unirest, kong.unirest.core.json.JSONArray, kong.unirest.core.json.JSONElement, org.apache.lucene.queryparser.flexible.core.nodes.QueryNode

Field Summary

Modifier and TypeField and Description
private static final String
private static final String
private static final String
private CiteSeerQueryTransformer

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Optional<URL>
findFullText(BibEntry
The Bibtex entry
entry
)

Implements org.jabref.logic.importer.FulltextFetcher.findFullText.

Tries to find a fulltext URL for a given BibTex entry.

public Optional<HelpFile>
getHelpPage()

Overrides default org.jabref.logic.importer.WebFetcher.getHelpPage.

Returns the help page for this fetcher.

public String
getName()

Implements org.jabref.logic.importer.WebFetcher.getName.

Returns the localized name of this fetcher.

private kong.unirest.core.json.JSONElement
getPayloadJSON(org.apache.lucene.queryparser.flexible.core.nodes.QueryNode luceneQuery)

public List<BibEntry>
performSearch(org.apache.lucene.queryparser.flexible.core.nodes.QueryNode
the root node of the lucene query
luceneQuery
)

Implements org.jabref.logic.importer.SearchBasedFetcher.performSearch.

This method is used to send complex queries using fielded search.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

API_URLback to summary
private static final String API_URL
BASE_URLback to summary
private static final String BASE_URL
PDF_URLback to summary
private static final String PDF_URL
transformerback to summary
private CiteSeerQueryTransformer transformer

Constructor Detail

CiteSeerback to summary
public CiteSeer()

Method Detail

findFullTextback to summary
public Optional<URL> findFullText(BibEntry entry) throws IOException, FetcherException

Implements org.jabref.logic.importer.FulltextFetcher.findFullText.

Doc from org.jabref.logic.importer.FulltextFetcher.findFullText.

Tries to find a fulltext URL for a given BibTex entry.

Parameters
entry:BibEntry

The Bibtex entry

Returns:Optional<URL>

The fulltext PDF URL Optional, if found, or an empty Optional if not found.

Annotations
@Override
Exceptions
IOException:
if an IO operation has failed
FetcherException:
if a fetcher specific error occurred
getHelpPageback to summary
public Optional<HelpFile> getHelpPage()

Overrides default org.jabref.logic.importer.WebFetcher.getHelpPage.

Doc from org.jabref.logic.importer.WebFetcher.getHelpPage.

Returns the help page for this fetcher.

Returns:Optional<HelpFile>

the HelpFile enum constant for the help page

Annotations
@Override
getNameback to summary
public String getName()

Implements org.jabref.logic.importer.WebFetcher.getName.

Doc from org.jabref.logic.importer.WebFetcher.getName.

Returns the localized name of this fetcher. The title can be used to display the fetcher in the menu and in the side pane.

Returns:String

the localized name

Annotations
@Override
getPayloadJSONback to summary
private kong.unirest.core.json.JSONElement getPayloadJSON(org.apache.lucene.queryparser.flexible.core.nodes.QueryNode luceneQuery)
performSearchback to summary
public List<BibEntry> performSearch(org.apache.lucene.queryparser.flexible.core.nodes.QueryNode luceneQuery) throws FetcherException

Implements org.jabref.logic.importer.SearchBasedFetcher.performSearch.

Doc from org.jabref.logic.importer.SearchBasedFetcher.performSearch.

This method is used to send complex queries using fielded search.

Parameters
luceneQuery:org.apache.lucene.queryparser.flexible.core.nodes.QueryNode

the root node of the lucene query

Returns:List<BibEntry>

a list of BibEntry, which are matched by the query (may be empty)

Annotations
@Override