public class SparqlEndpointKS extends AbstractKnowledgeSource
Constructor and Description |
---|
SparqlEndpointKS() |
SparqlEndpointKS(org.aksw.jena_sparql_api.core.QueryExecutionFactory qef) |
SparqlEndpointKS(SparqlEndpoint endpoint) |
SparqlEndpointKS(SparqlEndpoint endpoint,
KnowledgeSource schema) |
SparqlEndpointKS(SparqlEndpoint endpoint,
String cacheDirectory) |
Modifier and Type | Method and Description |
---|---|
org.aksw.jena_sparql_api.cache.extra.CacheFrontend |
getCache() |
List<String> |
getDefaultGraphURIs() |
SparqlEndpoint |
getEndpoint() |
List<String> |
getNamedGraphURIs() |
org.aksw.jena_sparql_api.core.QueryExecutionFactory |
getQueryExecutionFactory() |
int |
getRetryCount() |
KnowledgeSource |
getSchema() |
URL |
getUrl() |
void |
init()
Method to be called after the component has been configured.
|
boolean |
isRemote() |
void |
setCache(org.aksw.jena_sparql_api.cache.extra.CacheFrontend cache) |
void |
setCacheDir(String cacheDir)
Set the file-based cache directory.
|
void |
setCacheTTL(long cacheTTL)
Set the time-to-live for the file-based SPARQL cache.
|
void |
setDefaultGraphURIs(List<String> defaultGraphURIs) |
void |
setNamedGraphURIs(List<String> namedGraphURIs) |
void |
setPageSize(long pageSize) |
void |
setQueryDelay(int queryDelay)
Set a delay between each sent SPARQL query to avoid overloading of the
endpoint.
|
void |
setQueryExecutionFactory(org.aksw.jena_sparql_api.core.QueryExecutionFactory qef) |
void |
setRetryCount(int retryCount) |
void |
setSupportsSPARQL_1_1(boolean supportsSPARQL_1_1) |
void |
setUrl(URL url) |
void |
setUseCache(boolean useCache) |
boolean |
supportsSPARQL_1_1() |
String |
toString() |
isInitialized
public SparqlEndpointKS()
public SparqlEndpointKS(SparqlEndpoint endpoint)
public SparqlEndpointKS(SparqlEndpoint endpoint, KnowledgeSource schema)
public SparqlEndpointKS(org.aksw.jena_sparql_api.core.QueryExecutionFactory qef)
public SparqlEndpointKS(SparqlEndpoint endpoint, String cacheDirectory)
public org.aksw.jena_sparql_api.cache.extra.CacheFrontend getCache()
public org.aksw.jena_sparql_api.core.QueryExecutionFactory getQueryExecutionFactory()
public void setCache(org.aksw.jena_sparql_api.cache.extra.CacheFrontend cache)
cache
- the cache to setpublic void setQueryExecutionFactory(org.aksw.jena_sparql_api.core.QueryExecutionFactory qef)
public void init() throws ComponentInitException
Component
ComponentInitException
- This exception is thrown if any
exceptions occur within the initialisation process of this
component. As component developer, you are encouraged to
re-throw occurring exception as ComponentInitException and
giving an error message as well as the actually exception by
using the constructor ComponentInitException(String, Throwable)
.public void setPageSize(long pageSize)
public SparqlEndpoint getEndpoint()
public boolean isRemote()
public List<String> getDefaultGraphURIs()
public void setDefaultGraphURIs(List<String> defaultGraphURIs)
public List<String> getNamedGraphURIs()
public void setNamedGraphURIs(List<String> namedGraphURIs)
public boolean supportsSPARQL_1_1()
public void setSupportsSPARQL_1_1(boolean supportsSPARQL_1_1)
public void setQueryDelay(int queryDelay)
queryDelay
- the delay in millisecondspublic void setUseCache(boolean useCache)
useCache
- the useCache to setpublic void setCacheDir(String cacheDir)
OS | Directory |
---|---|
Linux | /tmp/ |
Windows | C:\temp |
cacheDir
- the absolute cache directory pathpublic void setCacheTTL(long cacheTTL)
cacheTTL
- the time-to-live value in millisecondspublic KnowledgeSource getSchema()
public int getRetryCount()
public void setRetryCount(int retryCount)
DL-Learner is licenced under the terms of the GNU General Public License.
Copyright © 2007-2019 Jens Lehmann