Package org.aksw.limes.core.io.query
Class ResilientSparqlQueryModule
- java.lang.Object
-
- org.aksw.limes.core.io.query.SparqlQueryModule
-
- org.aksw.limes.core.io.query.ResilientSparqlQueryModule
-
- All Implemented Interfaces:
IQueryModule
public class ResilientSparqlQueryModule extends SparqlQueryModule implements IQueryModule
- Version:
- Jul 12, 2016
- Author:
- Mohamed Sherif (sherif@informatik.uni-leipzig.de)
-
-
Field Summary
Fields Modifier and Type Field Description protected StringcacheDirectoryprotected org.slf4j.Loggerloggerprotected intpageSizeprotected intrequestDelayInMsprotected intretryCountprotected intretryDelayInMSprotected longtimeToLive-
Fields inherited from class org.aksw.limes.core.io.query.SparqlQueryModule
kb
-
-
Constructor Summary
Constructors Constructor Description ResilientSparqlQueryModule(KBInfo kbInfo)ResilientSparqlQueryModule(KBInfo kbinfo, org.slf4j.Logger logger, int retryCount, int retryDelayInMS, int requestDelayInMs, int pageSize, long timeToLive, String cacheDirectory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfillCache(ACache cache, boolean sparql)Reads from a SPARQL endpoint or a file and writes the results in a cacheprotected org.aksw.jenax.arq.connection.core.QueryExecutionFactoryinitQueryExecution(KBInfo kbInfo)-
Methods inherited from class org.aksw.limes.core.io.query.SparqlQueryModule
fillCache, generateQuery
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.aksw.limes.core.io.query.IQueryModule
fillCache
-
-
-
-
Field Detail
-
logger
protected org.slf4j.Logger logger
-
retryCount
protected int retryCount
-
retryDelayInMS
protected int retryDelayInMS
-
requestDelayInMs
protected int requestDelayInMs
-
pageSize
protected int pageSize
-
timeToLive
protected long timeToLive
-
cacheDirectory
protected String cacheDirectory
-
-
Constructor Detail
-
ResilientSparqlQueryModule
public ResilientSparqlQueryModule(KBInfo kbInfo)
-
-
Method Detail
-
fillCache
public void fillCache(ACache cache, boolean sparql)
Reads from a SPARQL endpoint or a file and writes the results in a cache- Overrides:
fillCachein classSparqlQueryModule- Parameters:
cache- 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 model
-
initQueryExecution
protected org.aksw.jenax.arq.connection.core.QueryExecutionFactory initQueryExecution(KBInfo kbInfo) throws ClassNotFoundException, SQLException
- Parameters:
kbInfo- knowledge base information object- Returns:
- QueryExecutionFactory object
- Throws:
ClassNotFoundException- if class not foundSQLException- if SQL contains errors
-
-