@prefix rdf:   <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd:   <http://www.w3.org/2001/XMLSchema#> .
@prefix cwl:   <https://w3id.org/cwl/cwl#> .
@prefix Workflow: <https://w3id.org/cwl/cwl#Workflow/> .
@prefix sld:   <https://w3id.org/cwl/salad#> .
@prefix rdfs:  <http://www.w3.org/2000/01/rdf-schema#> .
@prefix CommandOutputBinding: <https://w3id.org/cwl/cwl#CommandOutputBinding/> .
@prefix ns1:   <http://commonwl.org/cwltool#> .
@prefix MPIRequirement: <http://commonwl.org/cwltool#MPIRequirement/> .

<https://w3id.org/cwl/view/git/20bec583996f86de518feb51574ff6efc8784f49/tests/wf/mpi_simple_wf.cwl#par_pids/processes>
        cwl:source  <https://w3id.org/cwl/view/git/20bec583996f86de518feb51574ff6efc8784f49/tests/wf/mpi_simple_wf.cwl#processes> .

<https://w3id.org/cwl/view/git/20bec583996f86de518feb51574ff6efc8784f49/tests/wf/mpi_expr.cwl>
        a                        cwl:CommandLineTool ;
        rdfs:comment             "Trivial MPI test that prints the process IDs of each of the parallel\nprocesses. Requires Python (but you have cwltool running, right?)\nand an MPI implementation.\n\nThis version takes the number of processes to use as an input and\nthen passes this to the MPIRequirement using an expression.\n" ;
        ns1:original_cwlVersion  "v1.1" ;
        cwl:arguments            ( "-c" "import os; print(os.getpid())" ) ;
        cwl:baseCommand          ( "python" ) ;
        cwl:cwlVersion           <https://w3id.org/cwl/view/git/20bec583996f86de518feb51574ff6efc8784f49/tests/wf/v1.2> ;
        cwl:inputs               <https://w3id.org/cwl/view/git/20bec583996f86de518feb51574ff6efc8784f49/tests/wf/mpi_expr.cwl#processes> ;
        cwl:outputs              <https://w3id.org/cwl/view/git/20bec583996f86de518feb51574ff6efc8784f49/tests/wf/mpi_expr.cwl#pids> ;
        cwl:requirements         [ a                         ns1:MPIRequirement ;
                                   MPIRequirement:processes  "$(inputs.processes)"
                                 ] ;
        cwl:stdout               "dab258cf1b4e095aa96bd305be6a07f69b42793a" .

<https://w3id.org/cwl/view/git/20bec583996f86de518feb51574ff6efc8784f49/tests/wf/mpi_simple_wf.cwl#count>
        cwl:in   <https://w3id.org/cwl/view/git/20bec583996f86de518feb51574ff6efc8784f49/tests/wf/mpi_simple_wf.cwl#count/pid_file> ;
        cwl:out  <https://w3id.org/cwl/view/git/20bec583996f86de518feb51574ff6efc8784f49/tests/wf/mpi_simple_wf.cwl#count/line_count> ;
        cwl:run  <https://w3id.org/cwl/view/git/20bec583996f86de518feb51574ff6efc8784f49/tests/wf/mpi_line_count.cwl> .

<https://w3id.org/cwl/view/git/20bec583996f86de518feb51574ff6efc8784f49/tests/wf/mpi_simple_wf.cwl#line_count>
        cwl:outputSource  <https://w3id.org/cwl/view/git/20bec583996f86de518feb51574ff6efc8784f49/tests/wf/mpi_simple_wf.cwl#count/line_count> ;
        sld:type          cwl:File .

<https://w3id.org/cwl/view/git/20bec583996f86de518feb51574ff6efc8784f49/tests/wf/mpi_line_count.cwl#pid_file>
        sld:type  cwl:File .

<https://w3id.org/cwl/view/git/20bec583996f86de518feb51574ff6efc8784f49/tests/wf/mpi_line_count.cwl#line_count>
        cwl:outputBinding  [ CommandOutputBinding:glob
                          "line_count" ] ;
        sld:type           cwl:File .

