public class ResilientSparqlQueryModule extends SparqlQueryModule implements IQueryModule
| Modifier and Type | Field and Description |
|---|---|
protected String |
cacheDirectory |
protected org.slf4j.Logger |
logger |
protected int |
pageSize |
protected int |
requestDelayInMs |
protected int |
retryCount |
protected int |
retryDelayInMS |
protected long |
timeToLive |
kb| Constructor and Description |
|---|
ResilientSparqlQueryModule(KBInfo kbInfo) |
ResilientSparqlQueryModule(KBInfo kbinfo,
org.slf4j.Logger logger,
int retryCount,
int retryDelayInMS,
int requestDelayInMs,
int pageSize,
long timeToLive,
String cacheDirectory) |
| Modifier and Type | Method and Description |
|---|---|
void |
fillCache(ACache cache,
boolean sparql)
Reads from a SPARQL endpoint or a file and writes the results in a cache
|
protected org.aksw.jena_sparql_api.core.QueryExecutionFactory |
initQueryExecution(KBInfo kbInfo) |
fillCache, generateQueryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfillCacheprotected org.slf4j.Logger logger
protected int retryCount
protected int retryDelayInMS
protected int requestDelayInMs
protected int pageSize
protected long timeToLive
protected String cacheDirectory
public ResilientSparqlQueryModule(KBInfo kbInfo)
public void fillCache(ACache cache, boolean sparql)
fillCache in class SparqlQueryModulecache - The cache in which the content on the SPARQL endpoint is to be writtensparql - True if the endpoint is a remote SPARQL endpoint, else assume that is is a jena modelprotected org.aksw.jena_sparql_api.core.QueryExecutionFactory initQueryExecution(KBInfo kbInfo) throws ClassNotFoundException, SQLException
kbInfo - knowledge base information objectClassNotFoundException - if class not foundSQLException - if SQL contains errorsCopyright © 2020. All rights reserved.