Renku Workflow

Renku uses PROV-O and its own Renku ontology to represent workflows.

Run

Represents a workflow template.

class renku.core.models.workflow.run.Run(*, commit=None, client=None, path=None, id=None, label=NOTHING, project=None, command=None, process_order=None, successcodes=NOTHING, subprocesses=NOTHING, arguments=NOTHING, inputs=NOTHING, outputs=NOTHING)[source]

Represents a renku run execution template.

Type:

["prov:Entity", "prov:Plan", "renku:Run"]

Context:

{
  "renku": "https://swissdatasciencecenter.github.io/renku-ontology#",
  "prov": "http://www.w3.org/ns/prov#",
  "@version": 1.1,
  "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
  "schema": "http://schema.org/",
  "path": "prov:atLocation",
  "_id": "@id",
  "_label": "rdfs:label",
  "_project": {
    "@id": "schema:isPartOf",
    "@context": {
      "schema": "http://schema.org/",
      "prov": "http://www.w3.org/ns/prov#",
      "@version": 1.1,
      "name": "schema:name",
      "created": "schema:dateCreated",
      "updated": "schema:dateUpdated",
      "version": "schema:schemaVersion",
      "creator": {
        "@id": "schema:creator",
        "@context": {
          "schema": "http://schema.org/",
          "prov": "http://www.w3.org/ns/prov#",
          "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
          "@version": 1.1,
          "name": "schema:name",
          "email": "schema:email",
          "label": "rdfs:label",
          "affiliation": "schema:affiliation",
          "alternate_name": "schema:alternateName",
          "_id": "@id"
        }
      },
      "_id": "@id"
    }
  },
  "command": {
    "@id": "renku:command",
    "@type": "http://www.w3.org/2001/XMLSchema#string"
  },
  "process_order": {
    "@id": "renku:processOrder",
    "@type": "http://www.w3.org/2001/XMLSchema#integer"
  },
  "successcodes": "renku:successCodes",
  "subprocesses": {
    "@id": "renku:hasSubprocess"
  },
  "arguments": {
    "@id": "renku:hasArguments",
    "@context": {
      "renku": "https://swissdatasciencecenter.github.io/renku-ontology#",
      "prov": "http://www.w3.org/ns/prov#",
      "@version": 1.1,
      "_id": "@id",
      "position": {
        "@id": "renku:position",
        "@type": "http://www.w3.org/2001/XMLSchema#integer"
      },
      "prefix": {
        "@id": "renku:prefix",
        "@type": "http://www.w3.org/2001/XMLSchema#string"
      },
      "value": {
        "@id": "renku:value",
        "@type": "http://www.w3.org/2001/XMLSchema#string"
      }
    }
  },
  "inputs": {
    "@id": "renku:hasInputs",
    "@context": {
      "renku": "https://swissdatasciencecenter.github.io/renku-ontology#",
      "prov": "http://www.w3.org/ns/prov#",
      "@version": 1.1,
      "_id": "@id",
      "position": {
        "@id": "renku:position",
        "@type": "http://www.w3.org/2001/XMLSchema#integer"
      },
      "prefix": {
        "@id": "renku:prefix",
        "@type": "http://www.w3.org/2001/XMLSchema#string"
      },
      "consumes": {
        "@id": "renku:consumes",
        "@context": [
          {
            "renku.core.models.entities.Entity_prov_Entity": {
              "@id": "http://www.w3.org/ns/prov#Entity",
              "@context": {
                "schema": "http://schema.org/",
                "prov": "http://www.w3.org/ns/prov#",
                "wfprov": "http://purl.org/wf4ever/wfprov#",
                "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
                "@version": 1.1,
                "path": "prov:atLocation",
                "_id": "@id",
                "_label": "rdfs:label",
                "_project": {
                  "@id": "schema:isPartOf",
                  "@context": {
                    "schema": "http://schema.org/",
                    "prov": "http://www.w3.org/ns/prov#",
                    "@version": 1.1,
                    "name": "schema:name",
                    "created": "schema:dateCreated",
                    "updated": "schema:dateUpdated",
                    "version": "schema:schemaVersion",
                    "creator": {
                      "@id": "schema:creator",
                      "@context": {
                        "schema": "http://schema.org/",
                        "prov": "http://www.w3.org/ns/prov#",
                        "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
                        "@version": 1.1,
                        "name": "schema:name",
                        "email": "schema:email",
                        "label": "rdfs:label",
                        "affiliation": "schema:affiliation",
                        "alternate_name": "schema:alternateName",
                        "_id": "@id"
                      }
                    },
                    "_id": "@id"
                  }
                }
              }
            },
            "@version": 1.1
          },
          {
            "renku.core.models.entities.Entity_wfprov_Artifact": {
              "@id": "http://purl.org/wf4ever/wfprov#Artifact",
              "@context": {
                "schema": "http://schema.org/",
                "prov": "http://www.w3.org/ns/prov#",
                "wfprov": "http://purl.org/wf4ever/wfprov#",
                "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
                "@version": 1.1,
                "path": "prov:atLocation",
                "_id": "@id",
                "_label": "rdfs:label",
                "_project": {
                  "@id": "schema:isPartOf",
                  "@context": {
                    "schema": "http://schema.org/",
                    "prov": "http://www.w3.org/ns/prov#",
                    "@version": 1.1,
                    "name": "schema:name",
                    "created": "schema:dateCreated",
                    "updated": "schema:dateUpdated",
                    "version": "schema:schemaVersion",
                    "creator": {
                      "@id": "schema:creator",
                      "@context": {
                        "schema": "http://schema.org/",
                        "prov": "http://www.w3.org/ns/prov#",
                        "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
                        "@version": 1.1,
                        "name": "schema:name",
                        "email": "schema:email",
                        "label": "rdfs:label",
                        "affiliation": "schema:affiliation",
                        "alternate_name": "schema:alternateName",
                        "_id": "@id"
                      }
                    },
                    "_id": "@id"
                  }
                }
              }
            },
            "@version": 1.1
          },
          {
            "renku.core.models.entities.Collection_prov_Collection": {
              "@id": "http://www.w3.org/ns/prov#Collection",
              "@context": {
                "prov": "http://www.w3.org/ns/prov#",
                "@version": 1.1,
                "schema": "http://schema.org/",
                "wfprov": "http://purl.org/wf4ever/wfprov#",
                "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
                "path": "prov:atLocation",
                "_id": "@id",
                "_label": "rdfs:label",
                "_project": {
                  "@id": "schema:isPartOf",
                  "@context": {
                    "schema": "http://schema.org/",
                    "prov": "http://www.w3.org/ns/prov#",
                    "@version": 1.1,
                    "name": "schema:name",
                    "created": "schema:dateCreated",
                    "updated": "schema:dateUpdated",
                    "version": "schema:schemaVersion",
                    "creator": {
                      "@id": "schema:creator",
                      "@context": {
                        "schema": "http://schema.org/",
                        "prov": "http://www.w3.org/ns/prov#",
                        "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
                        "@version": 1.1,
                        "name": "schema:name",
                        "email": "schema:email",
                        "label": "rdfs:label",
                        "affiliation": "schema:affiliation",
                        "alternate_name": "schema:alternateName",
                        "_id": "@id"
                      }
                    },
                    "_id": "@id"
                  }
                },
                "members": {
                  "@id": "prov:hadMember",
                  "@context": {
                    "schema": "http://schema.org/",
                    "prov": "http://www.w3.org/ns/prov#",
                    "wfprov": "http://purl.org/wf4ever/wfprov#",
                    "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
                    "@version": 1.1,
                    "path": "prov:atLocation",
                    "_id": "@id",
                    "_label": "rdfs:label",
                    "_project": {
                      "@id": "schema:isPartOf",
                      "@context": {
                        "schema": "http://schema.org/",
                        "prov": "http://www.w3.org/ns/prov#",
                        "@version": 1.1,
                        "name": "schema:name",
                        "created": "schema:dateCreated",
                        "updated": "schema:dateUpdated",
                        "version": "schema:schemaVersion",
                        "creator": {
                          "@id": "schema:creator",
                          "@context": {
                            "schema": "http://schema.org/",
                            "prov": "http://www.w3.org/ns/prov#",
                            "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
                            "@version": 1.1,
                            "name": "schema:name",
                            "email": "schema:email",
                            "label": "rdfs:label",
                            "affiliation": "schema:affiliation",
                            "alternate_name": "schema:alternateName",
                            "_id": "@id"
                          }
                        },
                        "_id": "@id"
                      }
                    }
                  }
                }
              }
            },
            "@version": 1.1
          },
          {
            "renku.core.models.entities.Collection_prov_Entity": {
              "@id": "http://www.w3.org/ns/prov#Entity",
              "@context": {
                "prov": "http://www.w3.org/ns/prov#",
                "@version": 1.1,
                "schema": "http://schema.org/",
                "wfprov": "http://purl.org/wf4ever/wfprov#",
                "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
                "path": "prov:atLocation",
                "_id": "@id",
                "_label": "rdfs:label",
                "_project": {
                  "@id": "schema:isPartOf",
                  "@context": {
                    "schema": "http://schema.org/",
                    "prov": "http://www.w3.org/ns/prov#",
                    "@version": 1.1,
                    "name": "schema:name",
                    "created": "schema:dateCreated",
                    "updated": "schema:dateUpdated",
                    "version": "schema:schemaVersion",
                    "creator": {
                      "@id": "schema:creator",
                      "@context": {
                        "schema": "http://schema.org/",
                        "prov": "http://www.w3.org/ns/prov#",
                        "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
                        "@version": 1.1,
                        "name": "schema:name",
                        "email": "schema:email",
                        "label": "rdfs:label",
                        "affiliation": "schema:affiliation",
                        "alternate_name": "schema:alternateName",
                        "_id": "@id"
                      }
                    },
                    "_id": "@id"
                  }
                },
                "members": {
                  "@id": "prov:hadMember",
                  "@context": {
                    "schema": "http://schema.org/",
                    "prov": "http://www.w3.org/ns/prov#",
                    "wfprov": "http://purl.org/wf4ever/wfprov#",
                    "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
                    "@version": 1.1,
                    "path": "prov:atLocation",
                    "_id": "@id",
                    "_label": "rdfs:label",
                    "_project": {
                      "@id": "schema:isPartOf",
                      "@context": {
                        "schema": "http://schema.org/",
                        "prov": "http://www.w3.org/ns/prov#",
                        "@version": 1.1,
                        "name": "schema:name",
                        "created": "schema:dateCreated",
                        "updated": "schema:dateUpdated",
                        "version": "schema:schemaVersion",
                        "creator": {
                          "@id": "schema:creator",
                          "@context": {
                            "schema": "http://schema.org/",
                            "prov": "http://www.w3.org/ns/prov#",
                            "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
                            "@version": 1.1,
                            "name": "schema:name",
                            "email": "schema:email",
                            "label": "rdfs:label",
                            "affiliation": "schema:affiliation",
                            "alternate_name": "schema:alternateName",
                            "_id": "@id"
                          }
                        },
                        "_id": "@id"
                      }
                    }
                  }
                }
              }
            },
            "@version": 1.1
          },
          {
            "renku.core.models.entities.Collection_wfprov_Artifact": {
              "@id": "http://purl.org/wf4ever/wfprov#Artifact",
              "@context": {
                "prov": "http://www.w3.org/ns/prov#",
                "@version": 1.1,
                "schema": "http://schema.org/",
                "wfprov": "http://purl.org/wf4ever/wfprov#",
                "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
                "path": "prov:atLocation",
                "_id": "@id",
                "_label": "rdfs:label",
                "_project": {
                  "@id": "schema:isPartOf",
                  "@context": {
                    "schema": "http://schema.org/",
                    "prov": "http://www.w3.org/ns/prov#",
                    "@version": 1.1,
                    "name": "schema:name",
                    "created": "schema:dateCreated",
                    "updated": "schema:dateUpdated",
                    "version": "schema:schemaVersion",
                    "creator": {
                      "@id": "schema:creator",
                      "@context": {
                        "schema": "http://schema.org/",
                        "prov": "http://www.w3.org/ns/prov#",
                        "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
                        "@version": 1.1,
                        "name": "schema:name",
                        "email": "schema:email",
                        "label": "rdfs:label",
                        "affiliation": "schema:affiliation",
                        "alternate_name": "schema:alternateName",
                        "_id": "@id"
                      }
                    },
                    "_id": "@id"
                  }
                },
                "members": {
                  "@id": "prov:hadMember",
                  "@context": {
                    "schema": "http://schema.org/",
                    "prov": "http://www.w3.org/ns/prov#",
                    "wfprov": "http://purl.org/wf4ever/wfprov#",
                    "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
                    "@version": 1.1,
                    "path": "prov:atLocation",
                    "_id": "@id",
                    "_label": "rdfs:label",
                    "_project": {
                      "@id": "schema:isPartOf",
                      "@context": {
                        "schema": "http://schema.org/",
                        "prov": "http://www.w3.org/ns/prov#",
                        "@version": 1.1,
                        "name": "schema:name",
                        "created": "schema:dateCreated",
                        "updated": "schema:dateUpdated",
                        "version": "schema:schemaVersion",
                        "creator": {
                          "@id": "schema:creator",
                          "@context": {
                            "schema": "http://schema.org/",
                            "prov": "http://www.w3.org/ns/prov#",
                            "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
                            "@version": 1.1,
                            "name": "schema:name",
                            "email": "schema:email",
                            "label": "rdfs:label",
                            "affiliation": "schema:affiliation",
                            "alternate_name": "schema:alternateName",
                            "_id": "@id"
                          }
                        },
                        "_id": "@id"
                      }
                    }
                  }
                }
              }
            },
            "@version": 1.1
          }
        ]
      },
      "mapped_to": {
        "@id": "prov:mappedTo",
        "@context": {
          "renku": "https://swissdatasciencecenter.github.io/renku-ontology#",
          "prov": "http://www.w3.org/ns/prov#",
          "@version": 1.1,
          "_id": "@id",
          "stream_type": {
            "@id": "renku:streamType",
            "@type": "http://www.w3.org/2001/XMLSchema#string"
          }
        }
      }
    }
  },
  "outputs": {
    "@id": "renku:hasOutputs",
    "@context": {
      "renku": "https://swissdatasciencecenter.github.io/renku-ontology#",
      "prov": "http://www.w3.org/ns/prov#",
      "@version": 1.1,
      "_id": "@id",
      "position": {
        "@id": "renku:position",
        "@type": "http://www.w3.org/2001/XMLSchema#integer"
      },
      "prefix": {
        "@id": "renku:prefix",
        "@type": "http://www.w3.org/2001/XMLSchema#string"
      },
      "create_folder": "renku:createFolder",
      "produces": {
        "@id": "renku:produces",
        "@context": [
          {
            "renku.core.models.entities.Entity_prov_Entity": {
              "@id": "http://www.w3.org/ns/prov#Entity",
              "@context": {
                "schema": "http://schema.org/",
                "prov": "http://www.w3.org/ns/prov#",
                "wfprov": "http://purl.org/wf4ever/wfprov#",
                "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
                "@version": 1.1,
                "path": "prov:atLocation",
                "_id": "@id",
                "_label": "rdfs:label",
                "_project": {
                  "@id": "schema:isPartOf",
                  "@context": {
                    "schema": "http://schema.org/",
                    "prov": "http://www.w3.org/ns/prov#",
                    "@version": 1.1,
                    "name": "schema:name",
                    "created": "schema:dateCreated",
                    "updated": "schema:dateUpdated",
                    "version": "schema:schemaVersion",
                    "creator": {
                      "@id": "schema:creator",
                      "@context": {
                        "schema": "http://schema.org/",
                        "prov": "http://www.w3.org/ns/prov#",
                        "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
                        "@version": 1.1,
                        "name": "schema:name",
                        "email": "schema:email",
                        "label": "rdfs:label",
                        "affiliation": "schema:affiliation",
                        "alternate_name": "schema:alternateName",
                        "_id": "@id"
                      }
                    },
                    "_id": "@id"
                  }
                }
              }
            },
            "@version": 1.1
          },
          {
            "renku.core.models.entities.Entity_wfprov_Artifact": {
              "@id": "http://purl.org/wf4ever/wfprov#Artifact",
              "@context": {
                "schema": "http://schema.org/",
                "prov": "http://www.w3.org/ns/prov#",
                "wfprov": "http://purl.org/wf4ever/wfprov#",
                "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
                "@version": 1.1,
                "path": "prov:atLocation",
                "_id": "@id",
                "_label": "rdfs:label",
                "_project": {
                  "@id": "schema:isPartOf",
                  "@context": {
                    "schema": "http://schema.org/",
                    "prov": "http://www.w3.org/ns/prov#",
                    "@version": 1.1,
                    "name": "schema:name",
                    "created": "schema:dateCreated",
                    "updated": "schema:dateUpdated",
                    "version": "schema:schemaVersion",
                    "creator": {
                      "@id": "schema:creator",
                      "@context": {
                        "schema": "http://schema.org/",
                        "prov": "http://www.w3.org/ns/prov#",
                        "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
                        "@version": 1.1,
                        "name": "schema:name",
                        "email": "schema:email",
                        "label": "rdfs:label",
                        "affiliation": "schema:affiliation",
                        "alternate_name": "schema:alternateName",
                        "_id": "@id"
                      }
                    },
                    "_id": "@id"
                  }
                }
              }
            },
            "@version": 1.1
          },
          {
            "renku.core.models.entities.Collection_prov_Collection": {
              "@id": "http://www.w3.org/ns/prov#Collection",
              "@context": {
                "prov": "http://www.w3.org/ns/prov#",
                "@version": 1.1,
                "schema": "http://schema.org/",
                "wfprov": "http://purl.org/wf4ever/wfprov#",
                "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
                "path": "prov:atLocation",
                "_id": "@id",
                "_label": "rdfs:label",
                "_project": {
                  "@id": "schema:isPartOf",
                  "@context": {
                    "schema": "http://schema.org/",
                    "prov": "http://www.w3.org/ns/prov#",
                    "@version": 1.1,
                    "name": "schema:name",
                    "created": "schema:dateCreated",
                    "updated": "schema:dateUpdated",
                    "version": "schema:schemaVersion",
                    "creator": {
                      "@id": "schema:creator",
                      "@context": {
                        "schema": "http://schema.org/",
                        "prov": "http://www.w3.org/ns/prov#",
                        "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
                        "@version": 1.1,
                        "name": "schema:name",
                        "email": "schema:email",
                        "label": "rdfs:label",
                        "affiliation": "schema:affiliation",
                        "alternate_name": "schema:alternateName",
                        "_id": "@id"
                      }
                    },
                    "_id": "@id"
                  }
                },
                "members": {
                  "@id": "prov:hadMember",
                  "@context": {
                    "schema": "http://schema.org/",
                    "prov": "http://www.w3.org/ns/prov#",
                    "wfprov": "http://purl.org/wf4ever/wfprov#",
                    "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
                    "@version": 1.1,
                    "path": "prov:atLocation",
                    "_id": "@id",
                    "_label": "rdfs:label",
                    "_project": {
                      "@id": "schema:isPartOf",
                      "@context": {
                        "schema": "http://schema.org/",
                        "prov": "http://www.w3.org/ns/prov#",
                        "@version": 1.1,
                        "name": "schema:name",
                        "created": "schema:dateCreated",
                        "updated": "schema:dateUpdated",
                        "version": "schema:schemaVersion",
                        "creator": {
                          "@id": "schema:creator",
                          "@context": {
                            "schema": "http://schema.org/",
                            "prov": "http://www.w3.org/ns/prov#",
                            "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
                            "@version": 1.1,
                            "name": "schema:name",
                            "email": "schema:email",
                            "label": "rdfs:label",
                            "affiliation": "schema:affiliation",
                            "alternate_name": "schema:alternateName",
                            "_id": "@id"
                          }
                        },
                        "_id": "@id"
                      }
                    }
                  }
                }
              }
            },
            "@version": 1.1
          },
          {
            "renku.core.models.entities.Collection_prov_Entity": {
              "@id": "http://www.w3.org/ns/prov#Entity",
              "@context": {
                "prov": "http://www.w3.org/ns/prov#",
                "@version": 1.1,
                "schema": "http://schema.org/",
                "wfprov": "http://purl.org/wf4ever/wfprov#",
                "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
                "path": "prov:atLocation",
                "_id": "@id",
                "_label": "rdfs:label",
                "_project": {
                  "@id": "schema:isPartOf",
                  "@context": {
                    "schema": "http://schema.org/",
                    "prov": "http://www.w3.org/ns/prov#",
                    "@version": 1.1,
                    "name": "schema:name",
                    "created": "schema:dateCreated",
                    "updated": "schema:dateUpdated",
                    "version": "schema:schemaVersion",
                    "creator": {
                      "@id": "schema:creator",
                      "@context": {
                        "schema": "http://schema.org/",
                        "prov": "http://www.w3.org/ns/prov#",
                        "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
                        "@version": 1.1,
                        "name": "schema:name",
                        "email": "schema:email",
                        "label": "rdfs:label",
                        "affiliation": "schema:affiliation",
                        "alternate_name": "schema:alternateName",
                        "_id": "@id"
                      }
                    },
                    "_id": "@id"
                  }
                },
                "members": {
                  "@id": "prov:hadMember",
                  "@context": {
                    "schema": "http://schema.org/",
                    "prov": "http://www.w3.org/ns/prov#",
                    "wfprov": "http://purl.org/wf4ever/wfprov#",
                    "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
                    "@version": 1.1,
                    "path": "prov:atLocation",
                    "_id": "@id",
                    "_label": "rdfs:label",
                    "_project": {
                      "@id": "schema:isPartOf",
                      "@context": {
                        "schema": "http://schema.org/",
                        "prov": "http://www.w3.org/ns/prov#",
                        "@version": 1.1,
                        "name": "schema:name",
                        "created": "schema:dateCreated",
                        "updated": "schema:dateUpdated",
                        "version": "schema:schemaVersion",
                        "creator": {
                          "@id": "schema:creator",
                          "@context": {
                            "schema": "http://schema.org/",
                            "prov": "http://www.w3.org/ns/prov#",
                            "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
                            "@version": 1.1,
                            "name": "schema:name",
                            "email": "schema:email",
                            "label": "rdfs:label",
                            "affiliation": "schema:affiliation",
                            "alternate_name": "schema:alternateName",
                            "_id": "@id"
                          }
                        },
                        "_id": "@id"
                      }
                    }
                  }
                }
              }
            },
            "@version": 1.1
          },
          {
            "renku.core.models.entities.Collection_wfprov_Artifact": {
              "@id": "http://purl.org/wf4ever/wfprov#Artifact",
              "@context": {
                "prov": "http://www.w3.org/ns/prov#",
                "@version": 1.1,
                "schema": "http://schema.org/",
                "wfprov": "http://purl.org/wf4ever/wfprov#",
                "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
                "path": "prov:atLocation",
                "_id": "@id",
                "_label": "rdfs:label",
                "_project": {
                  "@id": "schema:isPartOf",
                  "@context": {
                    "schema": "http://schema.org/",
                    "prov": "http://www.w3.org/ns/prov#",
                    "@version": 1.1,
                    "name": "schema:name",
                    "created": "schema:dateCreated",
                    "updated": "schema:dateUpdated",
                    "version": "schema:schemaVersion",
                    "creator": {
                      "@id": "schema:creator",
                      "@context": {
                        "schema": "http://schema.org/",
                        "prov": "http://www.w3.org/ns/prov#",
                        "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
                        "@version": 1.1,
                        "name": "schema:name",
                        "email": "schema:email",
                        "label": "rdfs:label",
                        "affiliation": "schema:affiliation",
                        "alternate_name": "schema:alternateName",
                        "_id": "@id"
                      }
                    },
                    "_id": "@id"
                  }
                },
                "members": {
                  "@id": "prov:hadMember",
                  "@context": {
                    "schema": "http://schema.org/",
                    "prov": "http://www.w3.org/ns/prov#",
                    "wfprov": "http://purl.org/wf4ever/wfprov#",
                    "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
                    "@version": 1.1,
                    "path": "prov:atLocation",
                    "_id": "@id",
                    "_label": "rdfs:label",
                    "_project": {
                      "@id": "schema:isPartOf",
                      "@context": {
                        "schema": "http://schema.org/",
                        "prov": "http://www.w3.org/ns/prov#",
                        "@version": 1.1,
                        "name": "schema:name",
                        "created": "schema:dateCreated",
                        "updated": "schema:dateUpdated",
                        "version": "schema:schemaVersion",
                        "creator": {
                          "@id": "schema:creator",
                          "@context": {
                            "schema": "http://schema.org/",
                            "prov": "http://www.w3.org/ns/prov#",
                            "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
                            "@version": 1.1,
                            "name": "schema:name",
                            "email": "schema:email",
                            "label": "rdfs:label",
                            "affiliation": "schema:affiliation",
                            "alternate_name": "schema:alternateName",
                            "_id": "@id"
                          }
                        },
                        "_id": "@id"
                      }
                    }
                  }
                }
              }
            },
            "@version": 1.1
          }
        ]
      },
      "mapped_to": {
        "@id": "prov:mappedTo",
        "@context": {
          "renku": "https://swissdatasciencecenter.github.io/renku-ontology#",
          "prov": "http://www.w3.org/ns/prov#",
          "@version": 1.1,
          "_id": "@id",
          "stream_type": {
            "@id": "renku:streamType",
            "@type": "http://www.w3.org/2001/XMLSchema#string"
          }
        }
      }
    }
  }
}
activity

