java.lang.Object
org.apache.jena.sparql.util.FmtUtils
Presentation forms of various kinds of objects.
Beware that bNodes are abbreviated to _:b0 etc.
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
abbrevByBase
(String uriStr, String base) static void
formatPattern
(org.apache.jena.atlas.io.IndentedWriter out, BasicPattern pattern, SerializationContext sCxt) static void
static SerializationContext
sCxt()
static SerializationContext
sCxt
(org.apache.jena.shared.PrefixMapping pmap) static String
static void
stringEsc
(StringBuilder sbuff, String s) static void
stringEsc
(StringBuilder sbuff, String s, boolean singleLineString) static String
static void
stringForLiteral
(StringBuilder result, org.apache.jena.graph.Node_Literal literal, SerializationContext context) static String
stringForLiteral
(org.apache.jena.graph.Node_Literal literal, SerializationContext context) static void
stringForNode
(StringBuilder result, org.apache.jena.graph.Node n) static void
stringForNode
(StringBuilder result, org.apache.jena.graph.Node n, org.apache.jena.shared.PrefixMapping prefixMap) static void
stringForNode
(StringBuilder result, org.apache.jena.graph.Node n, SerializationContext context) static String
stringForNode
(org.apache.jena.graph.Node n) static String
stringForNode
(org.apache.jena.graph.Node n, org.apache.jena.shared.PrefixMapping prefixMap) static String
stringForNode
(org.apache.jena.graph.Node n, Prologue prologue) static String
stringForNode
(org.apache.jena.graph.Node n, SerializationContext context) static String
stringForObject
(Object obj) static void
stringForQuad
(StringBuilder sb, Quad quad, SerializationContext sCxt) static String
stringForQuad
(Quad quad) static String
stringForQuad
(Quad quad, org.apache.jena.shared.PrefixMapping prefixMap) static String
stringForQuad
(Quad quad, SerializationContext sCxt) static String
stringForRDFNode
(org.apache.jena.rdf.model.RDFNode obj) static String
stringForRDFNode
(org.apache.jena.rdf.model.RDFNode obj, SerializationContext context) static String
stringForResource
(org.apache.jena.rdf.model.Resource r) static String
stringForResource
(org.apache.jena.rdf.model.Resource r, SerializationContext context) static String
stringForString
(String str) static void
stringForTriple
(StringBuilder result, org.apache.jena.graph.Triple triple, SerializationContext sCxt) static String
stringForTriple
(org.apache.jena.graph.Triple triple) static String
stringForTriple
(org.apache.jena.graph.Triple triple, org.apache.jena.shared.PrefixMapping prefixMap) static String
stringForTriple
(org.apache.jena.graph.Triple triple, SerializationContext sCxt) static String
stringForURI
(String uri) static void
stringForURI
(StringBuilder target, String uri) static void
stringForURI
(StringBuilder result, String uri, String base, org.apache.jena.shared.PrefixMapping mapping) static void
stringForURI
(StringBuilder result, String uri, SerializationContext context) static String
stringForURI
(String uri, String baseIRI) static String
stringForURI
(String uri, String base, org.apache.jena.shared.PrefixMapping mapping) static String
stringForURI
(String uri, org.apache.jena.shared.PrefixMapping mapping) static String
stringForURI
(String uri, Prologue prologue) static String
stringForURI
(String uri, SerializationContext context)
-
Field Details
-
multiLineExpr
public static boolean multiLineExpr -
printOpName
public static boolean printOpName
-
-
Constructor Details
-
FmtUtils
public FmtUtils()
-
-
Method Details
-
sCxt
-
stringForTriple
-
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
-
stringForQuad
-
stringForQuad
-
formatPattern
public static void formatPattern(org.apache.jena.atlas.io.IndentedWriter out, BasicPattern pattern, SerializationContext sCxt) -
stringForObject
-
stringForRDFNode
-
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
-
stringForResource
-
stringForResource
public static String stringForResource(org.apache.jena.rdf.model.Resource r, SerializationContext context) -
stringForNode
-
stringForNode
-
stringForNode
-
stringForNode
-
stringForNode
public static void stringForNode(StringBuilder result, org.apache.jena.graph.Node n, SerializationContext context) -
stringForURI
-
stringForURI
-
stringForURI
-
stringForURI
-
stringForURI
-
stringForURI
-
abbrevByBase
-
stringEsc
-
stringEsc
-
stringEsc
-
stringEsc
-
resetBNodeLabels
public static void resetBNodeLabels()
-