Skip to content

Instantly share code, notes, and snippets.

@dajobe
Created June 4, 2011 22:50
Show Gist options
  • Save dajobe/1008454 to your computer and use it in GitHub Desktop.
Save dajobe/1008454 to your computer and use it in GitHub Desktop.
rasqal_expression variable binding ambiguity
; Current API cannot distinguish these since (variable, binding expr) are in same
; structure identified globally by variable name.
1.
SELECT ((1+1) AS ?foo)
WHERE { ... }
GROUP BY ?foo
2.
SELECT ?foo
WHERE { ... }
GROUP BY ((1+1) AS ?foo)
3.
SELECT ?foo
WHERE { ...
BIND ((1+1) AS ?foo)
... }
GROUP BY ?foo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment