diff --git a/schema_salad/main.py b/schema_salad/main.py index 109e225ba..5cf0f357b 100644 --- a/schema_salad/main.py +++ b/schema_salad/main.py @@ -24,8 +24,7 @@ def printrdf(workflow, wf, ctx, sr): # type: (str, Union[List, Dict[Any, Any], str, unicode], Dict[unicode, Any], str) -> None - g = Graph().parse(data=json.dumps(wf), format='json-ld', - location=workflow, context=ctx) + g = jsonld_context.makerdf(workflow, wf, ctx) print(g.serialize(format=sr))