Class QueryAggregatesNormalizer
- java.lang.Object
-
- fr.mines_stetienne.ci.sparql_generate.normalizer.aggregates.QueryAggregatesNormalizer
-
- All Implemented Interfaces:
SPARQLExtQueryVisitor
,QueryVisitor
public class QueryAggregatesNormalizer extends Object implements SPARQLExtQueryVisitor
Class used to normalize SPARQL-Generate queries, i.e. output an equivalent query with no expression nodes. This class is instantiated by calls to the methodSPARQLExtQuery.normalizeXExpr()
- Author:
- Maxime Lefrançois
-
-
Constructor Summary
Constructors Constructor Description QueryAggregatesNormalizer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
finishVisit(Query query)
void
startVisit(Query query)
void
visitAskResultForm(Query query)
void
visitBindingClauses(SPARQLExtQuery query)
Visits all the binding clauses likeITERATOR
andSOURCE
.void
visitConstructResultForm(Query query)
void
visitDatasetDecl(Query q)
void
visitDescribeResultForm(Query query)
void
visitFunctionExpression(SPARQLExtQuery query)
Visits theFUNCTION
clause.void
visitGenerateClause(SPARQLExtQuery query)
Visits theGENERATE
clause.void
visitGroupBy(Query query)
void
visitHaving(Query query)
void
visitJsonResultForm(Query query)
void
visitLimit(Query query)
void
visitOffset(Query query)
void
visitOrderBy(Query query)
void
visitPerformClause(SPARQLExtQuery query)
Visits thePERFORM
clause.void
visitPostSelect(SPARQLExtQuery query)
Visits the select clause after the where.void
visitPragma(SPARQLExtQuery query)
Visits the pragma clause.void
visitPrologue(Prologue prologue)
void
visitQueryPattern(Query query)
void
visitResultForm(Query query)
void
visitSelectResultForm(Query query)
void
visitTemplateClause(SPARQLExtQuery query)
Visits theTEMPLATE
clause.void
visitValues(Query query)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface fr.mines_stetienne.ci.sparql_generate.query.SPARQLExtQueryVisitor
asSPARQLExtQuery
-
-
-
-
Method Detail
-
startVisit
public void startVisit(Query query)
- Specified by:
startVisit
in interfaceQueryVisitor
-
visitBindingClauses
public void visitBindingClauses(SPARQLExtQuery query)
Description copied from interface:SPARQLExtQueryVisitor
Visits all the binding clauses likeITERATOR
andSOURCE
.- Specified by:
visitBindingClauses
in interfaceSPARQLExtQueryVisitor
- Parameters:
query
- the SPARQL-Ext query.
-
visitGenerateClause
public void visitGenerateClause(SPARQLExtQuery query)
Description copied from interface:SPARQLExtQueryVisitor
Visits theGENERATE
clause.- Specified by:
visitGenerateClause
in interfaceSPARQLExtQueryVisitor
- Parameters:
query
- the SPARQL-Ext query.
-
visitTemplateClause
public void visitTemplateClause(SPARQLExtQuery query)
Description copied from interface:SPARQLExtQueryVisitor
Visits theTEMPLATE
clause.- Specified by:
visitTemplateClause
in interfaceSPARQLExtQueryVisitor
- Parameters:
query
- the SPARQL-Ext query.
-
visitFunctionExpression
public void visitFunctionExpression(SPARQLExtQuery query)
Description copied from interface:SPARQLExtQueryVisitor
Visits theFUNCTION
clause.- Specified by:
visitFunctionExpression
in interfaceSPARQLExtQueryVisitor
- Parameters:
query
- the SPARQL-Ext query.
-
visitPerformClause
public void visitPerformClause(SPARQLExtQuery query)
Description copied from interface:SPARQLExtQueryVisitor
Visits thePERFORM
clause.- Specified by:
visitPerformClause
in interfaceSPARQLExtQueryVisitor
- Parameters:
query
- the SPARQL-Ext query.
-
visitQueryPattern
public void visitQueryPattern(Query query)
- Specified by:
visitQueryPattern
in interfaceQueryVisitor
-
visitSelectResultForm
public void visitSelectResultForm(Query query)
- Specified by:
visitSelectResultForm
in interfaceQueryVisitor
-
visitConstructResultForm
public void visitConstructResultForm(Query query)
- Specified by:
visitConstructResultForm
in interfaceQueryVisitor
-
visitDescribeResultForm
public void visitDescribeResultForm(Query query)
- Specified by:
visitDescribeResultForm
in interfaceQueryVisitor
-
visitAskResultForm
public void visitAskResultForm(Query query)
- Specified by:
visitAskResultForm
in interfaceQueryVisitor
-
visitPrologue
public void visitPrologue(Prologue prologue)
- Specified by:
visitPrologue
in interfaceQueryVisitor
-
visitResultForm
public void visitResultForm(Query query)
- Specified by:
visitResultForm
in interfaceQueryVisitor
-
visitDatasetDecl
public void visitDatasetDecl(Query q)
- Specified by:
visitDatasetDecl
in interfaceQueryVisitor
-
visitGroupBy
public void visitGroupBy(Query query)
- Specified by:
visitGroupBy
in interfaceQueryVisitor
-
visitHaving
public void visitHaving(Query query)
- Specified by:
visitHaving
in interfaceQueryVisitor
-
visitOrderBy
public void visitOrderBy(Query query)
- Specified by:
visitOrderBy
in interfaceQueryVisitor
-
visitLimit
public void visitLimit(Query query)
- Specified by:
visitLimit
in interfaceQueryVisitor
-
visitOffset
public void visitOffset(Query query)
- Specified by:
visitOffset
in interfaceQueryVisitor
-
visitPostSelect
public void visitPostSelect(SPARQLExtQuery query)
Description copied from interface:SPARQLExtQueryVisitor
Visits the select clause after the where.- Specified by:
visitPostSelect
in interfaceSPARQLExtQueryVisitor
- Parameters:
query
- the SPARQL-Ext query.
-
visitValues
public void visitValues(Query query)
- Specified by:
visitValues
in interfaceQueryVisitor
-
finishVisit
public void finishVisit(Query query)
- Specified by:
finishVisit
in interfaceQueryVisitor
-
visitPragma
public void visitPragma(SPARQLExtQuery query)
Description copied from interface:SPARQLExtQueryVisitor
Visits the pragma clause.- Specified by:
visitPragma
in interfaceSPARQLExtQueryVisitor
- Parameters:
query
- the SPARQL-Ext query.
-
visitJsonResultForm
public void visitJsonResultForm(Query query)
- Specified by:
visitJsonResultForm
in interfaceQueryVisitor
-
-