public class ReasoningServiceExecutor extends Object implements org.apache.stanbol.commons.jobs.api.Job
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.| Modifier and Type | Field and Description |
|---|---|
static String |
TASK_CHECK |
| Constructor and Description |
|---|
ReasoningServiceExecutor(org.apache.clerezza.rdf.core.access.TcManager tcManager,
org.apache.stanbol.reasoners.servicesapi.ReasoningServiceInputManager inmgr,
org.apache.stanbol.reasoners.servicesapi.ReasoningService<?,?,?> service,
String task,
String targetGraph,
Map<String,List<String>> parameters) |
| Modifier and Type | Method and Description |
|---|---|
String |
buildResultLocation(String jobId) |
ReasoningServiceResult<?> |
call() |
protected void |
save(Object data,
String targetGraphID)
To save data in the triple store.
|
public static String TASK_CHECK
public ReasoningServiceExecutor(org.apache.clerezza.rdf.core.access.TcManager tcManager,
org.apache.stanbol.reasoners.servicesapi.ReasoningServiceInputManager inmgr,
org.apache.stanbol.reasoners.servicesapi.ReasoningService<?,?,?> service,
String task,
String targetGraph,
Map<String,List<String>> parameters)
protected void save(Object data, String targetGraphID) throws IOException
data - targetGraphID - IOExceptionpublic ReasoningServiceResult<?> call() throws Exception
Copyright © 2011-2014 The Apache Software Foundation. All Rights Reserved.