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

public Class CiteSeerQueryTransformer

extends AbstractQueryTransformer
Class Inheritance
Imports
java.util.Calendar, .Optional, org.jabref.model.strings.StringUtil, kong.unirest.core.json.JSONArray, kong.unirest.core.json.JSONObject

Field Summary

Modifier and TypeField and Description
private kong.unirest.core.json.JSONObject
Inherited from org.jabref.logic.importer.fetcher.transformers.AbstractQueryTransformer:
endYearNO_EXPLICIT_FIELDstartYear

Constructor Summary

AccessConstructor and Description
public
CiteSeerQueryTransformer()

Default values for necessary parameters set in constructor

Method Summary

Modifier and TypeMethod and Description
public kong.unirest.core.json.JSONObject
protected String
getLogicalAndOperator()

Implements abstract org.jabref.logic.importer.fetcher.transformers.AbstractQueryTransformer.getLogicalAndOperator.

Returns the logical AND operator used by the library Note: whitespaces have to be included around the operator Example: " AND "

protected String
getLogicalNotOperator()

Implements abstract org.jabref.logic.importer.fetcher.transformers.AbstractQueryTransformer.getLogicalNotOperator.

Returns the logical NOT operator used by the library Example: "!"

protected String
getLogicalOrOperator()

Implements abstract org.jabref.logic.importer.fetcher.transformers.AbstractQueryTransformer.getLogicalOrOperator.

Returns the logical OR operator used by the library Note: whitespaces have to be included around the operator Example: " OR "

protected String
handleAuthor(String author)

Implements abstract org.jabref.logic.importer.fetcher.transformers.AbstractQueryTransformer.handleAuthor.

Return a string representation of the author fielded term

protected String
handleJournal(String journalTitle)

Implements abstract org.jabref.logic.importer.fetcher.transformers.AbstractQueryTransformer.handleJournal.

Return a string representation of the journal fielded term

private Optional<String>
protected Optional<String>
handleOtherField(String fieldAsString, String term)

Overrides org.jabref.logic.importer.fetcher.transformers.AbstractQueryTransformer.handleOtherField.

covers the five fields that are required to make a POST request except "must_have_pdf" as FullTextFetcher is not yet implemented for CiteSeer

private Optional<String>
private Optional<String>
private Optional<String>
protected String
handleTitle(String title)

Implements abstract org.jabref.logic.importer.fetcher.transformers.AbstractQueryTransformer.handleTitle.

Return a string representation of the title fielded term

protected String
handleYear(String year)

Implements abstract org.jabref.logic.importer.fetcher.transformers.AbstractQueryTransformer.handleYear.

Return a string representation of the year fielded term

protected String
handleYearRange(String yearRange)

Overrides org.jabref.logic.importer.fetcher.transformers.AbstractQueryTransformer.handleYearRange.

Return a string representation of the year-range fielded term Should follow the structure yyyy-yyyy Example: 2015-2021

Inherited from org.jabref.logic.importer.fetcher.transformers.AbstractQueryTransformer:
createKeyValuePaircreateKeyValuePairhandleDoihandleUnFieldedTermparseYearRangetransformtransformtransformLuceneQuery

Field Detail

payloadback to summary
private kong.unirest.core.json.JSONObject payload

Constructor Detail

CiteSeerQueryTransformerback to summary
public CiteSeerQueryTransformer()

Default values for necessary parameters set in constructor

Method Detail

getJSONPayloadback to summary
public kong.unirest.core.json.JSONObject getJSONPayload()
getLogicalAndOperatorback to summary
protected String getLogicalAndOperator()

Implements abstract org.jabref.logic.importer.fetcher.transformers.AbstractQueryTransformer.getLogicalAndOperator.

Doc from org.jabref.logic.importer.fetcher.transformers.AbstractQueryTransformer.getLogicalAndOperator.

Returns the logical AND operator used by the library Note: whitespaces have to be included around the operator Example: " AND "

Annotations
@Override
getLogicalNotOperatorback to summary
protected String getLogicalNotOperator()

Implements abstract org.jabref.logic.importer.fetcher.transformers.AbstractQueryTransformer.getLogicalNotOperator.

Doc from org.jabref.logic.importer.fetcher.transformers.AbstractQueryTransformer.getLogicalNotOperator.

Returns the logical NOT operator used by the library Example: "!"

Annotations
@Override
getLogicalOrOperatorback to summary
protected String getLogicalOrOperator()

Implements abstract org.jabref.logic.importer.fetcher.transformers.AbstractQueryTransformer.getLogicalOrOperator.

Doc from org.jabref.logic.importer.fetcher.transformers.AbstractQueryTransformer.getLogicalOrOperator.

Returns the logical OR operator used by the library Note: whitespaces have to be included around the operator Example: " OR "

Annotations
@Override
handleAuthorback to summary
protected String handleAuthor(String author)

Implements abstract org.jabref.logic.importer.fetcher.transformers.AbstractQueryTransformer.handleAuthor.

Doc from org.jabref.logic.importer.fetcher.transformers.AbstractQueryTransformer.handleAuthor.

Return a string representation of the author fielded term

Annotations
@Override
handleJournalback to summary
protected String handleJournal(String journalTitle)

Implements abstract org.jabref.logic.importer.fetcher.transformers.AbstractQueryTransformer.handleJournal.

Doc from org.jabref.logic.importer.fetcher.transformers.AbstractQueryTransformer.handleJournal.

Return a string representation of the journal fielded term

Annotations
@Override
handleMustHavePdfback to summary
private Optional<String> handleMustHavePdf(String mustHavePdf)
handleOtherFieldback to summary
protected Optional<String> handleOtherField(String fieldAsString, String term)

Overrides org.jabref.logic.importer.fetcher.transformers.AbstractQueryTransformer.handleOtherField.

covers the five fields that are required to make a POST request except "must_have_pdf" as FullTextFetcher is not yet implemented for CiteSeer

Annotations
@Override
handlePageback to summary
private Optional<String> handlePage(String page)
handlePageSizeback to summary
private Optional<String> handlePageSize(String pageSize)
handleSortByback to summary
private Optional<String> handleSortBy(String sortBy)
handleTitleback to summary
protected String handleTitle(String title)

Implements abstract org.jabref.logic.importer.fetcher.transformers.AbstractQueryTransformer.handleTitle.

Doc from org.jabref.logic.importer.fetcher.transformers.AbstractQueryTransformer.handleTitle.

Return a string representation of the title fielded term

Annotations
@Override
handleYearback to summary
protected String handleYear(String year)

Implements abstract org.jabref.logic.importer.fetcher.transformers.AbstractQueryTransformer.handleYear.

Doc from org.jabref.logic.importer.fetcher.transformers.AbstractQueryTransformer.handleYear.

Return a string representation of the year fielded term

Annotations
@Override
handleYearRangeback to summary
protected String handleYearRange(String yearRange)

Overrides org.jabref.logic.importer.fetcher.transformers.AbstractQueryTransformer.handleYearRange.

Doc from org.jabref.logic.importer.fetcher.transformers.AbstractQueryTransformer.handleYearRange.

Return a string representation of the year-range fielded term Should follow the structure yyyy-yyyy Example: 2015-2021

Annotations
@Override