Ivan’s private site

February 14, 2008

New version of the SPARQL Python wrapper

Filed under: Code,Python,Semantic Web,Work Related — Ivan Herman @ 13:49

About half a year ago I announced the availability of a SPARQL endpoint interface to Python. It was really a beta release back then (ie, last July), but recently it went through a more thorough testing and improvement cycle. This was not my merit; all praise should go to Sergio Fernàndez and Carlos Tejo (both from CTIC Foundation, Spain) who decided to use the package in one of their internal projects. They revealed some problems (of course…), and we then worked together to prepare a proper 1.0 release. It is my pleasure to consider them as co-authors of this small package!

As before, the code is available from my site; the API documentation is included in the distribution (and is also available online). However, the project has also been moved to sourceforge, and is now available there, too (including the on-line documentation).


  1. Hi Ivan,

    I wrote an python extension to lpkb but was never really sure if it was truly restful. http://lpkb.cvs.sourceforge.net/lpkb/modpy/ basically it scans the ‘GET url’ and returns the ‘axioms’ that match. clicking on an axiom makes it the new target. then all axioms that match the current ‘target’ are ‘activated’ and shown. the ‘pun’ here, is that “branching axioms” become “hyperlinks”. unfortunately there is no current live demo at mo’ as i am currently switching providers. python *is* suited to these kinds of tasks i find. sparql can get the job done and services “up the food chain” are to be welcomed.


    Comment by Colm Ó Cinnéide — April 6, 2008 @ 13:43

  2. Cool! I’m wondering if anyone cares to take my Ruby port, http://svn.foaf-project.org/foaftown/2008/ruby-sparql-client/ …and run with it? or at least update it to more closely shadow latest vresion of the py …

    Comment by Dan Brickley — April 6, 2008 @ 16:27

  3. Oops forgot to include http://danbri.org/words/2008/01/07/247

    Sample usage, http://svn.foaf-project.org/foaftown/2008/ruby-sparql-client/src/test_query.rb
    …JSON version is better than the XML, which currently returns raw REXML objects.

    Comment by Dan Brickley — April 6, 2008 @ 16:29

  4. […] New version of the SPARQL Python wrapper […]

    Pingback by Nodalities » Blog Archive » This Week’s Semantic Web — April 17, 2008 @ 19:07

RSS feed for comments on this post.

Blog at WordPress.com.

%d bloggers like this: