Skip to content

Commit

Permalink
typos
Browse files Browse the repository at this point in the history
  • Loading branch information
Callidon committed Nov 30, 2018
1 parent db03b34 commit d36e34a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions query_engine/optimizer/query_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@


class UnsupportedSPARQL(Exception):
"""Throw when a SPARQL feature is not supported by the Sage query engine"""
"""Thrown when a SPARQL feature is not supported by the Sage query engine"""
pass


def format_triple(graph):
"""Convert a rdflib RDF triple into the format used by Sage"""
"""Get a function used to convert a rdflib RDF triple into the format used by Sage"""
def __formatter(triple):
s, p, o = triple
return {
Expand Down Expand Up @@ -89,7 +89,6 @@ def parse_query_node(node, dataset, current_graph, server_url):
iterator, query_vars, cardinalities = build_left_plan(triples, dataset, current_graph)
return iterator
else:
print(node)
raise UnsupportedSPARQL("Unsupported SPARQL feature: {}".format(node.name))


Expand Down

0 comments on commit d36e34a

Please sign in to comment.