You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jena.apache.org by Laurent Pellegrino <la...@gmail.com> on 2011/07/21 15:21:07 UTC

Turtle representation of a Node

Hi all,

Is there an already existing method in Jena to output the turtle
representation of a Jena Node?

For example if create an URI with:
Node node = Node.createURI("http://openjena.org");

Then, if I call node.toString() or Node.getURI(), I get:
http://openjena.org

Whereas I would like to get:
<http://openjena.org>

Same for blank nodes and literals.

Kind Regards,

Laurent

Re: Turtle representation of a Node

Posted by Andy Seaborne <an...@epimorphics.com>.
FmtUtils (in ARQ).

	Andy

On 21/07/11 14:21, Laurent Pellegrino wrote:
> Hi all,
>
> Is there an already existing method in Jena to output the turtle
> representation of a Jena Node?
>
> For example if create an URI with:
> Node node = Node.createURI("http://openjena.org");
>
> Then, if I call node.toString() or Node.getURI(), I get:
> http://openjena.org
>
> Whereas I would like to get:
> <http://openjena.org>
>
> Same for blank nodes and literals.
>
> Kind Regards,
>
> Laurent