Class SPARQLExtQuerySerializer
- java.lang.Object
-
- fr.mines_stetienne.ci.sparql_generate.serializer.SPARQLExtQuerySerializer
-
- All Implemented Interfaces:
SPARQLExtQueryVisitor
,QueryVisitor
public class SPARQLExtQuerySerializer extends Object implements SPARQLExtQueryVisitor
Extends the ARQ Query Serializer with SPARQL-Ext specificities.- Author:
- Maxime Lefrançois
-
-
Field Summary
Fields Modifier and Type Field Description int
BLOCK_INDENT
-
Constructor Summary
Constructors Constructor Description SPARQLExtQuerySerializer(org.apache.jena.atlas.io.IndentedWriter out, SerializationContext context)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
finishVisit(Query query)
static void
outputDataBlock(org.apache.jena.atlas.io.IndentedWriter out, List<Var> variables, List<Binding> values, SerializationContext cxt)
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 q)
void
visitResultForm(Query query)
void
visitSelectResultForm(Query q)
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
-
-
-
-
Field Detail
-
BLOCK_INDENT
public final int BLOCK_INDENT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SPARQLExtQuerySerializer
public SPARQLExtQuerySerializer(org.apache.jena.atlas.io.IndentedWriter out, SerializationContext context)
-
-
Method Detail
-
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.
-
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.
-
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.
-
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.
-
startVisit
public void startVisit(Query query)
- Specified by:
startVisit
in interfaceQueryVisitor
-
visitResultForm
public void visitResultForm(Query query)
- Specified by:
visitResultForm
in interfaceQueryVisitor
-
visitPrologue
public void visitPrologue(Prologue prologue)
- Specified by:
visitPrologue
in interfaceQueryVisitor
-
visitSelectResultForm
public void visitSelectResultForm(Query q)
- 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
-
visitDatasetDecl
public void visitDatasetDecl(Query q)
- Specified by:
visitDatasetDecl
in interfaceQueryVisitor
-
visitQueryPattern
public void visitQueryPattern(Query q)
- Specified by:
visitQueryPattern
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
-
visitValues
public void visitValues(Query query)
- Specified by:
visitValues
in interfaceQueryVisitor
-
outputDataBlock
public static void outputDataBlock(org.apache.jena.atlas.io.IndentedWriter out, List<Var> variables, List<Binding> values, SerializationContext cxt)
-
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.
-
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.
-
visitJsonResultForm
public void visitJsonResultForm(Query query)
- Specified by:
visitJsonResultForm
in interfaceQueryVisitor
-
-