So, once parseQuery is done, which returns pyparsing pieces, 
rdflib.plugins.sparql calls translateQuery to translate it into a SPARQL 
algebra.   So, for what we want to do, it seems we need two pieces:

* Code which mimics translateQuery 
in 
https://github.com/RDFLib/rdflib/blob/master/rdflib/plugins/sparql/algebra.py 
to convert rdflib.terms.Variable into rdflib.terms.Literal without creating 
the algebra.

* Code to unparse the pyparsing result.   I wonder whether this is a 
feature of pyparsing, but I do not know.

I'll let you know if I make more progress.

-- 
http://github.com/RDFLib
--- 
You received this message because you are subscribed to the Google Groups 
"rdflib-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rdflib-dev/9d0aafcb-e876-4ad1-a008-bdc1705c5ff0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to