title: Python: Using RDFLIB to graph a Sesame database
body: <p>Is it possible to draw a graph of a Sesame RDF database using RDFLIB? 
  This is what I tried: </p>
  
  <pre><code>endpoint = "http://127.0.0.1:8080/openrdf-workbench/repositories/movies/explore?resource=%3Cfile%3A%2F%2Fmovies_export.rdf%3E"
  
  from rdflib import Graph
  g = Graph()
  g.parse(endpoint) 
  </code></pre>
  
  <p>This is the error: </p>
  
  <pre><code>Traceback (most recent call last):
    File "C:\Software\rdflib\movieGraph.py", line 10, in &lt;module&gt;
      g.parse(endpoint)
    File "c:\python26_32bit\lib\site-packages\rdflib\graph.py", line 756, in parse
  
      parser = plugin.get(format, Parser)()
    File "c:\python26_32bit\lib\site-packages\rdflib\plugin.py", line 89, in get
      raise PluginException("No plugin registered for (%s, %s)" % (name, kind))
  rdflib.plugin.PluginException: No plugin registered for (application/xml, &lt;class
   'rdflib.parser.Parser'&gt;)
  </code></pre>
  
  <p>I think the only trick is specifying a proper URL to cause Sesame to return a .rdf xml layout. </p>
  
  <p>Author of question: reposted to <a href="http://web.archive.org/web/20130830191313/http://answers.semanticweb.com/questions/9414/python-using-rdflib-to-graph-a-sesame-database" rel="nofollow noreferrer">http://answers.semanticweb.com/questions/9414/python-using-rdflib-to-graph-a-sesame-database</a> (see answer there) </p>