common-workflow-language / common-workflow-language/cwltool

Wrong rdfs namespace in cwltool --print-rdf

Open
#427 10 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
376
Forks
255
Avg merge
2d 7h
Merged PRs (30d)
12

Description

## Expected Behavior

cwltool --print-rdf should use conventional valid namespaces where they exist.

## Actual Behavior

Wrong prefix for the `rdfs` namespace, seems to be caused by `` being interpreted as an URI instead of a qname mapped to the rdfs namespace `http://www.w3.org/2000/01/rdf-schema# `

```turtle
@prefix ns1: .
```

## Workflow Code

https://rawgit.com/common-workflow-language/workflows/master/workflows/hello/hello.cwl

## Full Traceback

cwltool --print-rdf https://rawgit.com/common-workflow-language/workflows/master/workflows/hello/hello.cwl

```turtle
@prefix SoftwareRequirement: .
@prefix Workflow: .
@prefix cwl: .
@prefix ns1: .
@prefix rdf: .
@prefix rdfs: .
..
cwl:default "Hello World" ;
cwl:inputBinding [ CommandLineBinding:position 1 ],
[ CommandLineBinding:position 1 ] ;
sld:type xsd:string ;
ns1:comment "The message to print" .
```

## Your Environment
* cwltool version: 1.0.20170525215327

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.