We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 146d834 commit b96eea9Copy full SHA for b96eea9
quit/tools/update.py
@@ -56,9 +56,8 @@ def evalLoad(ctx, u):
56
res["source"] = u.iri
57
res["delta"] = {}
58
59
- graphiri = u.graphiri
60
if not u.graphiri:
61
- graphiri = u.iri
+ raise UnSupportedQuery("For load queries we need a iriref for a target graph")
62
63
success = False
64
loadedGraph = None
@@ -80,10 +79,10 @@ def evalLoad(ctx, u):
80
79
"Could not load %s as either RDF/XML, N3, Turtle, or NTriples" % (
81
u.iri))
82
83
- graph = ctx.dataset.get_context(graphiri)
+ graph = ctx.dataset.get_context(u.graphiri)
84
graph += loadedGraph
85
86
- _append(res["delta"], graphiri, 'additions', loadedGraph)
+ _append(res["delta"], u.graphiri, 'additions', loadedGraph)
87
88
return res
89
0 commit comments