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

ASF GitHub Bot commented on JENA-1370:
--------------------------------------

GitHub user afs opened a pull request:

    https://github.com/apache/jena/pull/270

    JENA-1370: Provide term-only GraphPlain. Use GraphPlain for Delta graph

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/afs/jena plain-graph

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/jena/pull/270.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #270
    
----
commit 54d74a723d5371d740c623aef52933d785b2492b
Author: Andy Seaborne <[email protected]>
Date:   2017-07-13T14:43:42Z

    JENA-1370: Provide term-only GraphPlain. Use GraphPlain for Delta graph

----


> Exponent values 
> ----------------
>
>                 Key: JENA-1370
>                 URL: https://issues.apache.org/jira/browse/JENA-1370
>             Project: Apache Jena
>          Issue Type: Bug
>          Components: Jena
>    Affects Versions: Jena 3.2.0
>         Environment: Java 1.8, Ubuntu Linux (xenial)
>            Reporter: Daan Reid
>
> The equality between float values appears to be not working as I expected.
> Example code: 
> {code:java}
>   @Test
>   public void testDeltaSimple() throws Exception {
>     Graph oldGraph = GraphFactory.createGraphMem();
>     Graph newGraph = GraphFactory.createGraphMem();
>     // oldGraph:
>     // <http://example.com/subject> <http://example.com/property> 
> -1.700000e+00 ;
>     // newGraph: 
>     // <http://example.com/subject> <http://example.com/property> -1.7E0 ;
>     RDFDataMgr.read(oldGraph, "oldGraph.ttl");
>     RDFDataMgr.read(newGraph, "newGraph.ttl");
>     Delta delta = new Delta(oldGraph);
>     delta.clear();
>     GraphUtil.addInto(delta, newGraph);
>     if (!delta.isIsomorphicWith(oldGraph)) {
>       
> System.err.println("+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++");
>       RDFDataMgr.write(System.err, delta.getAdditions(), Lang.TURTLE);
>       
> System.err.println("-------------------------------------------------------------------------------------");
>       RDFDataMgr.write(System.err, delta.getDeletions(), Lang.TURTLE);
>       fail("!!!!!!!!!!!!!!!!!!!!!! RDF not equal");
>     }
>   }
> {code}
> Result:
> {noformat}
> +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> -------------------------------------------------------------------------------------
> <http://example.com/subject>
>         <http://example.com/property>  -1.700000e+00 .
> java.lang.AssertionError: !!!!!!!!!!!!!!!!!!!!!! RDF not equal
> {noformat}
> If I start with an empty graph for oldGraph, the new double value is properly 
> added.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to