Return the activity object.

add_subprocess(subprocess, process_order=None)[source]

Adds a subprocess to this run.

classmethod from_factory(factory, client, commit, path)[source]

Creates a Run from a CommandLineToolFactory.

to_argv()[source]

Convert run into argv list.

to_stream_repr()[source]

Input/output stream representation.

update_id_and_label_from_commit_path(client, commit, path)[source]

Updates the _id and _label using supplied commit and path.

Parameters

Represents a workflow template.

class renku.core.models.workflow.parameters.CommandArgument(*, id=None, label=None, position=None, prefix=None, value=None)[source]

An argument to a command that is neither input nor output.

Type:

["renku:CommandArgument", "renku:CommandParameter"]

Context:

{
  "renku": "https://swissdatasciencecenter.github.io/renku-ontology#",
  "prov": "http://www.w3.org/ns/prov#",
  "@version": 1.1,
  "_id": "@id",
  "position": {
    "@id": "renku:position",
    "@type": "http://www.w3.org/2001/XMLSchema#integer"
  },
  "prefix": {
    "@id": "renku:prefix",
    "@type": "http://www.w3.org/2001/XMLSchema#string"
  },
  "value": {
    "@id": "renku:value",
    "@type": "http://www.w3.org/2001/XMLSchema#string"
  }
}
default_id()[source]

