eu.larkc.jactr.modules.sparql
Class AbstractSPARQLRetrievalModule
java.lang.Object
org.jactr.core.utils.DefaultAdaptable
org.jactr.core.module.AbstractModule
org.jactr.core.module.retrieval.six.DefaultRetrievalModule6
eu.larkc.jactr.modules.sparql.AbstractSPARQLRetrievalModule
- All Implemented Interfaces:
- ISPARQLRetrievalModule, IModule, IRetrievalModule4, IRetrievalModule, IAdaptable, IInitializable, IInstallable, IParameterized
- Direct Known Subclasses:
- DefaultSPARQLRetrievalModule, RemoteSPARQLEndpointRetrievalModule
public abstract class AbstractSPARQLRetrievalModule
- extends DefaultRetrievalModule6
- implements ISPARQLRetrievalModule
A retrieval module that can retrieve chunks from a repository.
- Author:
- Martijn Brakenhoff
Methods inherited from class org.jactr.core.module.retrieval.six.DefaultRetrievalModule6 |
addListener, dispose, getLatencyExponent, getLatencyFactor, getParameter, getPossibleParameters, getRetrievalThreshold, getRetrievalTimeEquation, getSetableParameters, hasBeenRetrieved, isIndexedRetrievalEnabled, removeListener, reset, reset, setIndexedRetrievalEnabled, setLatencyExponent, setLatencyFactor, setParameter, setRetrievalThreshold |
initialize
public void initialize()
- Specified by:
initialize
in interface IModule
- Specified by:
initialize
in interface IInitializable
- Overrides:
initialize
in class DefaultRetrievalModule6
getSPARQLEndpoint
public abstract SPARQLEndpoint getSPARQLEndpoint()
- Returns the SPARQLEndpoint that is used by this module.
- Returns:
- the SPARQLEndpoint.
retrieveChunk
public Future<IChunk> retrieveChunk(SPARQLRequest request)
- Description copied from interface:
ISPARQLRetrievalModule
- Returns (the promise of) an IChunk that matches the SPARQLRequest.
- Specified by:
retrieveChunk
in interface ISPARQLRetrievalModule
- Parameters:
request
- the SPARQLRequest that will be matched.
- Returns:
- the promise of the chunk that matches most.
retrieveChunk
public Future<IChunk> retrieveChunk(ChunkTypeRequest chunkPattern)
- Specified by:
retrieveChunk
in interface IRetrievalModule
- Overrides:
retrieveChunk
in class DefaultRetrievalModule6