eu.larkc.jactr.modules.sparql
Class RemoteSPARQLEndpointRetrievalModule

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
                  extended by eu.larkc.jactr.modules.sparql.RemoteSPARQLEndpointRetrievalModule
All Implemented Interfaces:
ISPARQLRetrievalModule, IModule, IRetrievalModule4, IRetrievalModule, IAdaptable, IInitializable, IInstallable, IParameterized

public class RemoteSPARQLEndpointRetrievalModule
extends AbstractSPARQLRetrievalModule
implements ISPARQLRetrievalModule, IRetrievalModule4

The default retrieval module for retrieving chunks from the a Remote SPARQLEndpoint.

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
 
Constructor Summary
RemoteSPARQLEndpointRetrievalModule()
           
 
Method Summary
 String getParameter(String key)
           
 Collection<String> getSetableParameters()
           
 SPARQLEndpoint getSPARQLEndpoint()
          Returns the SPARQLEndpoint that is used by this module.
 Future<IChunk> retrieveChunk(ChunkTypeRequest chunkPattern)
           
 void setParameter(String key, String value)
           
 
Methods inherited from class eu.larkc.jactr.modules.sparql.AbstractSPARQLRetrievalModule
initialize, retrieveChunk
 
Methods inherited from class org.jactr.core.module.retrieval.six.DefaultRetrievalModule6
addListener, dispose, getLatencyExponent, getLatencyFactor, getPossibleParameters, getRetrievalThreshold, getRetrievalTimeEquation, hasBeenRetrieved, isIndexedRetrievalEnabled, removeListener, reset, reset, setIndexedRetrievalEnabled, setLatencyExponent, setLatencyFactor, 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 eu.larkc.jactr.modules.sparql.ISPARQLRetrievalModule
retrieveChunk
 
Methods inherited from interface org.jactr.core.module.retrieval.four.IRetrievalModule4
getLatencyExponent, getLatencyFactor, setLatencyExponent, setLatencyFactor
 
Methods inherited from interface org.jactr.core.module.retrieval.IRetrievalModule
addListener, getRetrievalThreshold, getRetrievalTimeEquation, removeListener, reset, setRetrievalThreshold
 
Methods inherited from interface org.jactr.core.module.IModule
dispose, getModel, getName, initialize, install, reset
 
Methods inherited from interface org.jactr.core.utils.IInstallable
uninstall
 
Methods inherited from interface org.jactr.core.utils.IAdaptable
getAdapter
 

Constructor Detail

RemoteSPARQLEndpointRetrievalModule

public RemoteSPARQLEndpointRetrievalModule()
Method Detail

retrieveChunk

public Future<IChunk> retrieveChunk(ChunkTypeRequest chunkPattern)
Specified by:
retrieveChunk in interface IRetrievalModule
Overrides:
retrieveChunk in class AbstractSPARQLRetrievalModule

getSPARQLEndpoint

public SPARQLEndpoint getSPARQLEndpoint()
Description copied from class: AbstractSPARQLRetrievalModule
Returns the SPARQLEndpoint that is used by this module.

Specified by:
getSPARQLEndpoint in class AbstractSPARQLRetrievalModule
Returns:
the SPARQLEndpoint.

getParameter

public String getParameter(String key)
Specified by:
getParameter in interface IParameterized
Overrides:
getParameter in class DefaultRetrievalModule6

getSetableParameters

public Collection<String> getSetableParameters()
Specified by:
getSetableParameters in interface IParameterized
Overrides:
getSetableParameters in class DefaultRetrievalModule6

setParameter

public void setParameter(String key,
                         String value)
Specified by:
setParameter in interface IParameterized
Overrides:
setParameter in class DefaultRetrievalModule6