Class SPARQLExtFormatterElement
- java.lang.Object
-
- fr.mines_stetienne.ci.sparql_generate.serializer.SPARQLExtFormatterBase
-
- fr.mines_stetienne.ci.sparql_generate.serializer.SPARQLExtFormatterElement
-
- All Implemented Interfaces:
SPARQLExtElementVisitor
,ElementVisitor
public class SPARQLExtFormatterElement extends SPARQLExtFormatterBase implements SPARQLExtElementVisitor
Extends the ARQ Element Formatter with SPARQL-Generate elements.- Author:
- Maxime Lefrançois
-
-
Field Summary
Fields Modifier and Type Field Description int
BLOCK_INDENT
static boolean
ELEMENT1_FIXED_INDENT
Control whether NOT EXIST/EXISTS indents in a fixed way or based on the layout sizestatic boolean
GRAPH_FIXED_INDENT
Control whether GRAPH indents in a fixed way or based on the layout sizestatic boolean
GROUP_FIRST_ON_SAME_LINE
Control whether the first item of a group is on the same line as the {static boolean
GROUP_SEP_DOT
Control whether (non-triple) patterns have a final dot - it can be droppedstatic boolean
PATTERN_MARKERS
Control whether to show triple pattern boundaries - creates extra nestingstatic boolean
PRETTY_PRINT
Control pretty printingstatic int
TRIPLES_COLUMN_GAP
static int
TRIPLES_PROPERTY_COLUMN
static int
TRIPLES_SUBJECT_COLUMN
Control triples pretty printingstatic int
TRIPLES_SUBJECT_LONG
static boolean
UNION_MARKERS
Control whether disjunction has set of delimiters - as it's a group usually, these aren't needed-
Fields inherited from class fr.mines_stetienne.ci.sparql_generate.serializer.SPARQLExtFormatterBase
context, out
-
-
Constructor Summary
Constructors Constructor Description SPARQLExtFormatterElement(org.apache.jena.atlas.io.IndentedWriter out, SerializationContext context)
-
Method Summary
-
Methods inherited from class fr.mines_stetienne.ci.sparql_generate.serializer.SPARQLExtFormatterBase
finishVisit, formatTriple, slotToString
-
-
-
-
Field Detail
-
PATTERN_MARKERS
public static final boolean PATTERN_MARKERS
Control whether to show triple pattern boundaries - creates extra nesting- See Also:
- Constant Field Values
-
GROUP_SEP_DOT
public static final boolean GROUP_SEP_DOT
Control whether (non-triple) patterns have a final dot - it can be dropped- See Also:
- Constant Field Values
-
GROUP_FIRST_ON_SAME_LINE
public static final boolean GROUP_FIRST_ON_SAME_LINE
Control whether the first item of a group is on the same line as the {- See Also:
- Constant Field Values
-
PRETTY_PRINT
public static final boolean PRETTY_PRINT
Control pretty printing- See Also:
- Constant Field Values
-
UNION_MARKERS
public static final boolean UNION_MARKERS
Control whether disjunction has set of delimiters - as it's a group usually, these aren't needed- See Also:
- Constant Field Values
-
GRAPH_FIXED_INDENT
public static final boolean GRAPH_FIXED_INDENT
Control whether GRAPH indents in a fixed way or based on the layout size- See Also:
- Constant Field Values
-
ELEMENT1_FIXED_INDENT
public static final boolean ELEMENT1_FIXED_INDENT
Control whether NOT EXIST/EXISTS indents in a fixed way or based on the layout size- See Also:
- Constant Field Values
-
TRIPLES_SUBJECT_COLUMN
public static final int TRIPLES_SUBJECT_COLUMN
Control triples pretty printing- See Also:
- Constant Field Values
-
TRIPLES_SUBJECT_LONG
public static final int TRIPLES_SUBJECT_LONG
- See Also:
- Constant Field Values
-
TRIPLES_PROPERTY_COLUMN
public static final int TRIPLES_PROPERTY_COLUMN
- See Also:
- Constant Field Values
-
TRIPLES_COLUMN_GAP
public static final int TRIPLES_COLUMN_GAP
- See Also:
- Constant Field Values
-
BLOCK_INDENT
public final int BLOCK_INDENT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SPARQLExtFormatterElement
public SPARQLExtFormatterElement(org.apache.jena.atlas.io.IndentedWriter out, SerializationContext context)
-
-
Method Detail
-
topMustBeGroup
public boolean topMustBeGroup()
-
visit
public void visit(ElementGenerateTriplesBlock el)
- Specified by:
visit
in interfaceSPARQLExtElementVisitor
-
visit
public void visit(ElementSubExtQuery el)
- Specified by:
visit
in interfaceSPARQLExtElementVisitor
-
visit
public void visit(ElementIterator el)
- Specified by:
visit
in interfaceSPARQLExtElementVisitor
-
visit
public void visit(ElementSource el)
- Specified by:
visit
in interfaceSPARQLExtElementVisitor
-
visit
public void visit(ElementExpr el)
- Specified by:
visit
in interfaceSPARQLExtElementVisitor
-
visit
public void visit(ElementBox el)
- Specified by:
visit
in interfaceSPARQLExtElementVisitor
-
visit
public void visit(ElementFormat el)
- Specified by:
visit
in interfaceSPARQLExtElementVisitor
-
visit
public void visit(ElementTGroup el)
- Specified by:
visit
in interfaceSPARQLExtElementVisitor
-
visit
public void visit(ElementPerform el)
- Specified by:
visit
in interfaceSPARQLExtElementVisitor
-
visit
public void visit(ElementTriplesBlock el)
- Specified by:
visit
in interfaceElementVisitor
-
visit
public void visit(ElementPathBlock el)
- Specified by:
visit
in interfaceElementVisitor
-
visit
public void visit(ElementDataset el)
- Specified by:
visit
in interfaceElementVisitor
-
visit
public void visit(ElementFilter el)
- Specified by:
visit
in interfaceElementVisitor
-
visit
public void visit(ElementAssign el)
- Specified by:
visit
in interfaceElementVisitor
-
visit
public void visit(ElementBind el)
- Specified by:
visit
in interfaceElementVisitor
-
visit
public void visit(ElementData el)
- Specified by:
visit
in interfaceElementVisitor
-
visit
public void visit(ElementUnion el)
- Specified by:
visit
in interfaceElementVisitor
-
visit
public void visit(ElementGroup el)
- Specified by:
visit
in interfaceElementVisitor
-
visit
public void visit(ElementOptional el)
- Specified by:
visit
in interfaceElementVisitor
-
visit
public void visit(ElementLateral el)
- Specified by:
visit
in interfaceElementVisitor
-
visit
public void visit(ElementNamedGraph el)
- Specified by:
visit
in interfaceElementVisitor
-
visit
public void visit(ElementService el)
- Specified by:
visit
in interfaceElementVisitor
-
visit
public void visit(ElementExists el)
- Specified by:
visit
in interfaceElementVisitor
-
visit
public void visit(ElementNotExists el)
- Specified by:
visit
in interfaceElementVisitor
-
visit
public void visit(ElementMinus el)
- Specified by:
visit
in interfaceElementVisitor
-
visit
public void visit(ElementSubQuery el)
- Specified by:
visit
in interfaceElementVisitor
-
visitAsGroup
public void visitAsGroup(Element el)
-
formatTriples
protected void formatTriples(BasicPattern triples)
- Overrides:
formatTriples
in classSPARQLExtFormatterBase
-
-