Does rdflib.plugins.sparql have any facilities for doing transforms? I've tried to figure this out, but I cannot quite see the right way to do it.
It looks like it ought to be possible, but the documentation doesn't quite get me there.
I can prepare a query and print the query algebra:
query = prepareQuery(querytext)
query.algebra
I also see that there is a function rdflib.plugins.sparql.algebra.traverse, but I'm not quite sure how to transform a query with that.
A simple example would be great.
Also, if there's anyway to do a transformation on the SPARQL syntax tree separate from the algebra, that would be great too.
Thanks,
-Dan