[ 
https://issues.apache.org/jira/browse/JENA-1674?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andy Seaborne updated JENA-1674:
--------------------------------
    Description: 
Reported on users@:
https://lists.apache.org/thread.html/063ad1651c559752080001c7faa40d24d0bf29d78636f3a3e222c1ab@%3Cusers.jena.apache.org%3E

Example:
{code}
    public static void main(String[] args) {
        Location loc = Location.mem();
        DatasetGraph dsg = DatabaseMgr.connectDatasetGraph(loc);
        Txn.execute(dsg, ()->dsg.add(SSE.parseQuad("(_ :s :p 
'-1'^^xsd:float)")));
        Txn.execute(dsg, ()->RDFDataMgr.write(System.out, dsg, Lang.NQ));
    }
{code}

  was:
Reported on users@:
https://lists.apache.org/thread.html/063ad1651c559752080001c7faa40d24d0bf29d78636f3a3e222c1ab@%3Cusers.jena.apache.org%3E

Example:
{code}
    public static void main(String[] args) {
        Node[] nodes = { 
            NodeFactory.createLiteral("-1.0", XSDDatatype.XSDfloat )
            , NodeFactory.createLiteral("-1.0", XSDDatatype.XSDdouble )
        };
        
        for ( Node n : nodes ) {
            NodeId nid = NodeIdInline.inline(n);
            Node n2 = NodeIdInline.extract(nid);
            System.out.printf("%-20s => %s\n", n, n2);
        }
    }
{code}


> Mishandling negative xsd:floats in TDB2
> ---------------------------------------
>
>                 Key: JENA-1674
>                 URL: https://issues.apache.org/jira/browse/JENA-1674
>             Project: Apache Jena
>          Issue Type: Improvement
>          Components: TDB2
>    Affects Versions: Jena 3.10.0
>            Reporter: Andy Seaborne
>            Assignee: Andy Seaborne
>            Priority: Major
>             Fix For: Jena 3.11.0
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Reported on users@:
> https://lists.apache.org/thread.html/063ad1651c559752080001c7faa40d24d0bf29d78636f3a3e222c1ab@%3Cusers.jena.apache.org%3E
> Example:
> {code}
>     public static void main(String[] args) {
>         Location loc = Location.mem();
>         DatasetGraph dsg = DatabaseMgr.connectDatasetGraph(loc);
>         Txn.execute(dsg, ()->dsg.add(SSE.parseQuad("(_ :s :p 
> '-1'^^xsd:float)")));
>         Txn.execute(dsg, ()->RDFDataMgr.write(System.out, dsg, Lang.NQ));
>     }
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to