<https://w3id.org/cwl/view/git/20bec583996f86de518feb51574ff6efc8784f49/tests/wf/mpi_simple_wf.cwl#par_pids>
        cwl:in   <https://w3id.org/cwl/view/git/20bec583996f86de518feb51574ff6efc8784f49/tests/wf/mpi_simple_wf.cwl#par_pids/processes> ;
        cwl:out  <https://w3id.org/cwl/view/git/20bec583996f86de518feb51574ff6efc8784f49/tests/wf/mpi_simple_wf.cwl#par_pids/pids> ;
        cwl:run  <https://w3id.org/cwl/view/git/20bec583996f86de518feb51574ff6efc8784f49/tests/wf/mpi_expr.cwl> .

<https://w3id.org/cwl/view/git/20bec583996f86de518feb51574ff6efc8784f49/tests/wf/mpi_simple_wf.cwl#processes>
        sld:type  xsd:int .

<https://w3id.org/cwl/view/git/20bec583996f86de518feb51574ff6efc8784f49/tests/wf/mpi_simple_wf.cwl#count/pid_file>
        cwl:source  <https://w3id.org/cwl/view/git/20bec583996f86de518feb51574ff6efc8784f49/tests/wf/mpi_simple_wf.cwl#par_pids/pids> .

<https://w3id.org/cwl/view/git/20bec583996f86de518feb51574ff6efc8784f49/tests/wf/mpi_expr.cwl#processes>
        sld:type  xsd:int .

<https://w3id.org/cwl/view/git/20bec583996f86de518feb51574ff6efc8784f49/tests/wf/mpi_simple_wf.cwl>
        a                        cwl:Workflow ;
        rdfs:comment             "Simple 2 step workflow to check that workflow steps are\nindependently picking up on the number of processes.  First run the\nparallel get PIDs step (on the input num procs) then run (on a\nsingle proc) the line count. This should equal the input.\n" ;
        ns1:original_cwlVersion  "v1.1" ;
        Workflow:steps           <https://w3id.org/cwl/view/git/20bec583996f86de518feb51574ff6efc8784f49/tests/wf/mpi_simple_wf.cwl#par_pids> , <https://w3id.org/cwl/view/git/20bec583996f86de518feb51574ff6efc8784f49/tests/wf/mpi_simple_wf.cwl#count> ;
        cwl:cwlVersion           <https://w3id.org/cwl/view/git/20bec583996f86de518feb51574ff6efc8784f49/tests/wf/v1.2> ;
        cwl:inputs               <https://w3id.org/cwl/view/git/20bec583996f86de518feb51574ff6efc8784f49/tests/wf/mpi_simple_wf.cwl#processes> ;
        cwl:outputs              <https://w3id.org/cwl/view/git/20bec583996f86de518feb51574ff6efc8784f49/tests/wf/mpi_simple_wf.cwl#line_count> .

<https://w3id.org/cwl/view/git/20bec583996f86de518feb51574ff6efc8784f49/tests/wf/mpi_expr.cwl#pids>
        cwl:outputBinding  [ CommandOutputBinding:glob
                          "dab258cf1b4e095aa96bd305be6a07f69b42793a" ] ;
        sld:type           cwl:File .

<https://w3id.org/cwl/view/git/20bec583996f86de518feb51574ff6efc8784f49/tests/wf/mpi_line_count.cwl>
        a                        cwl:CommandLineTool ;
        rdfs:comment             "Line count of input, but mpirun on a single process\n" ;
        ns1:original_cwlVersion  "v1.1" ;
        cwl:arguments            ( "-l" ) ;
        cwl:baseCommand          ( "wc" ) ;
        cwl:cwlVersion           <https://w3id.org/cwl/view/git/20bec583996f86de518feb51574ff6efc8784f49/tests/wf/v1.2> ;
        cwl:inputs               <https://w3id.org/cwl/view/git/20bec583996f86de518feb51574ff6efc8784f49/tests/wf/mpi_line_count.cwl#pid_file> ;
        cwl:outputs              <https://w3id.org/cwl/view/git/20bec583996f86de518feb51574ff6efc8784f49/tests/wf/mpi_line_count.cwl#line_count> ;
        cwl:requirements         [ a                         ns1:MPIRequirement ;
                                   MPIRequirement:processes  1
                                 ] ;
        cwl:stdin                "$(inputs.pid_file.path)" ;
        cwl:stdout               "line_count" .
