Top Fields Constructors Methods
org.jabref.gui.entryeditor.citationrelationtab.semanticscholar

public Class SemanticScholarFetcher

extends Object
implements CitationFetcher, CustomizableKeyFetcher
Class Inheritance
All Implemented Interfaces
org.jabref.logic.importer.fetcher.CustomizableKeyFetcher, org.jabref.logic.importer.WebFetcher, org.jabref.gui.entryeditor.citationrelationtab.semanticscholar.CitationFetcher
Imports
java.io.IOException, java.net.URI, .URL, java.util.List, org.jabref.logic.importer.FetcherException, .ImporterPreferences, org.jabref.logic.importer.fetcher.CustomizableKeyFetcher, org.jabref.logic.net.URLDownload, org.jabref.logic.util.BuildInfo, org.jabref.model.entry.BibEntry, com.google.gson.Gson

Field Summary

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

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private String
public String
getAPIUrl(String entry_point, BibEntry entry)

public String
public List<BibEntry>
searchCitedBy(BibEntry
entry to search articles for
entry
)

Implements org.jabref.gui.entryeditor.citationrelationtab.semanticscholar.CitationFetcher.searchCitedBy.

Looks for hits which are citing the given BibEntry.

public List<BibEntry>
searchCiting(BibEntry
entry to search articles for
entry
)

Implements org.jabref.gui.entryeditor.citationrelationtab.semanticscholar.CitationFetcher.searchCiting.

Looks for hits which are cited by the given BibEntry.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

API_KEYback to summary
private static final String API_KEY
importerPreferencesback to summary
private final ImporterPreferences importerPreferences
SEMANTIC_SCHOLAR_APIback to summary
private static final String SEMANTIC_SCHOLAR_API

Constructor Detail

SemanticScholarFetcherback to summary
public SemanticScholarFetcher(ImporterPreferences importerPreferences)

Method Detail

getApiKeyback to summary
private String getApiKey()
getAPIUrlback to summary
public String getAPIUrl(String entry_point, BibEntry entry)
getNameback to summary
public String getName()

Implements org.jabref.gui.entryeditor.citationrelationtab.semanticscholar.CitationFetcher.getName, org.jabref.logic.importer.WebFetcher.getName.

Doc from org.jabref.gui.entryeditor.citationrelationtab.semanticscholar.CitationFetcher.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
searchCitedByback to summary
public List<BibEntry> searchCitedBy(BibEntry entry) throws FetcherException

Implements org.jabref.gui.entryeditor.citationrelationtab.semanticscholar.CitationFetcher.searchCitedBy.

Doc from org.jabref.gui.entryeditor.citationrelationtab.semanticscholar.CitationFetcher.searchCitedBy.

Looks for hits which are citing the given BibEntry.

Parameters
entry:BibEntry

entry to search articles for

Returns:List<BibEntry>

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

Annotations
@Override
searchCitingback to summary
public List<BibEntry> searchCiting(BibEntry entry) throws FetcherException

Implements org.jabref.gui.entryeditor.citationrelationtab.semanticscholar.CitationFetcher.searchCiting.

Doc from org.jabref.gui.entryeditor.citationrelationtab.semanticscholar.CitationFetcher.searchCiting.

Looks for hits which are cited by the given BibEntry.

Parameters
entry:BibEntry

entry to search articles for

Returns:List<BibEntry>

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

Annotations
@Override