@@ -189,10 +189,10 @@ def fix_jsonld_ids(obj, ids):
189
189
fix_jsonld_ids (entry , ids )
190
190
191
191
def makerdf (workflow , wf , ctx , graph = None ):
192
- # type: (Union[str, unicode], Union[List[Dict[unicode, Any]], Dict[unicode, Any]], Loader.ContextType) -> Graph
192
+ # type: (Union[str, unicode], Union[List[Dict[unicode, Any]], Dict[unicode, Any]], Loader.ContextType, Graph ) -> Graph
193
193
prefixes = {}
194
194
idfields = []
195
- for k ,v in ctx .iteritems ():
195
+ for k , v in ctx .iteritems ():
196
196
if isinstance (v , dict ):
197
197
url = v ["@id" ]
198
198
else :
@@ -220,10 +220,10 @@ def makerdf(workflow, wf, ctx, graph=None):
220
220
g .parse (data = json .dumps (wf ), format = 'json-ld' , location = workflow )
221
221
222
222
# Bug in json-ld loader causes @id fields to be added to the graph
223
- for s ,p , o in g .triples ((None , URIRef ("@id" ), None )):
223
+ for s , p , o in g .triples ((None , URIRef ("@id" ), None )):
224
224
g .remove ((s , p , o ))
225
225
226
- for k2 ,v2 in prefixes .iteritems ():
226
+ for k2 , v2 in prefixes .iteritems ():
227
227
g .namespace_manager .bind (k2 , v2 )
228
228
229
229
return g
0 commit comments