Class FmtUtils

java.lang.Object
org.apache.jena.sparql.util.FmtUtils

public class FmtUtils extends Object
Presentation forms of various kinds of objects. Beware that bNodes are abbreviated to _:b0 etc.
See Also:
  • Field Details

    • multiLineExpr

      public static boolean multiLineExpr
    • printOpName

      public static boolean printOpName
  • Constructor Details

    • FmtUtils

      public FmtUtils()
  • Method Details

    • sCxt

      public static SerializationContext sCxt()
    • sCxt

      public static SerializationContext sCxt(org.apache.jena.shared.PrefixMapping pmap)
    • stringForTriple

      public static String stringForTriple(org.apache.jena.graph.Triple triple)
    • stringForTriple

      public static String stringForTriple(org.apache.jena.graph.Triple triple, org.apache.jena.shared.PrefixMapping prefixMap)
    • stringForTriple

      public static String stringForTriple(org.apache.jena.graph.Triple triple, SerializationContext sCxt)
    • stringForTriple

      public static void stringForTriple(StringBuilder result, org.apache.jena.graph.Triple triple, SerializationContext sCxt)
    • stringForQuad

      public static String stringForQuad(Quad quad, org.apache.jena.shared.PrefixMapping prefixMap)
    • stringForQuad

      public static String stringForQuad(Quad quad)
    • stringForQuad

      public static String stringForQuad(Quad quad, SerializationContext sCxt)
    • stringForQuad

      public static void stringForQuad(StringBuilder sb, Quad quad, SerializationContext sCxt)
    • formatPattern

      public static void formatPattern(org.apache.jena.atlas.io.IndentedWriter out, BasicPattern pattern, SerializationContext sCxt)
    • stringForObject

      public static String stringForObject(Object obj)
    • stringForRDFNode

      public static String stringForRDFNode(org.apache.jena.rdf.model.RDFNode obj)
    • stringForRDFNode

      public static String stringForRDFNode(org.apache.jena.rdf.model.RDFNode obj, SerializationContext context)
    • stringForLiteral

      public static String stringForLiteral(org.apache.jena.graph.Node_Literal literal, SerializationContext context)
    • stringForLiteral

      public static void stringForLiteral(StringBuilder result, org.apache.jena.graph.Node_Literal literal, SerializationContext context)
    • stringForString

      public static String stringForString(String str)
    • stringForResource

      public static String stringForResource(org.apache.jena.rdf.model.Resource r)
    • stringForResource

      public static String stringForResource(org.apache.jena.rdf.model.Resource r, SerializationContext context)
    • stringForNode

      public static String stringForNode(org.apache.jena.graph.Node n)
    • stringForNode

      public static void stringForNode(StringBuilder result, org.apache.jena.graph.Node n)
    • stringForNode

      public static String stringForNode(org.apache.jena.graph.Node n, org.apache.jena.shared.PrefixMapping prefixMap)
    • stringForNode

      public static void stringForNode(StringBuilder result, org.apache.jena.graph.Node n, org.apache.jena.shared.PrefixMapping prefixMap)
    • stringForNode

      public static String stringForNode(org.apache.jena.graph.Node n, Prologue prologue)
    • stringForNode

      public static String stringForNode(org.apache.jena.graph.Node n, SerializationContext context)
    • stringForNode

      public static void stringForNode(StringBuilder result, org.apache.jena.graph.Node n, SerializationContext context)
    • stringForURI

      public static String stringForURI(String uri)
    • stringForURI

      public static void stringForURI(StringBuilder target, String uri)
    • stringForURI

      public static String stringForURI(String uri, Prologue prologue)
    • stringForURI

      public static String stringForURI(String uri, String baseIRI)
    • stringForURI

      public static String stringForURI(String uri, SerializationContext context)
    • stringForURI

      public static void stringForURI(StringBuilder result, String uri, SerializationContext context)
    • stringForURI

      public static String stringForURI(String uri, org.apache.jena.shared.PrefixMapping mapping)
    • stringForURI

      public static String stringForURI(String uri, String base, org.apache.jena.shared.PrefixMapping mapping)
    • stringForURI

      public static void stringForURI(StringBuilder result, String uri, String base, org.apache.jena.shared.PrefixMapping mapping)
    • abbrevByBase

      public static String abbrevByBase(String uriStr, String base)
    • stringEsc

      public static String stringEsc(String s)
    • stringEsc

      public static String stringEsc(String s, boolean singleLineString)
    • stringEsc

      public static void stringEsc(StringBuilder sbuff, String s)
    • stringEsc

      public static void stringEsc(StringBuilder sbuff, String s, boolean singleLineString)
    • resetBNodeLabels

      public static void resetBNodeLabels()