public class ReasoningServiceTaskResource
extends org.apache.stanbol.commons.web.base.resource.BaseStanbolResource
ReasoningServiceExecutor.
Two different kind of implementation of ReasoningService are supported: JenaReasoningService
and OWLApiReasonngService.
This class includes methods to prepare the input and dispatch the output (back to the client in the
requested format or saved in the triple store).
Support for long term operations is provided by adding /job to the request URI.| Constructor and Description |
|---|
ReasoningServiceTaskResource(String serviceID,
String taskID,
String job,
javax.servlet.ServletContext servletContext,
javax.ws.rs.core.HttpHeaders headers,
com.sun.jersey.api.core.HttpContext httpContext)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
get(String targetGraphID)
Get the inferences from input URL.
|
Set<org.apache.stanbol.reasoners.servicesapi.ReasoningService<?,?,?>> |
getActiveServices()
Gets the list of active services
|
String |
getCurrentPath()
The actual path, to be used in the template.
|
org.apache.stanbol.reasoners.servicesapi.ReasoningService<?,?,?> |
getCurrentService()
The selected service
|
String |
getCurrentTask()
The selected task
|
String |
getJobLocation()
If this resource created a job, this field contains the location to be rendered in the viewable.
|
Map<String,String> |
getServiceDescription() |
Map<String,String> |
getServiceDescription(org.apache.stanbol.reasoners.servicesapi.ReasoningService<?,?,?> service) |
List<String> |
getSupportedTasks()
The list of supported tasks.
|
javax.ws.rs.core.Response |
post()
This is an alias of the get method.
|
javax.ws.rs.core.Response |
post(com.sun.jersey.multipart.FormDataMultiPart data)
To catch additional parameters in case of a POST with content-type multipart/form-data, we need to
access the
FormDataMultiPart representation of the input. |
public ReasoningServiceTaskResource(String serviceID, String taskID, String job, @Context javax.servlet.ServletContext servletContext, @Context javax.ws.rs.core.HttpHeaders headers, @Context com.sun.jersey.api.core.HttpContext httpContext)
serviceID - taskID - job - servletContext - headers - httpContext - public javax.ws.rs.core.Response post()
url - targetGraphID - public javax.ws.rs.core.Response get(String targetGraphID)
url - public javax.ws.rs.core.Response post(com.sun.jersey.multipart.FormDataMultiPart data)
FormDataMultiPart representation of the input.data - public String getCurrentPath()
public org.apache.stanbol.reasoners.servicesapi.ReasoningService<?,?,?> getCurrentService()
public String getCurrentTask()
public String getJobLocation()
public List<String> getSupportedTasks()
public Set<org.apache.stanbol.reasoners.servicesapi.ReasoningService<?,?,?>> getActiveServices()
Copyright © 2011-2014 The Apache Software Foundation. All Rights Reserved.