Skip to content

Commit

Permalink
fix: remove print() calls from SPARQL algebra code
Browse files Browse the repository at this point in the history
These `print()` are not needed and also pollute the output of code that
uses RDFLib.
  • Loading branch information
aucampia committed Aug 28, 2023
1 parent 079f388 commit f77576f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions rdflib/plugins/sparql/algebra.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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 + "}}"
)
Expand Down

0 comments on commit f77576f

Please sign in to comment.