Removing the owl:Thing type when using compareRdf(). That was causing issue when the OWLAPI was adding inferred triples and when we were comparing two RDF documents that were coming from the ontologies endpoints.