[
https://issues.apache.org/jira/browse/JENA-1359?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16042443#comment-16042443
]
Andy Seaborne commented on JENA-1359:
-------------------------------------
The report is rather unclear - a complete, minimal example would help. I'm
guessing it is a question about the model API {{Literal}} class.
The value is coerced to the narrowest type. It is returned as a java {{Number}}.
TDB1 loses some integer-derived types but not decimal->integer.
ARQ internally calculates in XSD rules where numeric promotion happens but not
decimal->integer.
See also JENA-733.
> Literal.getValue() does not respect the datatype
> -------------------------------------------------
>
> Key: JENA-1359
> URL: https://issues.apache.org/jira/browse/JENA-1359
> Project: Apache Jena
> Issue Type: Bug
> Reporter: Panagiotis Papadakos
>
> I was expecting that the getValue would return a Java object based on the
> datatype of typed literals. This is not the case, since jena will coerce a
> decimal literal with value 12.0 to an Integer with value 12.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)