Boris De Vloed created JENA-254:
-----------------------------------
Summary: 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
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