Set default id.

default_label()[source]

Set default label.

to_argv()[source]

String representation (sames as cmd argument).

class renku.core.models.workflow.parameters.CommandInput(*, id=None, label=None, position=None, prefix=None, consumes, mapped_to=None)[source]

An input to a command.

Type:

["renku:CommandInput", "renku:CommandParameter"]

Context:

{
  "renku": "https://swissdatasciencecenter.github.io/renku-ontology#",
  "prov": "http://www.w3.org/ns/prov#",
  "@version": 1.1,
  "_id": "@id",
  "position": {
    "@id": "renku:position",
    "@type": "http://www.w3.org/2001/XMLSchema#integer"
  },
  "prefix": {
    "@id": "renku:prefix",
    "@type": "http://www.w3.org/2001/XMLSchema#string"
  },
  "consumes": {
    "@id": "renku:consumes",
    "@context": [
      {
        "renku.core.models.entities.Entity_prov_Entity": {
          "@id": "http://www.w3.org/ns/prov#Entity",
          "@context": {
            "schema": "http://schema.org/",
            "prov": "http://www.w3.org/ns/prov#",
            "wfprov": "http://purl.org/wf4ever/wfprov#",
            "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
            "@version": 1.1,
            "path": "prov:atLocation",
            "_id": "@id",
            "_label": "rdfs:label",
            "_project": {
              "@id": "schema:isPartOf",
              "@context": {
                "schema": "http://schema.org/",
                "prov": "http://www.w3.org/ns/prov#",
                "@version": 1.1,
                "name": "schema:name",
                "created": "schema:dateCreated",
                "updated": "schema:dateUpdated",
                "version": "schema:schemaVersion",
                "creator": {
                  "@id": "schema:creator",
                  "@context": {
                    "schema": "http://schema.org/",
                    "prov": "http://www.w3.org/ns/prov#",
                    "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
                    "@version": 1.1,
                    "name": "schema:name",
                    "email": "schema:email",
                    "label": "rdfs:label",
                    "affiliation": "schema:affiliation",
                    "alternate_name": "schema:alternateName",
                    "_id": "@id"
                  }
                },
                "_id": "@id"
              }
            }
          }
        },
        "@version": 1.1
      },
      {
        "renku.core.models.entities.Entity_wfprov_Artifact": {
          "@id": "http://purl.org/wf4ever/wfprov#Artifact",
          "@context": {
            "schema": "http://schema.org/",
            "prov": "http://www.w3.org/ns/prov#",
            "wfprov": "http://purl.org/wf4ever/wfprov#",
            "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
            "@version": 1.1,
            "path": "prov:atLocation",
            "_id": "@id",
            "_label": "rdfs:label",
            "_project": {
              "@id": "schema:isPartOf",
              "@context": {
                "schema": "http://schema.org/",
                "prov": "http://www.w3.org/ns/prov#",
                "@version": 1.1,
                "name": "schema:name",
                "created": "schema:dateCreated",
                "updated": "schema:dateUpdated",
                "version": "schema:schemaVersion",
                "creator": {
                  "@id": "schema:creator",
                  "@context": {
                    "schema": "http://schema.org/",
                    "prov": "http://www.w3.org/ns/prov#",
                    "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
                    "@version": 1.1,
                    "name": "schema:name",
                    "email": "schema:email",
                    "label": "rdfs:label",
                    "affiliation": "schema:affiliation",
                    "alternate_name": "schema:alternateName",
                    "_id": "@id"
                  }
                },
                "_id": "@id"
              }
            }
          }
        },
        "@version": 1.1
      },
      {
        "renku.core.models.entities.Collection_prov_Collection": {
          "@id": "http://www.w3.org/ns/prov#Collection",
          "@context": {
            "prov": "http://www.w3.org/ns/prov#",
            "@version": 1.1,
            "schema": "http://schema.org/",
            "wfprov": "http://purl.org/wf4ever/wfprov#",
            "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
            "path": "prov:atLocation",
            "_id": "@id",
            "_label": "rdfs:label",
            "_project": {
              "@id": "schema:isPartOf",
              "@context": {
                "schema": "http://schema.org/",
                "prov": "http://www.w3.org/ns/prov#",
                "@version": 1.1,
                "name": "schema:name",
                "created": "schema:dateCreated",
                "updated": "schema:dateUpdated",
                "version": "schema:schemaVersion",
                "creator": {
                  "@id": "schema:creator",
                  "@context": {
                    "schema": "http://schema.org/",
                    "prov": "http://www.w3.org/ns/prov#",
                    "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
                    "@version": 1.1,
                    "name": "schema:name",
                    "email": "schema:email",
                    "label": "rdfs:label",
                    "affiliation": "schema:affiliation",
                    "alternate_name": "schema:alternateName",
                    "_id": "@id"
                  }
                },
                "_id": "@id"
              }
            },
            "members": {
              "@id": "prov:hadMember",
              "@context": {
                "schema": "http://schema.org/",
                "prov": "http://www.w3.org/ns/prov#",
                "wfprov": "http://purl.org/wf4ever/wfprov#",
                "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
                "@version": 1.1,
                "path": "prov:atLocation",
                "_id": "@id",
                "_label": "rdfs:label",
                "_project": {
                  "@id": "schema:isPartOf",
                  "@context": {
                    "schema": "http://schema.org/",
                    "prov": "http://www.w3.org/ns/prov#",
                    "@version": 1.1,
                    "name": "schema:name",
                    "created": "schema:dateCreated",
                    "updated": "schema:dateUpdated",
                    "version": "schema:schemaVersion",
                    "creator": {
                      "@id": "schema:creator",
                      "@context": {
                        "schema": "http://schema.org/",
                        "prov": "http://www.w3.org/ns/prov#",
                        "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
                        "@version": 1.1,
                        "name": "schema:name",
                        "email": "schema:email",
                        "label": "rdfs:label",
                        "affiliation": "schema:affiliation",
                        "alternate_name": "schema:alternateName",
                        "_id": "@id"
                      }
                    },
                    "_id": "@id"
                  }
                }
              }
            }
          }
        },
        "@version": 1.1
      },
      {
        "renku.core.models.entities.Collection_prov_Entity": {
          "@id": "http://www.w3.org/ns/prov#Entity",
          "@context": {
            "prov": "http://www.w3.org/ns/prov#",
            "@version": 1.1,
            "schema": "http://schema.org/",
            "wfprov": "http://purl.org/wf4ever/wfprov#",
            "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
            "path": "prov:atLocation",
            "_id": "@id",
            "_label": "rdfs:label",
            "_project": {
              "@id": "schema:isPartOf",
              "@context": {
                "schema": "http://schema.org/",
                "prov": "http://www.w3.org/ns/prov#",
                "@version": 1.1,
                "name": "schema:name",
                "created": "schema:dateCreated",
                "updated": "schema:dateUpdated",
                "version": "schema:schemaVersion",
                "creator": {
                  "@id": "schema:creator",
                  "@context": {
                    "schema": "http://schema.org/",
                    "prov": "http://www.w3.org/ns/prov#",
                    "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
                    "@version": 1.1,
                    "name": "schema:name",
                    "email": "schema:email",
                    "label": "rdfs:label",
                    "affiliation": "schema:affiliation",
                    "alternate_name": "schema:alternateName",
                    "_id": "@id"
                  }
                },
                "_id": "@id"
              }
            },
            "members": {
              "@id": "prov:hadMember",
              "@context": {
                "schema": "http://schema.org/",
                "prov": "http://www.w3.org/ns/prov#",
                "wfprov": "http://purl.org/wf4ever/wfprov#",
                "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
                "@version": 1.1,
                "path": "prov:atLocation",
                "_id": "@id",
                "_label": "rdfs:label",
                "_project": {
                  "@id": "schema:isPartOf",
                  "@context": {
                    "schema": "http://schema.org/",
                    "prov": "http://www.w3.org/ns/prov#",
                    "@version": 1.1,
                    "name": "schema:name",
                    "created": "schema:dateCreated",
                    "updated": "schema:dateUpdated",
                    "version": "schema:schemaVersion",
                    "creator": {
                      "@id": "schema:creator",
                      "@context": {
                        "schema": "http://schema.org/",
                        "prov": "http://www.w3.org/ns/prov#",
                        "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
                        "@version": 1.1,
                        "name": "schema:name",
                        "email": "schema:email",
                        "label": "rdfs:label",
                        "affiliation": "schema:affiliation",
                        "alternate_name": "schema:alternateName",
                        "_id": "@id"
                      }
                    },
                    "_id": "@id"
                  }
                }
              }
            }
          }
        },
        "@version": 1.1
      },
      {
        "renku.core.models.entities.Collection_wfprov_Artifact": {
          "@id": "http://purl.org/wf4ever/wfprov#Artifact",
          "@context": {
            "prov": "http://www.w3.org/ns/prov#",
            "@version": 1.1,
            "schema": "http://schema.org/",
            "wfprov": "http://purl.org/wf4ever/wfprov#",
            "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
            "path": "prov:atLocation",
            "_id": "@id",
            "_label": "rdfs:label",
            "_project": {
              "@id": "schema:isPartOf",
              "@context": {
                "schema": "http://schema.org/",
                "prov": "http://www.w3.org/ns/prov#",
                "@version": 1.1,
                "name": "schema:name",
                "created": "schema:dateCreated",
                "updated": "schema:dateUpdated",
                "version": "schema:schemaVersion",
                "creator": {
                  "@id": "schema:creator",
                  "@context": {
                    "schema": "http://schema.org/",
                    "prov": "http://www.w3.org/ns/prov#",
                    "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
                    "@version": 1.1,
                    "name": "schema:name",
                    "email": "schema:email",
                    "label": "rdfs:label",
                    "affiliation": "schema:affiliation",
                    "alternate_name": "schema:alternateName",
                    "_id": "@id"
                  }
                },
                "_id": "@id"
              }
            },
            "members": {
              "@id": "prov:hadMember",
              "@context": {
                "schema": "http://schema.org/",
                "prov": "http://www.w3.org/ns/prov#",
                "wfprov": "http://purl.org/wf4ever/wfprov#",
                "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
                "@version": 1.1,
                "path": "prov:atLocation",
                "_id": "@id",
                "_label": "rdfs:label",
                "_project": {
                  "@id": "schema:isPartOf",
                  "@context": {
                    "schema": "http://schema.org/",
                    "prov": "http://www.w3.org/ns/prov#",
                    "@version": 1.1,
                    "name": "schema:name",
                    "created": "schema:dateCreated",
                    "updated": "schema:dateUpdated",
                    "version": "schema:schemaVersion",
                    "creator": {
                      "@id": "schema:creator",
                      "@context": {
                        "schema": "http://schema.org/",
                        "prov": "http://www.w3.org/ns/prov#",
                        "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
                        "@version": 1.1,
                        "name": "schema:name",
                        "email": "schema:email",
                        "label": "rdfs:label",
                        "affiliation": "schema:affiliation",
                        "alternate_name": "schema:alternateName",
                        "_id": "@id"
                      }
                    },
                    "_id": "@id"
                  }
                }
              }
            }
          }
        },
        "@version": 1.1
      }
    ]
  },
  "mapped_to": {
    "@id": "prov:mappedTo",
    "@context": {
      "renku": "https://swissdatasciencecenter.github.io/renku-ontology#",
      "prov": "http://www.w3.org/ns/prov#",
      "@version": 1.1,
      "_id": "@id",
      "stream_type": {
        "@id": "renku:streamType",
        "@type": "http://www.w3.org/2001/XMLSchema#string"
      }
    }
  }
}
default_id()[source]

