From f77576f48763fa42d91d358424c08801469545aa Mon Sep 17 00:00:00 2001 From: Iwan Aucamp Date: Mon, 28 Aug 2023 18:34:03 +0200 Subject: [PATCH] fix: remove `print()` calls from SPARQL algebra code These `print()` are not needed and also pollute the output of code that uses RDFLib. --- rdflib/plugins/sparql/algebra.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/rdflib/plugins/sparql/algebra.py b/rdflib/plugins/sparql/algebra.py index 7e2a739f83..056e1fcfbd 100644 --- a/rdflib/plugins/sparql/algebra.py +++ b/rdflib/plugins/sparql/algebra.py @@ -1169,7 +1169,6 @@ def sparql_query_text(self, node): " ".join([self.convert_node_arg(pattern) for pattern in node.part]), ) elif node.name == "TriplesBlock": - print("triplesblock") self._replace( "{TriplesBlock}", "".join( @@ -1330,7 +1329,6 @@ def sparql_query_text(self, node): # According to https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#rNotExistsFunc # NotExistsFunc can only have a GroupGraphPattern as parameter. However, when we print the query algebra # we get a GroupGraphPatternSub - print(node.graph.name) self._replace( "{Builtin_NOTEXISTS}", "NOT EXISTS " + "{{" + node.graph.name + "}}" )