SparqlParser.php line 418:
$this->query->addResultVar(current($this->tokens));
Raises an error because the variable needs to be added as a Query_ResultVariable object:
$this->query->addResultVar(new Query_ResultVariable(current($this->tokens)));
Logged In: YES user_id=1796871 Originator: YES
Note that this also requires a corresponding changes in the default renderer SparqlEngine/ResultRenderer/Default.php to use the object:
Line 144:
$vars[0] = new Query_ResultVariable('?x');
Line 152:
$varvalue = $resultset[$varname->getName()];
Logged In: YES
user_id=1796871
Originator: YES
Note that this also requires a corresponding changes in the default renderer SparqlEngine/ResultRenderer/Default.php to use the object:
Line 144:
$vars[0] = new Query_ResultVariable('?x');
Line 152:
$varvalue = $resultset[$varname->getName()];