Class SPARQLExtQueryCompare
- java.lang.Object
-
- fr.mines_stetienne.ci.sparql_generate.query.SPARQLExtQueryCompare
-
- All Implemented Interfaces:
SPARQLExtQueryVisitor
,QueryVisitor
public class SPARQLExtQueryCompare extends Object implements SPARQLExtQueryVisitor
Used to compare queries (syntactically).- Author:
- Maxime Lefrançois
-
-
Field Summary
Fields Modifier and Type Field Description static boolean
PrintMessages
-
Constructor Summary
Constructors Constructor Description SPARQLExtQueryCompare(SPARQLExtQuery query2)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static boolean
equals(SPARQLExtQuery query1, SPARQLExtQuery query2)
void
finishVisit(Query query1)
boolean
isTheSame()
void
startVisit(Query query1)
void
visitAskResultForm(Query query1)
void
visitBindingClauses(SPARQLExtQuery query)
Visits all the binding clauses likeITERATOR
andSOURCE
.void
visitConstructResultForm(Query query1)
void
visitDatasetDecl(Query q1)
void
visitDescribeResultForm(Query query1)
void
visitFunctionExpression(SPARQLExtQuery query)
Visits theFUNCTION
clause.void
visitGenerateClause(SPARQLExtQuery query)
Visits theGENERATE
clause.void
visitGroupBy(Query query1)
void
visitHaving(Query query1)
void
visitJsonResultForm(Query query)
void
visitLimit(Query query1)
void
visitOffset(Query query1)
void
visitOrderBy(Query query1)
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 query1)
void
visitQueryPattern(Query query1)
void
visitResultForm(Query query1)
void
visitSelectResultForm(Query query1)
void
visitTemplateClause(SPARQLExtQuery query)
Visits theTEMPLATE
clause.void
visitValues(Query query1)
-
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
-
-
-
-
Constructor Detail
-
SPARQLExtQueryCompare
public SPARQLExtQueryCompare(SPARQLExtQuery query2)
-
-
Method Detail
-
equals
public static boolean equals(SPARQLExtQuery query1, SPARQLExtQuery query2)
-
startVisit
public void startVisit(Query query1)
- Specified by:
startVisit
in interfaceQueryVisitor
-
visitResultForm
public void visitResultForm(Query query1)
- Specified by:
visitResultForm
in interfaceQueryVisitor
-
visitPrologue
public void visitPrologue(Prologue query1)
- Specified by:
visitPrologue
in interfaceQueryVisitor
-
visitSelectResultForm
public void visitSelectResultForm(Query query1)
- Specified by:
visitSelectResultForm
in interfaceQueryVisitor
-
visitConstructResultForm
public void visitConstructResultForm(Query query1)
- Specified by:
visitConstructResultForm
in interfaceQueryVisitor
-
visitDescribeResultForm
public void visitDescribeResultForm(Query query1)
- Specified by:
visitDescribeResultForm
in interfaceQueryVisitor
-
visitAskResultForm
public void visitAskResultForm(Query query1)
- Specified by:
visitAskResultForm
in interfaceQueryVisitor
-
visitDatasetDecl
public void visitDatasetDecl(Query q1)
- Specified by:
visitDatasetDecl
in interfaceQueryVisitor
-
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.
-
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.
-
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.
-
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.
-
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.
-
visitQueryPattern
public void visitQueryPattern(Query query1)
- Specified by:
visitQueryPattern
in interfaceQueryVisitor
-
visitGroupBy
public void visitGroupBy(Query query1)
- Specified by:
visitGroupBy
in interfaceQueryVisitor
-
visitHaving
public void visitHaving(Query query1)
- Specified by:
visitHaving
in interfaceQueryVisitor
-
visitLimit
public void visitLimit(Query query1)
- Specified by:
visitLimit
in interfaceQueryVisitor
-
visitOrderBy
public void visitOrderBy(Query query1)
- Specified by:
visitOrderBy
in interfaceQueryVisitor
-
visitOffset
public void visitOffset(Query query1)
- 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 query1)
- Specified by:
visitValues
in interfaceQueryVisitor
-
finishVisit
public void finishVisit(Query query1)
- Specified by:
finishVisit
in interfaceQueryVisitor
-
isTheSame
public boolean isTheSame()
-
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
-
-