You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "Andy Seaborne (JIRA)" <ji...@apache.org> on 2012/07/13 14:42:34 UTC
[jira] [Closed] (JENA-254) rdfcat produces invalid decimals N3
[ https://issues.apache.org/jira/browse/JENA-254?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andy Seaborne closed JENA-254.
------------------------------
> rdfcat produces invalid decimals N3
> -----------------------------------
>
> Key: JENA-254
> URL: https://issues.apache.org/jira/browse/JENA-254
> Project: Apache Jena
> Issue Type: Bug
> Components: Jena
> Affects Versions: Jena 2.7.0
> Reporter: Boris De Vloed
> Assignee: Andy Seaborne
> Priority: Minor
>
> According to the N3 grammar, decimals must have at least one digit to the left of the decimal point.
> Rdfcat ignores this when abbreviating datatyped xsd:decimal literals.
> This causes reasoners like CWM and (older versions of) EYE to throw syntax errors.
> http://www.w3.org/TeamSubmission/n3/
> decimal ::= [-+]?[0-9]+(\.[0-9]+)?
> Test case:
> rdfcat -ttl test.ttl -out N3 > result.n3
> test.ttl:
> @prefix xsd: <http://www.w3.org/2001/XMLSchema#>.
> @prefix : <#>.
> :s :p ".3"^^xsd:decimal.
> result.n3
> @prefix : <file:///home/axgze/tmp/decimal/test.ttl#> .
> @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
> :s :p .3 .
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira