|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteu.larkc.core.data.workflow.WorkflowDescription
public class WorkflowDescription
This class provides functions for extracting information out of a workflow description.
Field Summary | |
---|---|
static org.openrdf.model.URI |
CONNECTS_TO_URI
This URI represents the URI for the predicate connectsTo. |
static org.openrdf.model.URI |
ENDPOINT_CONNECTS_TO_PIPE_URI
This URI represents that an endpoint is connected to a pipe |
static org.openrdf.model.URI |
ENDPOINT_TYPE_URI
This URI represents the URI for the predicate endpointType. |
static org.openrdf.model.URI |
IS_INPUT_SPLITTABLE_URI
This URI represents the plugin parameter which indicates if multi threading can be used with this plugin. |
static java.lang.String |
LARKC
Namespace for LarKC. |
static org.openrdf.model.URI |
NAMESPACE_URI
This URI represents a mapping between an abbreviation and the corresponding namespace. |
static org.openrdf.model.URI |
PIPE_HAS_SINK_URI
This URI represents the predicate to connect a pipe with a sink. |
static org.openrdf.model.URI |
PIPE_HAS_SOURCE_URI
This URI represents the predicate for connecting a pipe with a source. |
static org.openrdf.model.URI |
PLUGIN_PARAMETER_QUERY
This URI represents that a plugin has a predefined SPARQL query as a parameter. |
static org.openrdf.model.URI |
PLUGIN_PARAMETERS
This URI represents that a plugin has specific parameters |
static org.openrdf.model.URI |
PLUGIN_SINK_URI
This URI represents the predicate for connecting a plugin with a sink. |
static java.lang.String |
RDF
Namespace for RDF. |
static org.openrdf.model.URI |
RUNS_ON_URI
This URI represents the URI for the predicate pluginRunsOn. |
static org.openrdf.model.URI |
SOURCE_PLUGIN_URI
This URI represents the predicate for connecting a source with a plugin. |
static org.openrdf.model.URI |
TYPE_OF_URI
This URI represents the URI for the predicate pluginType. |
static org.openrdf.model.URI |
WORKFLOW_INPUT_PLUGIN_URI
This URI represents the workflow input plugin |
Constructor Summary | |
---|---|
WorkflowDescription()
|
Method Summary | |
---|---|
static org.jgrapht.graph.SimpleDirectedGraph<GraphNode,org.jgrapht.graph.DefaultEdge> |
constructJGraphT(SetOfStatements workflowDescription)
This method constructs a JGraphT out of a workflow description. |
static boolean |
containsQuery(SetOfStatements workflowDescription)
This method checks if the workflow description contains a query. |
static SetOfStatements |
getDeploymentDescriptionForPlugin(SetOfStatements workflowDescription,
java.lang.String pluginID)
This method extracts all deployment statements out of a workflow description that are relevant for a specific plugin. |
static java.util.Map<java.lang.String,EndpointNode> |
getEndpoints(SetOfStatements workflowDescription)
This method returns all endpoints that are specified in the workflow description. |
static java.util.Map<java.lang.String,PipeNode> |
getPipes(SetOfStatements workflowDescription)
Extracts all pipes out of a workflow description and returns a map containing the IDs for the pipe and the corresponding pipe node object. |
static SetOfStatements |
getQueryFromWorkflowDescription(SetOfStatements workflowDescription)
This method extracts the query out of a workflow description |
static java.util.Map<java.lang.String,SinkNode> |
getSinks(SetOfStatements workflowDescription)
Extracts all sinks of the workflow description. |
static java.util.Map<java.lang.String,SourceNode> |
getSources(SetOfStatements workflowDescription)
Extracts all sources of the workflow description. |
static org.openrdf.model.Statement |
getSpecificParameterFromPluginParameters(SetOfStatements pluginParameters,
java.lang.String parameter)
Method to extract one specific parameter out of plugin parameters. |
static SetOfStatements |
getWorkflowParametersForPlugin(SetOfStatements workflowDescription,
java.lang.String pluginID)
This method extracts all statements out of a workflow description that are relevant for a specific plugin. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String LARKC
public static final java.lang.String RDF
public static final org.openrdf.model.URI CONNECTS_TO_URI
public static final org.openrdf.model.URI TYPE_OF_URI
public static final org.openrdf.model.URI ENDPOINT_TYPE_URI
public static final org.openrdf.model.URI PLUGIN_PARAMETERS
public static final org.openrdf.model.URI WORKFLOW_INPUT_PLUGIN_URI
public static final org.openrdf.model.URI RUNS_ON_URI
public static final org.openrdf.model.URI PLUGIN_PARAMETER_QUERY
public static final org.openrdf.model.URI NAMESPACE_URI
public static final org.openrdf.model.URI IS_INPUT_SPLITTABLE_URI
public static final org.openrdf.model.URI SOURCE_PLUGIN_URI
public static final org.openrdf.model.URI PLUGIN_SINK_URI
public static final org.openrdf.model.URI PIPE_HAS_SOURCE_URI
public static final org.openrdf.model.URI PIPE_HAS_SINK_URI
public static final org.openrdf.model.URI ENDPOINT_CONNECTS_TO_PIPE_URI
Constructor Detail |
---|
public WorkflowDescription()
Method Detail |
---|
public static org.jgrapht.graph.SimpleDirectedGraph<GraphNode,org.jgrapht.graph.DefaultEdge> constructJGraphT(SetOfStatements workflowDescription) throws IllegalWorkflowGraphException
workflowDescription
- the workflow description
IllegalWorkflowGraphException
public static java.util.Map<java.lang.String,EndpointNode> getEndpoints(SetOfStatements workflowDescription)
workflowDescription
- The workflow description
public static org.openrdf.model.Statement getSpecificParameterFromPluginParameters(SetOfStatements pluginParameters, java.lang.String parameter)
pluginParameters
- The plugin parameters.parameter
- The parameter looking for.
public static SetOfStatements getWorkflowParametersForPlugin(SetOfStatements workflowDescription, java.lang.String pluginID) throws MultiplePluginParametersException
workflowDescription
- the workflow descriptionpluginID
- the id of the plugin
MultiplePluginParametersException
public static SetOfStatements getDeploymentDescriptionForPlugin(SetOfStatements workflowDescription, java.lang.String pluginID)
workflowDescription
- the workflow descriptionpluginID
- the id of the plugin
public static SetOfStatements getQueryFromWorkflowDescription(SetOfStatements workflowDescription)
workflowDescription
- the workflow description
public static boolean containsQuery(SetOfStatements workflowDescription)
workflowDescription
- the workflow description
public static java.util.Map<java.lang.String,SourceNode> getSources(SetOfStatements workflowDescription) throws IllegalWorkflowGraphException
workflowDescription
- The workflow description
IllegalWorkflowGraphException
public static java.util.Map<java.lang.String,SinkNode> getSinks(SetOfStatements workflowDescription) throws IllegalWorkflowGraphException
workflowDescription
- The workflow description
IllegalWorkflowGraphException
public static java.util.Map<java.lang.String,PipeNode> getPipes(SetOfStatements workflowDescription) throws IllegalWorkflowGraphException
workflowDescription
- the workflow description
IllegalWorkflowGraphException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |