Skip to content

Commit 4adcc6c

Browse files
Add string representation to WorkflowRetroProv
1 parent f9b6952 commit 4adcc6c

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

fairworkflows/prov.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,9 @@ def __init__(self, prov_was_derived_from, log_message: str):
1616
class WorkflowRetroProv(RetroProv):
1717
def __init__(self, prov_was_derived_from, log_message):
1818
super().__init__(prov_was_derived_from, log_message)
19+
20+
def __str__(self):
21+
"""String representation."""
22+
s = f'Workflow retrospective provenance.\n'
23+
s += self._rdf.serialize(format='trig').decode('utf-8')
24+
return s

0 commit comments

Comments
 (0)