org.apache.jena.riot.out
Class NodeFmtLib
java.lang.Object
org.apache.jena.riot.out.NodeFmtLib
public class NodeFmtLib
- extends Object
Presentation utilitiles for Nodes, Triples, Quads and more.
Methods str generate a reparsable string.
Methods displayStr do not guarantee a reparsable string
e.g. may use abbreviations or common prefixes.
|
Method Summary |
static String |
abbrevByBase(String uri,
String base)
|
static String |
decodeBNodeLabel(String label)
|
static String |
displayStr(Node n)
|
static String |
displayStr(RDFNode obj)
A displayable string for an RDFNode. |
static String |
encodeBNodeLabel(String label)
|
static void |
serialize(IndentedWriter w,
Node n,
Prologue prologue)
|
static void |
serialize(IndentedWriter w,
Node n,
String base,
PrefixMap prefixMap)
|
static void |
str(IndentedWriter w,
Node n)
|
static String |
str(Node n)
|
static String |
str(Node n,
Prologue prologue)
|
static String |
str(Node n,
String base,
PrefixMap prefixMap)
|
static String |
str(Quad q)
|
static String |
str(Triple t)
|
static String |
strNodes(Node... nodes)
|
NodeFmtLib
public NodeFmtLib()
str
public static String str(Triple t)
str
public static String str(Quad q)
str
public static String str(Node n)
displayStr
public static String displayStr(RDFNode obj)
- A displayable string for an RDFNode. Includes common abbreviations
displayStr
public static String displayStr(Node n)
strNodes
public static String strNodes(Node... nodes)
str
public static void str(IndentedWriter w,
Node n)
str
public static String str(Node n,
Prologue prologue)
str
public static String str(Node n,
String base,
PrefixMap prefixMap)
serialize
public static void serialize(IndentedWriter w,
Node n,
Prologue prologue)
serialize
public static void serialize(IndentedWriter w,
Node n,
String base,
PrefixMap prefixMap)
encodeBNodeLabel
public static String encodeBNodeLabel(String label)
decodeBNodeLabel
public static String decodeBNodeLabel(String label)
abbrevByBase
public static String abbrevByBase(String uri,
String base)
Licenced under the Apache License, Version 2.0