Set default id.

default_label()[source]

Set default label.

to_argv()[source]

String representation (sames as cmd argument).

to_stream_repr()[source]

Input stream representation.

class renku.core.models.workflow.parameters.CommandOutput(*, id=None, label=None, position=None, prefix=None, create_folder=False, produces, mapped_to=None)[source]

An output of a command.

Type:

["renku:CommandOutput", "renku:CommandParameter"]

Context:

{
  "renku": "https://swissdatasciencecenter.github.io/renku-ontology#",
  "prov": "http://www.w3.org/ns/prov#",
  "@version": 1.1,
  "_id": "@id",
  "position": {
    "@id": "renku:position",
    "@type": "http://www.w3.org/2001/XMLSchema#integer"
  },
  "prefix": {
    "@id": "renku:prefix",
    "@type": "http://www.w3.org/2001/XMLSchema#string"
  },
  "create_folder": "renku:createFolder",
  "produces": {
    "@id": "renku:produces",
    "@context": [
      {
        "renku.core.models.entities.Entity_prov_Entity": {
          "@id": "http://www.w3.org/ns/prov#Entity",
          "@context": {
            "schema": "http://schema.org/",
            "prov": "http://www.w3.org/ns/prov#",
            "wfprov": "http://purl.org/wf4ever/wfprov#",
            "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
            "@version": 1.1,
            "path": "prov:atLocation",
            "_id": "@id",
            "_label": "rdfs:label",
            "_project": {
              "@id": "schema:isPartOf",
              "@context": {
                "schema": "http://schema.org/",
                "prov": "http://www.w3.org/ns/prov#",
                "@version": 1.1,
                "name": "schema:name",
                "created": "schema:dateCreated",
                "updated": "schema:dateUpdated",
                "version": "schema:schemaVersion",
                "creator": {
                  "@id": "schema:creator",
                  "@context": {
                    "schema": "http://schema.org/",
                    "prov": "http://www.w3.org/ns/prov#",
                    "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
                    "@version": 1.1,
                    "name": "schema:name",
                    "email": "schema:email",
                    "label": "rdfs:label",
                    "affiliation": "schema:affiliation",
                    "alternate_name": "schema:alternateName",
                    "_id": "@id"
                  }
                },
                "_id": "@id"
              }
            }
          }
        },
        "@version": 1.1
      },
      {
        "renku.core.models.entities.Entity_wfprov_Artifact": {
          "@id": "http://purl.org/wf4ever/wfprov#Artifact",
          "@context": {
            "schema": "http://schema.org/",
            "prov": "http://www.w3.org/ns/prov#",
            "wfprov": "http://purl.org/wf4ever/wfprov#",
            "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
            "@version": 1.1,
            "path": "prov:atLocation",
            "_id": "@id",
            "_label": "rdfs:label",
            "_project": {
              "@id": "schema:isPartOf",
              "@context": {
                "schema": "http://schema.org/",
                "prov": "http://www.w3.org/ns/prov#",
                "@version": 1.1,
                "name": "schema:name",
                "created": "schema:dateCreated",
                "updated": "schema:dateUpdated",
                "version": "schema:schemaVersion",
                "creator": {
                  "@id": "schema:creator",
                  "@context": {
                    "schema": "http://schema.org/",
                    "prov": "http://www.w3.org/ns/prov#",
                    "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
                    "@version": 1.1,
                    "name": "schema:name",
                    "email": "schema:email",
                    "label": "rdfs:label",
                    "affiliation": "schema:affiliation",
                    "alternate_name": "schema:alternateName",
                    "_id": "@id"
                  }
                },
                "_id": "@id"
              }
            }
          }
        },
        "@version": 1.1
      },
      {
        "renku.core.models.entities.Collection_prov_Collection": {
          "@id": "http://www.w3.org/ns/prov#Collection",
          "@context": {
            "prov": "http://www.w3.org/ns/prov#",
            "@version": 1.1,
            "schema": "http://schema.org/",
            "wfprov": "http://purl.org/wf4ever/wfprov#",
            "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
            "path": "prov:atLocation",
            "_id": "@id",
            "_label": "rdfs:label",
            "_project": {
              "@id": "schema:isPartOf",
              "@context": {
                "schema": "http://schema.org/",
                "prov": "http://www.w3.org/ns/prov#",
                "@version": 1.1,
                "name": "schema:name",
                "created": "schema:dateCreated",
                "updated": "schema:dateUpdated",
                "version": "schema:schemaVersion",
                "creator": {
                  "@id": "schema:creator",
                  "@context": {
                    "schema": "http://schema.org/",
                    "prov": "http://www.w3.org/ns/prov#",
                    "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
                    "@version": 1.1,
                    "name": "schema:name",
                    "email": "schema:email",
                    "label": "rdfs:label",
                    "affiliation": "schema:affiliation",
                    "alternate_name": "schema:alternateName",
                    "_id": "@id"
                  }
                },
                "_id": "@id"
              }
            },
            "members": {
              "@id": "prov:hadMember",
              "@context": {
                "schema": "http://schema.org/",
                "prov": "http://www.w3.org/ns/prov#",
                "wfprov": "http://purl.org/wf4ever/wfprov#",
                "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
                "@version": 1.1,
                "path": "prov:atLocation",
                "_id": "@id",
                "_label": "rdfs:label",
                "_project": {
                  "@id": "schema:isPartOf",
                  "@context": {
                    "schema": "http://schema.org/",
                    "prov": "http://www.w3.org/ns/prov#",
                    "@version": 1.1,
                    "name": "schema:name",
                    "created": "schema:dateCreated",
                    "updated": "schema:dateUpdated",
                    "version": "schema:schemaVersion",
                    "creator": {
                      "@id": "schema:creator",
                      "@context": {
                        "schema": "http://schema.org/",
                        "prov": "http://www.w3.org/ns/prov#",
                        "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
                        "@version": 1.1,
                        "name": "schema:name",
                        "email": "schema:email",
                        "label": "rdfs:label",
                        "affiliation": "schema:affiliation",
                        "alternate_name": "schema:alternateName",
                        "_id": "@id"
                      }
                    },
                    "_id": "@id"
                  }
                }
              }
            }
          }
        },
        "@version": 1.1
      },
      {
        "renku.core.models.entities.Collection_prov_Entity": {
          "@id": "http://www.w3.org/ns/prov#Entity",
          "@context": {
            "prov": "http://www.w3.org/ns/prov#",
            "@version": 1.1,
            "schema": "http://schema.org/",
            "wfprov": "http://purl.org/wf4ever/wfprov#",
            "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
            "path": "prov:atLocation",
            "_id": "@id",
            "_label": "rdfs:label",
            "_project": {
              "@id": "schema:isPartOf",
              "@context": {
                "schema": "http://schema.org/",
                "prov": "http://www.w3.org/ns/prov#",
                "@version": 1.1,
                "name": "schema:name",
                "created": "schema:dateCreated",
                "updated": "schema:dateUpdated",
                "version": "schema:schemaVersion",
                "creator": {
                  "@id": "schema:creator",
                  "@context": {
                    "schema": "http://schema.org/",
                    "prov": "http://www.w3.org/ns/prov#",
                    "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
                    "@version": 1.1,
                    "name": "schema:name",
                    "email": "schema:email",
                    "label": "rdfs:label",
                    "affiliation": "schema:affiliation",
                    "alternate_name": "schema:alternateName",
                    "_id": "@id"
                  }
                },
                "_id": "@id"
              }
            },
            "members": {
              "@id": "prov:hadMember",
              "@context": {
                "schema": "http://schema.org/",
                "prov": "http://www.w3.org/ns/prov#",
                "wfprov": "http://purl.org/wf4ever/wfprov#",
                "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
                "@version": 1.1,
                "path": "prov:atLocation",
                "_id": "@id",
                "_label": "rdfs:label",
                "_project": {
                  "@id": "schema:isPartOf",
                  "@context": {
                    "schema": "http://schema.org/",
                    "prov": "http://www.w3.org/ns/prov#",
                    "@version": 1.1,
                    "name": "schema:name",
                    "created": "schema:dateCreated",
                    "updated": "schema:dateUpdated",
                    "version": "schema:schemaVersion",
                    "creator": {
                      "@id": "schema:creator",
                      "@context": {
                        "schema": "http://schema.org/",
                        "prov": "http://www.w3.org/ns/prov#",
                        "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
                        "@version": 1.1,
                        "name": "schema:name",
                        "email": "schema:email",
                        "label": "rdfs:label",
                        "affiliation": "schema:affiliation",
                        "alternate_name": "schema:alternateName",
                        "_id": "@id"
                      }
                    },
                    "_id": "@id"
                  }
                }
              }
            }
          }
        },
        "@version": 1.1
      },
      {
        "renku.core.models.entities.Collection_wfprov_Artifact": {
          "@id": "http://purl.org/wf4ever/wfprov#Artifact",
          "@context": {
            "prov": "http://www.w3.org/ns/prov#",
            "@version": 1.1,
            "schema": "http://schema.org/",
            "wfprov": "http://purl.org/wf4ever/wfprov#",
            "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
            "path": "prov:atLocation",
            "_id": "@id",
            "_label": "rdfs:label",
            "_project": {
              "@id": "schema:isPartOf",
              "@context": {
                "schema": "http://schema.org/",
                "prov": "http://www.w3.org/ns/prov#",
                "@version": 1.1,
                "name": "schema:name",
                "created": "schema:dateCreated",
                "updated": "schema:dateUpdated",
                "version": "schema:schemaVersion",
                "creator": {
                  "@id": "schema:creator",
                  "@context": {
                    "schema": "http://schema.org/",
                    "prov": "http://www.w3.org/ns/prov#",
                    "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
                    "@version": 1.1,
                    "name": "schema:name",
                    "email": "schema:email",
                    "label": "rdfs:label",
                    "affiliation": "schema:affiliation",
                    "alternate_name": "schema:alternateName",
                    "_id": "@id"
                  }
                },
                "_id": "@id"
              }
            },
            "members": {
              "@id": "prov:hadMember",
              "@context": {
                "schema": "http://schema.org/",
                "prov": "http://www.w3.org/ns/prov#",
                "wfprov": "http://purl.org/wf4ever/wfprov#",
                "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
                "@version": 1.1,
                "path": "prov:atLocation",
                "_id": "@id",
                "_label": "rdfs:label",
                "_project": {
                  "@id": "schema:isPartOf",
                  "@context": {
                    "schema": "http://schema.org/",
                    "prov": "http://www.w3.org/ns/prov#",
                    "@version": 1.1,
                    "name": "schema:name",
                    "created": "schema:dateCreated",
                    "updated": "schema:dateUpdated",
                    "version": "schema:schemaVersion",
                    "creator": {
                      "@id": "schema:creator",
                      "@context": {
                        "schema": "http://schema.org/",
                        "prov": "http://www.w3.org/ns/prov#",
                        "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
                        "@version": 1.1,
                        "name": "schema:name",
                        "email": "schema:email",
                        "label": "rdfs:label",
                        "affiliation": "schema:affiliation",
                        "alternate_name": "schema:alternateName",
                        "_id": "@id"
                      }
                    },
                    "_id": "@id"
                  }
                }
              }
            }
          }
        },
        "@version": 1.1
      }
    ]
  },
  "mapped_to": {
    "@id": "prov:mappedTo",
    "@context": {
      "renku": "https://swissdatasciencecenter.github.io/renku-ontology#",
      "prov": "http://www.w3.org/ns/prov#",
      "@version": 1.1,
      "_id": "@id",
      "stream_type": {
        "@id": "renku:streamType",
        "@type": "http://www.w3.org/2001/XMLSchema#string"
      }
    }
  }
}
default_id()[source]

