org.apache.jena.riot.out
Class NodeFmtLib

java.lang.Object
  extended by 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.


Constructor Summary
NodeFmtLib()
           
 
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)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeFmtLib

public NodeFmtLib()
Method Detail

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