[ 
https://issues.apache.org/jira/browse/JENA-254?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13293846#comment-13293846
 ] 

Andy Seaborne commented on JENA-254:
------------------------------------

Thank you for the report.

Jena will follow Turtle here - N3 as a writer name is a convenience as people 
confuse N3 and Turtle.  The current working draft for Turtle is wrong but the 
intention seems to be be to allow .3.  I'll check with the WG.

                
> 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

        

Reply via email to