incubator-jena-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andy Seaborne (JIRA)" <>
Subject [jira] [Closed] (JENA-103) FmtUtils does not expand xsd prefix
Date Thu, 18 Aug 2011 18:53:27 GMT


Andy Seaborne closed JENA-103.

> FmtUtils does not expand xsd prefix
> -----------------------------------
>                 Key: JENA-103
>                 URL:
>             Project: Jena
>          Issue Type: Bug
>          Components: ARQ
>         Environment: *
>            Reporter: Laurent Pellegrino
>            Assignee: Andy Seaborne
>            Priority: Minor
>              Labels: FmtUtils, arq
> A call to FmtUtils#stringForNode(literalNode) with literalNode equals to Node.createLiteral("9",
null, XSDDatatype.XSDint) returns "9"^^xsd:int whereas "9"^^
is expected.
> I have set the issue as minor because it is currently possible to solve the issue by
using the new OutputLangUtils class which returns the right value. However this imply to write
several lines to get the output as a String:
>     StringWriter sw = new StringWriter();
>     OutputLangUtils.output(sw, object, null);
>     new String(sw.getBuffer());
> Maybe, a solution would be to rewrite FmtUtils by using OutputLangUtils? Thus, FmtUtils
will be useful to format Nodes as String and only OutputLangUtils has to be maintained.

This message is automatically generated by JIRA.
For more information on JIRA, see:


View raw message