Set default id.

default_label()[source]

Set default label.

to_argv()[source]

String representation (sames as cmd argument).

to_stream_repr()[source]

Input stream representation.

class renku.core.models.workflow.parameters.CommandParameter(*, id=None, label=None, position=None, prefix=None)[source]

Represents a parameter for an execution template.

Type:

"renku:CommandParameter"

Context:

{
  "renku": "https://swissdatasciencecenter.github.io/renku-ontology#",
  "prov": "http://www.w3.org/ns/prov#",
  "@version": 1.1,
  "_id": "@id",
  "position": {
    "@id": "renku:position",
    "@type": "http://www.w3.org/2001/XMLSchema#integer"
  },
  "prefix": {
    "@id": "renku:prefix",
    "@type": "http://www.w3.org/2001/XMLSchema#string"
  }
}
class renku.core.models.workflow.parameters.MappedIOStream(*, id=NOTHING, label=None, stream_type)[source]

Represents an IO stream (stdin, stdout, stderr).

Type:

"renku:IOStream"

Context:

{
  "renku": "https://swissdatasciencecenter.github.io/renku-ontology#",
  "prov": "http://www.w3.org/ns/prov#",
  "@version": 1.1,
  "_id": "@id",
  "stream_type": {
    "@id": "renku:streamType",
    "@type": "http://www.w3.org/2001/XMLSchema#string"
  }
}

Renku Workflow Conversion

Renku allows conversion of tracked workflows to runnable workflows in supported tools (Currently CWL)

CWL

Converter for workflows to cwl.

class renku.core.models.workflow.converters.cwl.CWLConverter[source]

Converts a Run to cwl file(s).

static convert(run, client, path=None)[source]

Convert the workflow to one ore more .cwl files.