File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
src/main/java/org/commonwl/view/cwl Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -250,7 +250,8 @@ public Workflow parseWorkflowWithCwltool(Workflow basicModel,
250
250
251
251
// Get paths to workflow
252
252
String url = basicModel .getIdentifier ();
253
- String workflowFileURI = workflowFile .toUri ().toString ();
253
+ String workflowFileURI = workflowFile .toAbsolutePath ().toUri ().toString ();
254
+ String workTreeUri = workTree .toAbsolutePath ().toUri ().toString ();
254
255
String localPath = workflowFileURI ;
255
256
String gitPath = gitDetails .getPath ();
256
257
if (packedWorkflowID != null ) {
@@ -265,8 +266,10 @@ public Workflow parseWorkflowWithCwltool(Workflow basicModel,
265
266
// Get RDF representation from cwltool
266
267
if (!rdfService .graphExists (url )) {
267
268
String rdf = cwlTool .getRDF (localPath );
268
- rdf = rdf .replace (workflowFileURI ,
269
- "https://w3id.org/cwl/view/git/" + latestCommit );
269
+ // Replace /tmp/123123 with permalink base
270
+ // NOTE: We do not just replace workflowFileURI, all referenced files will also get rewritten
271
+ rdf = rdf .replace (workTreeUri ,
272
+ "https://w3id.org/cwl/view/git/" + latestCommit + "/" );
270
273
// Workaround for common-workflow-language/cwltool#427
271
274
rdf = rdf .replace ("<rdfs:>" , "<http://www.w3.org/2000/01/rdf-schema#>" );
272
275
You can’t perform that action at this time.
0 commit comments