Search in sources :

Example 1 with FmtExprSPARQL

use of org.apache.jena.sparql.serializer.FmtExprSPARQL in project jena by apache.

the class SortCondition method output.

@Override
public void output(IndentedWriter out, SerializationContext sCxt) {
    if (sCxt == null)
        sCxt = new SerializationContext();
    FmtExprSPARQL fmt = new FmtExprSPARQL(out, sCxt);
    format(fmt, out);
}
Also used : SerializationContext(org.apache.jena.sparql.serializer.SerializationContext) FmtExprSPARQL(org.apache.jena.sparql.serializer.FmtExprSPARQL)

Example 2 with FmtExprSPARQL

use of org.apache.jena.sparql.serializer.FmtExprSPARQL in project jena by apache.

the class SortCondition method output.

@Override
public void output(IndentedWriter out) {
    out.print(Plan.startMarker);
    out.print("SortCondition ");
    FmtExprSPARQL fmt = new FmtExprSPARQL(out, null);
    format(fmt, out);
    out.print(Plan.finishMarker);
}
Also used : FmtExprSPARQL(org.apache.jena.sparql.serializer.FmtExprSPARQL)

Example 3 with FmtExprSPARQL

use of org.apache.jena.sparql.serializer.FmtExprSPARQL in project jena by apache.

the class ExprUtils method fmtSPARQL.

public static void fmtSPARQL(IndentedWriter iOut, Expr expr, SerializationContext sCxt) {
    FmtExprSPARQL v = new FmtExprSPARQL(iOut, sCxt);
    v.format(expr);
}
Also used : FmtExprSPARQL(org.apache.jena.sparql.serializer.FmtExprSPARQL)

Example 4 with FmtExprSPARQL

use of org.apache.jena.sparql.serializer.FmtExprSPARQL in project jena by apache.

the class ExprUtils method fmtSPARQL.

// ExprLists
public static void fmtSPARQL(IndentedWriter iOut, ExprList exprs, SerializationContext pmap) {
    FmtExprSPARQL fmt = new FmtExprSPARQL(iOut, pmap);
    String sep = "";
    for (Expr expr : exprs) {
        iOut.print(sep);
        sep = " , ";
        fmt.format(expr);
    }
}
Also used : FmtExprSPARQL(org.apache.jena.sparql.serializer.FmtExprSPARQL)

Aggregations

FmtExprSPARQL (org.apache.jena.sparql.serializer.FmtExprSPARQL)4 SerializationContext (org.apache.jena.sparql.serializer.SerializationContext)1