org.semwebcentral.sweetrules.sweetjena
Class SweetJenaQueryTask

java.lang.Object
  extended byorg.semwebcentral.sweetrules.sweetjena.SweetJenaQueryTask
All Implemented Interfaces:
ISweetInferenceEngineTask

public class SweetJenaQueryTask
extends java.lang.Object
implements ISweetInferenceEngineTask


Task for querying Jena

Author:
Mike Dean

Field Summary
protected  SweetJenaEngine jenaEngine
          A Jena engine
(package private)  java.lang.String queryString
           
 
Constructor Summary
SweetJenaQueryTask(SweetJenaEngine engine, java.lang.String queryString)
          Constructor for the SweetJenaQueryTask
 
Method Summary
 java.lang.Object execute()
          The task execution method for query
 SweetJenaEngine getEngine()
          Get the Jena engine.
 void setEngine(SweetJenaEngine engine)
          Set the Jena engine.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

queryString

java.lang.String queryString

jenaEngine

protected SweetJenaEngine jenaEngine
A Jena engine

Constructor Detail

SweetJenaQueryTask

public SweetJenaQueryTask(SweetJenaEngine engine,
                          java.lang.String queryString)
Constructor for the SweetJenaQueryTask

Parameters:
engine - The Jena engine
Method Detail

execute

public java.lang.Object execute()
                         throws SweetInferenceEngineException
The task execution method for query

Specified by:
execute in interface ISweetInferenceEngineTask
Returns:
The result of executing the task
Throws:
SweetInferenceEngineException

getEngine

public SweetJenaEngine getEngine()
Get the Jena engine.


setEngine

public void setEngine(SweetJenaEngine engine)
Set the Jena engine.