Skip to content

Commit 5d9a08e

Browse files
author
Peter Amstutz
committed
Use makerdf for --print-rdf
1 parent ce00252 commit 5d9a08e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

schema_salad/main.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@
2424

2525
def printrdf(workflow, wf, ctx, sr):
2626
# type: (str, Union[List, Dict[Any, Any], str, unicode], Dict[unicode, Any], str) -> None
27-
g = Graph().parse(data=json.dumps(wf), format='json-ld',
28-
location=workflow, context=ctx)
27+
g = jsonld_context.makerdf(workflow, wf, ctx)
2928
print(g.serialize(format=sr))
3029

3130

0 commit comments

Comments
 (0)