org.d2rq.pp
Class PrettyPrinter
java.lang.Object
org.d2rq.pp.PrettyPrinter
public class PrettyPrinter
- extends Object
Pretty printer for various kinds of objects.
- Author:
- Richard Cyganiak (richard@cyganiak.de)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PrettyPrinter
public PrettyPrinter()
toString
public static String toString(Node n)
- Pretty-prints an RDF node.
- Parameters:
n
- An RDF node
- Returns:
- An N-Triples style textual representation
toString
public static String toString(Node n,
PrefixMapping prefixes)
- Pretty-prints an RDF node and shortens URIs into QNames according to a
PrefixMapping
.
- Parameters:
n
- An RDF node
- Returns:
- An N-Triples style textual representation with URIs shortened to QNames
toString
public static String toString(Triple t)
toString
public static String toString(Triple t,
PrefixMapping prefixes)
toString
public static String toString(RDFDatatype datatype)
toString
public static String toString(RDFNode n)
toString
public static String toString(Model m,
PrefixMapping prefixes)