eu.larkc.jactr.modules.sparql
Class AbstractSPARQLRetrievalModule

java.lang.Object
  extended by org.jactr.core.utils.DefaultAdaptable
      extended by org.jactr.core.module.AbstractModule
          extended by org.jactr.core.module.retrieval.six.DefaultRetrievalModule6
              extended by 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

Field Summary
 
Fields inherited from class org.jactr.core.module.retrieval.six.DefaultRetrievalModule6
INDEXED_RETRIEVALS_ENABLED_PARAM, RECENTLY_RETRIEVED_SLOT
 
Fields inherited from interface org.jactr.core.module.retrieval.four.IRetrievalModule4
LATENCY_EXPONENT, LATENCY_FACTOR
 
Fields inherited from interface org.jactr.core.module.retrieval.IRetrievalModule
RETRIEVAL_THRESHOLD
 
Method Summary
abstract  SPARQLEndpoint getSPARQLEndpoint()
          Returns the SPARQLEndpoint that is used by this module.
 void initialize()
           
 Future<IChunk> retrieveChunk(ChunkTypeRequest chunkPattern)
           
 Future<IChunk> retrieveChunk(SPARQLRequest request)
          Returns (the promise of) an IChunk that matches the SPARQLRequest.
 
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
 
Methods inherited from class org.jactr.core.module.AbstractModule
delayedFuture, getExecutor, getModel, getName, immediateFuture, immediateReturn, install, uninstall
 
Methods inherited from class org.jactr.core.utils.DefaultAdaptable
getAdapter
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jactr.core.module.IModule
getModel, getName, install
 
Methods inherited from interface org.jactr.core.utils.IInstallable
uninstall
 
Methods inherited from interface org.jactr.core.utils.IAdaptable
getAdapter
 

Method Detail

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