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
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
decodeBNodeLabel
(String label) static String
displayStr
(org.apache.jena.graph.Node node) static String
displayStr
(org.apache.jena.graph.Triple t) static String
displayStr
(org.apache.jena.rdf.model.RDFNode obj) A displayable string for an RDFNode.static String
displayStr
(Quad q) static String
encodeBNodeLabel
(String label) 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
str
(org.apache.jena.graph.Triple t) Format a triple, using Turtle literal abbreviations.static String
Format a quad, using Turtle literal abbreviations.static String
strNodesNT
(org.apache.jena.graph.Node... nodes) static String
strNodesTTL
(org.apache.jena.graph.Node... nodes) static String
strNT
(org.apache.jena.graph.Node node) Format in N-triples style.static String
strTTL
(org.apache.jena.graph.Node node) 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. -
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. -
strNodesNT
-
strNodesTTL
-
displayStr
A displayable string for an RDFNode. Includes common abbreviations -
displayStr
-
displayStr
-
displayStr
-
encodeBNodeLabel
-
decodeBNodeLabel
-