Skip to content

Commit 009689f

Browse files
committed
Added default_graph for writing to e.g. Virtuoso
Fixing #15
1 parent 73028bc commit 009689f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

surf/plugin/sparql_protocol/writer.py

+4
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,10 @@ def __init__(self, reader, *args, **kwargs):
143143

144144
self._sparql_wrapper.setMethod("POST")
145145

146+
default_graph = kwargs.get('default_graph',None)
147+
if default_graph:
148+
self._sparql_wrapper.addDefaultGraph(default_graph)
149+
146150
@property
147151
def endpoint(self):
148152
return self._endpoint

0 commit comments

Comments
 (0)