RDFLib/rdflibissueplayground — Issue #28: Added SPARQLStore, taken from layercake, built around Ivan Herman's SPARQLWrapper
Author: gjhiggins
Created: 2012-02-20 05:28:43+00:00
State: open
Labels: closed

gromgull, 2011-01-31T06:26:06.000Z
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

Comment 1 by gromgull
actually - this doesn't break anything, it just adds stuff - so just merged it into the result-cleanup branch