Skip to content

Commit 87d4d20

Browse files
committed
Use hyphen in uri to conform to URI rules
1 parent 70a57f7 commit 87d4d20

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

fairworkflows/fairstep.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ def _modify_function(func):
437437
inputs = _extract_inputs_from_function(func)
438438
outputs = _extract_outputs_from_function(func)
439439

440-
func._fairstep = FairStep(uri='www.example.org/unpublished-'+func.__name__,
440+
func._fairstep = FairStep(uri='http://www.example.org/unpublished-'+func.__name__,
441441
label=label,
442442
description=description,
443443
is_pplan_step=is_pplan_step,

fairworkflows/fairworkflow.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,10 @@ def from_noodles_promise(cls, noodles_promise, description: str = None, label: s
9595
to_uri = rdflib.URIRef(linked_step.uri + '#' + linked_var_name)
9696
self._rdf.add((from_uri, namespaces.PPLAN.bindsTo, to_uri))
9797

98+
precedes_triple = (rdflib.URIRef(current_step.uri), namespaces.DUL.precedes, rdflib.URIRef(linked_step.uri))
99+
if precedes_triple not in self._rdf:
100+
self._rdf.add(precedes_triple)
101+
98102
if len(workflow.links[i]) == 0:
99103
to_uri = rdflib.BNode('result')
100104
self._rdf.add((from_uri, namespaces.PPLAN.bindsTo, to_uri))

0 commit comments

Comments
 (0)