gjhiggins/rdfextras — Issue #21: Added SPARQLStore, taken from layercake, built around Ivan Herman's SPARQLWrapper
Author: gjhiggins
Created: 2011-10-19 03:00:41+00:00
State: open

Originally filed by gromgull on 2011-01-31T06:26:06

Purpose of code changes on this branch:

https://bitbucket.org/gromgull/rdfextras/changeset/eb32472e194d

This adds a SPARQLStore type, given you read only access to a SPARQL endpoint through the graph interface.

For example, install and run joseki to get a local SPARQL endpoint:
{{{
import rdflib
from rdfextras.store.SPARQL import SPARQLStore

store=SPARQLStore("http://localhost:2020/books")
g=rdflib.Graph(store)

for t in g.triples((None, rdflib.URIRef("http://purl.org/dc/elements/1.1/title"), None)):
print t
}}}

After the review, I'll merge this branch into:
/trunk