summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreenfishK <f.kovacevic@gmx.at>2021-05-20 09:39:33 +0200
committerGreenfishK <f.kovacevic@gmx.at>2021-05-20 09:39:33 +0200
commit2685eeb344f32e8bac4cb3e6427dafe1f953fe04 (patch)
tree7a54b43dd7eefba7349c692d3de67eb6e4884c44
parent78468f7c3ecc628735403d1e43fe8e984b4dbc8f (diff)
downloadrdflib-2685eeb344f32e8bac4cb3e6427dafe1f953fe04.tar.gz
Implemented function translateAlgebra. This functions takes a SPARQL query algebra as an input and returns the query text. Tests are in test/translate_algebra. I did not follow any specific test framework like Nose but wrote my own one.
Automated tests did not pass for python 3.7. Trying again
-rw-r--r--rdflib/plugins/sparql/algebra.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/rdflib/plugins/sparql/algebra.py b/rdflib/plugins/sparql/algebra.py
index f9527f96..33d70bf4 100644
--- a/rdflib/plugins/sparql/algebra.py
+++ b/rdflib/plugins/sparql/algebra.py
@@ -807,6 +807,7 @@ def translateAlgebra(query_algebra: Query = None):
:param query_algebra: An algebra returned by the function call algebra.translateQuery(parse_tree).
:return: The query form generated from the SPARQL 1.1 algebra tree for select queries.
+
"""
def overwrite(text):