Skip to content

Commit

Permalink
fix vars in response header for queries with named aggregates
Browse files Browse the repository at this point in the history
  • Loading branch information
prohde committed May 8, 2024
1 parent 654ce10 commit ab26b24
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion DeTrusty/Sparql/Parser/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,12 @@ def variables(self):
if not self.args:
return [var.replace('?', '') for var in set(self.body.getVars())]
else:
return [str(arg).replace('?', '') for arg in self.args]
vars_ = []
for arg in self.args:
arg_vars = arg.getVars()
for arg_var in arg_vars:
vars_.append(str(arg_var).replace('?', ''))
return vars_

def instantiate(self, d):
new_args = []
Expand Down

0 comments on commit ab26b24

Please sign in to comment.