File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/main/java/org/commonwl/view/cwl Expand file tree Collapse file tree 1 file changed +3
-2
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 localPath = workflowFile .toAbsolutePath ().toString ();
253
+ String workflowFileURI = workflowFile .toUri ().toString ();
254
+ String localPath = workflowFileURI ;
254
255
String gitPath = gitDetails .getPath ();
255
256
if (packedWorkflowID != null ) {
256
257
if (packedWorkflowID .charAt (0 ) != '#' ) {
@@ -264,7 +265,7 @@ public Workflow parseWorkflowWithCwltool(Workflow basicModel,
264
265
// Get RDF representation from cwltool
265
266
if (!rdfService .graphExists (url )) {
266
267
String rdf = cwlTool .getRDF (localPath );
267
- rdf = rdf .replace ("file://" + workTree . toAbsolutePath (). toString () ,
268
+ rdf = rdf .replace (workflowFileURI ,
268
269
"https://w3id.org/cwl/view/git/" + latestCommit );
269
270
// Workaround for common-workflow-language/cwltool#427
270
271
rdf = rdf .replace ("<rdfs:>" , "<http://www.w3.org/2000/01/rdf-schema#>" );
You can’t perform that action at this time.
0 commit comments