cwltool.cwlrdf

Classes

CWLViewer

Produce similar images with the https://github.com/common-workflow-language/cwlviewer.

Process

Abstract CWL Process.

Functions

gather(tool, ctx)

printrdf(wflow, ctx, style)

Serialize the CWL document into a string, ready for printing.

lastpart(uri)

dot_with_parameters(g, stdout)

dot_without_parameters(g, stdout)

printdot(wf, ctx, stdout)

Module Contents

class cwltool.cwlrdf.CWLViewer(rdf_description)

Produce similar images with the https://github.com/common-workflow-language/cwlviewer.

Parameters:

rdf_description (str)

get_dot_graph()

Get the dot graph object.

Return type:

pydot.Graph

dot()

Get the graph as graphviz.

Return type:

str

class cwltool.cwlrdf.Process(toolpath_object, loadingContext)

Bases: cwltool.utils.HasReqsHints

Inheritance diagram of cwltool.cwlrdf.Process

Abstract CWL Process.

Parameters:
evalResources(builder, runtimeContext)
Parameters:
Return type:

Dict[str, Union[int, float]]

checkRequirements(rec, supported_process_requirements)

Check the presence of unsupported requirements.

Parameters:
  • rec (Union[MutableSequence[cwltool.utils.CWLObjectType], cwltool.utils.CWLObjectType, cwltool.utils.CWLOutputType, None])

  • supported_process_requirements (Iterable[str])

Return type:

None

validate_hints(avsc_names, hints, strict)

Process the hints field.

Parameters:
Return type:

None

visit(op)
Parameters:

op (Callable[[ruamel.yaml.comments.CommentedMap], None])

Return type:

None

abstract job(job_order, output_callbacks, runtimeContext)
Parameters:
  • job_order (cwltool.utils.CWLObjectType)

  • output_callbacks (Optional[cwltool.utils.OutputCallbackType])

  • runtimeContext (cwltool.context.RuntimeContext)

Return type:

cwltool.utils.JobsGeneratorType

__str__()

Return the id of this CWL process.

Return type:

str

cwltool.cwlrdf.gather(tool, ctx)
Parameters:
Return type:

rdflib.Graph

cwltool.cwlrdf.printrdf(wflow, ctx, style)

Serialize the CWL document into a string, ready for printing.

Parameters:
Return type:

str

cwltool.cwlrdf.lastpart(uri)
Parameters:

uri (Any)

Return type:

str

cwltool.cwlrdf.dot_with_parameters(g, stdout)
Parameters:
Return type:

None

cwltool.cwlrdf.dot_without_parameters(g, stdout)
Parameters:
Return type:

None

cwltool.cwlrdf.printdot(wf, ctx, stdout)
Parameters:
Return type:

None