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

Dimitris Kontokostas commented on JENA-1117:
--------------------------------------------

In 2.13.0, if you use these 2 files and the following code you should recreate 
the problem
https://www.dropbox.com/sh/48pfecxpno4ke9i/AADprncueHrkHlOH61p5esX-a?dl=0

{code:java}
        Model m1 = ModelFactory.createDefaultModel();
        m1.read("extended1.ttl");

        Model m2 = ModelFactory.createDefaultModel();
        m2.read("extended2.ttl");

        boolean isIsomorphic = m1.isIsomorphicWith(m2);
        boolean isSame = m1.difference(m2).isEmpty();
{code}

I tried using "extended1.ttl" in both m1 & m2 but it worked correctly so it 
might be Model.difference() that has the problem
in my program, extended1.ttl is used as input. 
I read extended1.ttl & recreate extended2.tll programmatically. 
In the end I expect both files to be the same.

> Model.isIsomorphicWith() does not behave correctly
> --------------------------------------------------
>
>                 Key: JENA-1117
>                 URL: https://issues.apache.org/jira/browse/JENA-1117
>             Project: Apache Jena
>          Issue Type: Bug
>          Components: Jena
>    Affects Versions: Jena 2.13.0
>         Environment: Ubuntu 15.10
>            Reporter: Dimitris Kontokostas
>            Priority: Minor
>
> The following code succeeds on the first check where the difference is empty 
> but fails with isIsomorphicWith() where it shouldn't
> {code:java}
>    Model difference = inputModel.difference(outputModel);
>    assertThat(difference.isEmpty()).isTrue();
>    assertThat(inputModel.isIsomorphicWith(outputModel)).isTrue();
> {code}
> The code does not fail always, works with all of my test files except the 
> following:
> https://raw.githubusercontent.com/AKSW/RDFUnit/d29315a5fef16855253222d5606555bbf2b5a1f6/rdfunit-model/src/test/resources/org/aksw/rdfunit/model/results/sample.extendedTestCaseResult.ttl



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to