From 5d9a08e1ba56cb6191520d9fc39622bddb7dce31 Mon Sep 17 00:00:00 2001 From: Peter Amstutz Date: Thu, 23 Jun 2016 09:05:47 -0400 Subject: [PATCH] Use makerdf for --print-rdf --- schema_salad/main.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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))