java.lang.Object
org.apache.jena.riot.out.NodeFmtLib
Presentation utilities for Nodes, Triples, Quads and more.
Methods str
generate a re-parseable string.
Methods displayStr
do not guarantee a re-parseable string
e.g. may use abbreviations or common prefixes.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
decodeBNodeLabel
(String label) static String
displayStr
(Node node) static String
displayStr
(Triple t) static String
displayStr
(RDFNode obj) A displayable string for an RDFNode.static String
encodeBNodeLabel
(String label) static void
Deprecated.To be removed.static String
Deprecated.static String
Format in Turtle style, using the base URI and prefix map.static String
Format in Turtle style, using the prefix map.static String
Format a triple, using Turtle literal abbreviations.static String
Format a quad, using Turtle literal abbreviations.static String
Deprecated.static String
strNodesNT
(Node... nodes) static String
strNodesTTL
(Node... nodes) static String
Format in N-triples style.static String
With Turtle abbreviation for literals, no prefixes of base URI
-
Constructor Details
-
NodeFmtLib
public NodeFmtLib()
-
-
Method Details
-
str
Format a triple, using Turtle literal abbreviations. -
str
Format a quad, using Turtle literal abbreviations. -
str
Deprecated. -
strTTL
With Turtle abbreviation for literals, no prefixes of base URI -
strNT
Format in N-triples style. -
str
Format in Turtle style, using the prefix map. -
str
Format in Turtle style, using the base URI and prefix map. -
strNodes
Deprecated. -
strNodesNT
-
strNodesTTL
-
serialize
@Deprecated public static void serialize(org.apache.jena.atlas.io.IndentedWriter w, Node node, String base, PrefixMap prefixMap) Deprecated.To be removed. -
displayStr
A displayable string for an RDFNode. Includes common abbreviations -
displayStr
-
displayStr
-
encodeBNodeLabel
-
decodeBNodeLabel
-