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 StringdecodeBNodeLabel(String label) static StringdisplayStr(org.apache.jena.graph.Node node) static StringdisplayStr(org.apache.jena.graph.Triple t) static StringdisplayStr(org.apache.jena.rdf.model.RDFNode obj) A displayable string for an RDFNode.static StringdisplayStr(Quad q) static StringencodeBNodeLabel(String label) static StringFormat in Turtle style, using the base URI and prefix map.static StringFormat in Turtle style, using the prefix map.static Stringstr(org.apache.jena.graph.Triple t) Format a triple, using Turtle literal abbreviations.static StringFormat a quad, using Turtle literal abbreviations.static StringstrNodesNT(org.apache.jena.graph.Node... nodes) static StringstrNodesTTL(org.apache.jena.graph.Node... nodes) static StringstrNQ(org.apache.jena.graph.Node s, org.apache.jena.graph.Node p, org.apache.jena.graph.Node o, org.apache.jena.graph.Node g) Format the components of a quad as N-Quads.static StringFormat a quad as N-Quads.static StringstrNT(org.apache.jena.graph.Node node) Format in N-triples style.static StringstrNT(org.apache.jena.graph.Triple triple) Format a triple as N-Triples.static StringstrTTL(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. -
strNT
Format a triple as N-Triples. -
strNQ
Format a quad as N-Quads. -
strNQ
public static String strNQ(org.apache.jena.graph.Node s, org.apache.jena.graph.Node p, org.apache.jena.graph.Node o, org.apache.jena.graph.Node g) Format the components of a quad as N-Quads. The graph component may be null. -
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
-