Extracts the result variables from a SELECT query in the order they are defined.
Handles:
SELECT ?x ?ySELECT (?x AS ?y)SELECT (COUNT(?x) AS ?count)The concrete syntax tree from parsing a SPARQL query
An array of variable names (without the ? or $ prefix) in projection order
Helper class for extracting variables from SPARQL query CST nodes.