Eliminate file intermediary in translate algebra by jclerman · Pull Request #2267 · RDFLib/rdflib (original) (raw)

Summary of changes

Previously, rdflib.plugins.sparql.algebra.translateAlgebra() maintained state via a file, with a fixed filename query.txt. With this change, use of that file is eliminated; state is now maintained in memory (so that multiple concurrent translateAlgebra() calls, for example, should no longer interfere with each other).

The change is accomplished with no change to the client interface. Basically, the actual functionality has been moved into a class, which is instantiated and used as needed (once per call to algrebra.translateAlgebra()). The class is available for direct use, though that's not anticipated to be useful in normal operation.

Checklist