public abstract class TestSource extends Source
| Modifier and Type | Field and Description |
|---|---|
static long |
CACHE_TTL
cache time to live (in ms), set to 1 week by default for endpoints
|
protected long |
cacheTTL
The Cache tTL.
|
protected long |
pagination
The Pagination.
|
static long |
PAGINATION
Pagination for big results, set to 800 records by default for endpoints
|
static long |
QUERY_DELAY
Delay between queries in a SPARQL Endpoint, set to 5 seconds by default for endpoints
|
static long |
QUERY_LIMIT
Pose a limit on the returned results.
|
protected long |
queryDelay
The Query delay.
|
protected long |
queryLimit
The Query limit.
|
| Constructor and Description |
|---|
TestSource(Source source)
Instantiates a new Test source.
|
TestSource(String prefix,
String uri)
Instantiates a new Test source.
|
TestSource(TestSource source,
Collection<SchemaSource> referencesSchemata)
Instantiates a new Test source along with a collection os schemata.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getCacheTTL()
Gets cache tTL.
|
long |
getPagination()
Getter for the field
pagination. |
long |
getQueryDelay()
Getter for the field
queryDelay. |
long |
getQueryLimit()
Getter for the field
queryLimit. |
protected org.aksw.jena_sparql_api.core.QueryExecutionFactory |
masqueradeQEF(org.aksw.jena_sparql_api.core.QueryExecutionFactory originalQEF)
Masquerade QEF.
|
void |
setCacheTTL(long cacheTTL)
set Cache TTL
|
void |
setPagination(long pagination)
set Pagination.
|
void |
setQueryDelay(long queryDelay)
set Query delay (builder).
|
void |
setQueryLimit(long queryLimit)
set Query limit.
|
addReferencesSchemata, compareTo, equals, getExecutionFactory, getPrefix, getReferencesSchemata, getSourceType, getUri, hashCode, initQueryFactory, toStringpublic static final long CACHE_TTL
public static final long PAGINATION
public static final long QUERY_DELAY
public static final long QUERY_LIMIT
protected long cacheTTL
protected long queryDelay
protected long queryLimit
protected long pagination
public TestSource(String prefix, String uri)
prefix - the prefixuri - the uripublic TestSource(Source source)
source - the sourcepublic TestSource(TestSource source, Collection<SchemaSource> referencesSchemata)
source - the sourcereferencesSchemata - the references schemataprotected org.aksw.jena_sparql_api.core.QueryExecutionFactory masqueradeQEF(org.aksw.jena_sparql_api.core.QueryExecutionFactory originalQEF)
originalQEF - the original qefpublic void setCacheTTL(long cacheTTL)
cacheTTL - the cache TTLpublic void setQueryDelay(long queryDelay)
queryDelay - the query delaypublic void setQueryLimit(long queryLimit)
queryLimit - the query limitpublic void setPagination(long pagination)
pagination - the paginationpublic long getCacheTTL()
public long getQueryDelay()
Getter for the field queryDelay.
public long getQueryLimit()
Getter for the field queryLimit.
public long getPagination()
Getter for the field pagination.
Copyright © 2015. All rights reserved.