Is it possible to draw a graph of a Sesame RDF database using RDFLIB? This is what I tried:

endpoint = ""

from rdflib import Graph
g = Graph()

This is the error:

Traceback (most recent call last):
  File "C:\Software\rdflib\movieGraph.py", line 10, in <module>
  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, <class

I think the only trick is specifying a proper URL to cause Sesame to return a .rdf xml layout.

asked 10 May '11, 15:21

Neal%20Walters's gravatar image

Neal Walters
accept rate: 0%

Your endpoint URL is wrong. It points to the Sesame Workbench, which is not a (SPARQL) endpoint, but a client application. The SPARQL endpoint for any Sesame database is always on the Sesame server, and is equal to the repository URL. In your case, probably

(edit) Looking at what you're doing, I think you do not need a SPARQL endpoint but just want an export of the complete Sesame database. For this, you can use See the Sesame HTTP communication protocol for more details.

permanent link

answered 10 May '11, 16:02

Jeen%20Broekstra's gravatar image

Jeen Broekstra ♦
accept rate: 37%

edited 30 Mar '14, 15:05

RDFExtras has a store implementation that wraps a SPARQL endpoint, giving you a read-only graph:


This is built on the SPARQLWrapper library, which gives you a lower-level interface to do the same thing.

permanent link

answered 29 Aug '11, 05:13

Gunnar%20Aastrand%20Grimnes's gravatar image

Gunnar Aastr...
accept rate: 47%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 10 May '11, 15:21

question was seen: 4,093 times

last updated: 30 Mar '14, 15:05