You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "Gilles Habran (JIRA)" <ji...@apache.org> on 2017/03/03 16:33:45 UTC

[jira] [Created] (JENA-1303) Starting 0 in XSDnonNegativeInteger is badly interpreted

Gilles Habran created JENA-1303:
-----------------------------------

             Summary: Starting 0 in XSDnonNegativeInteger is badly interpreted
                 Key: JENA-1303
                 URL: https://issues.apache.org/jira/browse/JENA-1303
             Project: Apache Jena
          Issue Type: Bug
    Affects Versions: Jena 3.2.0, Jena 3.1.1, Jena 3.1.0
            Reporter: Gilles Habran


Hello,

we are currently using Jena 2.7.2 and we need to upgrade to Jena 3.1.0. We cannot use 3.1.1+ because Oracle Jena Adapter does not support other version than 3.1.0.

Here is a test to show the problem.

Jena 2.7.2 returns true and Jena 3.1.0 returns false

{code}        Model model1 = ModelFactory.createDefaultModel();
        model1.add(model1.createResource("http://jena.apache.org/test"), model1.createProperty("http://jena.apache.org/size"), model1.createTypedLiteral("05", XSDDatatype.XSDnonNegativeInteger));
        Model model2 = ModelFactory.createDefaultModel();
        model2.add(model2.createResource("http://jena.apache.org/test"), model2.createProperty("http://jena.apache.org/size"), model2.createTypedLiteral("5", XSDDatatype.XSDnonNegativeInteger));
        Assert.assertTrue(model1.isIsomorphicWith(model2));{code}





--
This message was sent by Atlassian JIRA
(v6.3.15#6346)