org.apache.stanbol.reasoners.web.utils
Class ReasoningServiceExecutor
java.lang.Object
org.apache.stanbol.reasoners.web.utils.ReasoningServiceExecutor
- All Implemented Interfaces:
- java.util.concurrent.Callable<JobResult>, Job
public class ReasoningServiceExecutor
- extends java.lang.Object
- implements Job
This class executes the reasoning process, by delegating the actual work on the given ReasoningService. It can be used on real-time operations and as background Job
Actually this class supports OWLApi and Jena based services. TODO In the future we may want to remove
specific dependencies on service implementation from the executor.
- Author:
- enridaga
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TASK_CHECK
public static java.lang.String TASK_CHECK
ReasoningServiceExecutor
public ReasoningServiceExecutor(org.apache.clerezza.rdf.core.access.TcManager tcManager,
ReasoningServiceInputManager inmgr,
ReasoningService<?,?,?> service,
java.lang.String task,
java.lang.String targetGraph,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> parameters)
save
protected void save(java.lang.Object data,
java.lang.String targetGraphID)
throws java.io.IOException
- To save data in the triple store.
- Parameters:
data - targetGraphID -
- Throws:
java.io.IOException
call
public ReasoningServiceResult<?> call()
throws java.lang.Exception
- Specified by:
call in interface java.util.concurrent.Callable<JobResult>
- Throws:
java.lang.Exception
buildResultLocation
public java.lang.String buildResultLocation(java.lang.String jobId)
- Specified by:
buildResultLocation in interface Job
Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.