gjhiggins/rdfextras — Issue #13: Store-provided SPARQL Support
Author: gjhiggins
Created: 2011-10-19 02:59:26+00:00
State: open

Originally filed by gjhigg...@gmail.com on 2010-09-14T23:12:35

Migrated from rdflib http://code.google.com/p/rdflib/issues/detail?id=121

Reported by wwaites, Feb 13, 2010
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.