Skip to content

Commit

Permalink
Improt WRROC
Browse files Browse the repository at this point in the history
* Change HowToStep position to string
* Remove nextflow.config object from OrganizeAction
* add author to root data entity
* passes roc-validator with severity REQUIRED

Signed-off-by: fbartusch <[email protected]>
  • Loading branch information
fbartusch committed Oct 27, 2024
1 parent 5e2964d commit 4295943
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions plugins/nf-prov/src/main/nextflow/prov/WrrocRenderer.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ class WrrocRenderer implements Renderer {
"@id" : metadata.projectName + "#main/" + process.getName(),
"@type" : "HowToStep",
"workExample": ["@id": "#" + process.ownerScript.toString()],
"position" : process.getId()
"position" : process.getId().toString()
]
}

Expand Down Expand Up @@ -407,6 +407,9 @@ class WrrocRenderer implements Renderer {
[
"@id" : "./",
"@type" : "Dataset",
"author" : ["@id": agent.get("@id").toString()],
//TODO Add publisher
//"publisher" : "",
"datePublished": getDatePublished(),
"conformsTo" : [
["@id": "https://w3id.org/ro/wfrun/process/0.1"],
Expand Down Expand Up @@ -494,8 +497,7 @@ class WrrocRenderer implements Renderer {
"instrument": ["@id": "#${softwareApplicationId}"],
"name" : "Run of Nextflow ${nextflowVersion}",
"object" : [
*controlActions.collect(action -> ["@id": action["@id"]]),
["@id": "nextflow.config"]
*controlActions.collect(action -> ["@id": action["@id"]])
],
"result" : ["@id": "#${session.uniqueId}"],
"startTime" : dateStarted,
Expand Down

0 comments on commit 4295943

Please sign in to comment.