From 42959437d1614cef355bd3da36135a51a88d61dd Mon Sep 17 00:00:00 2001 From: fbartusch Date: Sun, 27 Oct 2024 10:13:44 +0100 Subject: [PATCH] Improt WRROC * 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 --- .../nf-prov/src/main/nextflow/prov/WrrocRenderer.groovy | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/plugins/nf-prov/src/main/nextflow/prov/WrrocRenderer.groovy b/plugins/nf-prov/src/main/nextflow/prov/WrrocRenderer.groovy index 711d3de..84f8431 100755 --- a/plugins/nf-prov/src/main/nextflow/prov/WrrocRenderer.groovy +++ b/plugins/nf-prov/src/main/nextflow/prov/WrrocRenderer.groovy @@ -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() ] } @@ -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"], @@ -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,