Thanks!
On Thu, Aug 7, 2014 at 6:33 PM, Andy Seaborne <[email protected]> wrote: > On 07/08/14 13:53, Mike Potanin wrote: >> >> Do Jena have function to create string representation of >> com.hp.hpl.jena.graph.Node? >> com.hp.hpl.jena.util.PrintUtil.print is wrong. >> print(parseNode("<http://example.com/>")) return >> "http://example.com/", not "<http://example.com/>". >> > > NodeFmtLib.str(Node) > NodeFmtLib.displayStr(Node) -- if you want abbreviations > > but if you are doing this in a performance critical areas of code or you > want some particular guarantees on appearance, you should look at > NodeFormatter, which writes directly to out, avoiding the creation of a > string only to then pass it to IO to write. > > Andy >
