Parser/QueryParser.cpp
antlrcpp::Any QueryParser::visitAskquery(SPARQLParser::AskqueryContext *ctx)
{
	query_tree_ptr->setQueryForm(QueryTree::Ask_Query);
	query_tree_ptr->setProjectionAsterisk();

	// datasetClause not supported

	// Call explictly to pass group_pattern as a parameter
	visitWhereClause(ctx->whereClause(), query_tree_ptr->getGroupPattern());

	visit(ctx->solutionModifier());

	return antlrcpp::Any();
}
/**
	askquery : K_ASK datasetClause* whereClause solutionModifier ;
	Visit node askquery: recursively call visit on each of its children, except
	datasetClause (currently not supported). When visiting whereClause, pass the 
	reference to QueryTree's outermost group graph pattern for it to be filled.
	Also set the query form as ASK, and set the projection asterisk (equivalent
	to SELECT * without returning actual results).

	@param ctx pointer to askquery's context.
	@return a dummy antlrcpp::Any object.
*/
askquery : K_ASK datasetClause* whereClause solutionModifier ;
Visit node askquery: recursively call visit on each of its children, except
datasetClause (currently not supported). When visiting whereClause, pass the
reference to QueryTree's outermost group graph pattern for it to be filled.
Also set the query form as ASK, and set the projection asterisk (equivalent
to SELECT * without returning actual results).
askquery : K_ASK datasetClause * whereClause solutionModifier ; Visit node askquery : recursively call visit on each of its children except datasetClause ( currently not supported ) . When visiting whereClause pass the reference to QueryTree ' s outermost group graph pattern for it to be filled . Also set the query form as ASK and set the projection asterisk ( equivalent to SELECT * without returning actual results ) .
antlrcpp::Any QueryParser::visitAskquery(SPARQLParser::AskqueryContext *ctx)
{
	query_tree_ptr->setQueryForm(QueryTree::Ask_Query);
	query_tree_ptr->setProjectionAsterisk();
	visitWhereClause(ctx->whereClause(), query_tree_ptr->getGroupPattern());
	visit(ctx->solutionModifier());
	return antlrcpp::Any();
}
antlrcpp :: Any QueryParser :: visitAskquery ( SPARQLParser :: AskqueryContext * ctx ) { query_tree_ptr -> setQueryForm ( QueryTree :: Ask_Query ) ; query_tree_ptr -> setProjectionAsterisk ( ) ; visitWhereClause ( ctx -> whereClause ( ) , query_tree_ptr -> getGroupPattern ( ) ) ; visit ( ctx -> solutionModifier ( ) ) ; return antlrcpp :: Any ( ) ; }
askquery : K_ASK datasetClause* whereClause solutionModifier ;
Visit node askquery: recursively call visit on each of its children, except
datasetClause (currently not supported).
askquery : K_ASK datasetClause * whereClause solutionModifier ; Visit node askquery : recursively call visit on each of its children except datasetClause ( currently not supported ) .
// datasetClause not supported // Call explictly to pass group_pattern as a parameter