gjhiggins/rdflib — Issue #120: Store SPARQL Support
Author: gjhiggins
Created: 2011-10-19 01:26:46+00:00
State: open

Originally filed by wwai...@gmail.com on 2010-02-13T08:55:46

Niklas Lindström suggested making a ticket for this suggestion.

Currently rdflib.graph.Graph's query method exclusively uses
the RDFLib SPARQL implementation. Some stores, however have
their own implementation that might be better or more efficient
to use.

Suggest a modification to the query method to do something
along the lines of,

if hasattr(self.store, "query") and use_store_provided:
return self.store.query(...)

where use_store_provided is a new keyword argument to the Graph's
method which would default to True, to allow the user to force
the use of RDFLib's SPARQL if desired.