title: Store add_graph appears to do nothing with rdflib and Fuseki
body: <p>I have a Fuseki endpoint and want to use the python rdflib library to add graphs to it.</p>
  
  <p>I connect to the Fuseki server as follows:</p>
  
  <pre><code>import rdflib
  
  from rdflib import Graph, Literal, URIRef
  from rdflib.plugins.stores import sparqlstore
  
  query_endpoint = 'http://localhost:3030/dsone/query'
  update_endpoint = 'http://localhost:3030/dsone/update'
  store = sparqlstore.SPARQLUpdateStore()
  store.open((query_endpoint, update_endpoint))
  
  </code></pre>
  
  <p>Then I set-up an rdflib ConjunctiveGraph as follows:</p>
  
  <pre><code>g = rdflib.ConjunctiveGraph(identifier=URIRef("http://localhost/dsone/g3"))
  
  g.parse(data="""
  @base &lt;http://example.com/base&gt; .
  @prefix : &lt;#&gt; .
  &lt;&gt; a :document1 .
  """, format='turtle', publicID = "http://example.com/g3")
  </code></pre>
  
  <p><code>g</code> now contains one triple:</p>
  
  <pre><code>for r in g:
      print(r)
  </code></pre>
  
  <p>Which results in:</p>
  
  <blockquote>
    <p>(rdflib.term.URIRef('<a href="http://example.com/base" rel="nofollow noreferrer">http://example.com/base</a>'), rdflib.term.URIRef('<a href="http://www.w3.org/1999/02/22-rdf-syntax-ns#type" rel="nofollow noreferrer">http://www.w3.org/1999/02/22-rdf-syntax-ns#type</a>'), rdflib.term.URIRef('<a href="http://example.com/base#document1" rel="nofollow noreferrer">http://example.com/base#document1</a>'))</p>
  </blockquote>
  
  <p>Now I add the graph to the store with:</p>
  
  <pre><code>store.add_graph(g)
  </code></pre>
  
  <p>The server shows a <code>200</code> return code.  When I do the insert directly over REST, it returns 204 - which could be a clue.</p>
  
  <p>Now there is <em>nothing</em> in the store.</p>
  
  <pre><code>for r in store.query("""
  select ?g (count(*) as ?count) {graph ?g {?s ?p ?o .}} group by ?g
  """):
      print(r)
  </code></pre>
  
  <p>Which has no output.</p>
  
  <p>As far as I can tell <code>store.add_graph(g)</code> is doing nothing.</p>
  
  <p>Any ideas?</p>