Is there a simple tool (written in Java?) that compares two almost identical ontologies in TTL format and shows the differences in them? I have two ontologies which should be ABSOLUTELY identical but there are some relationships missing in one of them and this is exactly what I need to find.
I know that one could write such a thing for example in Jena, but I would like to avoid that work. The tool does not have to match the ontologies, I'm only interested in the differences.
Thanks a lot.
asked 11 Aug '11, 08:53
The Jena Model interface has a "difference" method, which you can use to compute what's changed between two models. E.g. for model A and B, first computing A.difference(B), then computing D.difference(A), will show you all the statements you're after.
I used this in some code last year to highlight any differences between what my code was producing and what it was expected to produce.
answered 11 Aug '11, 09:40
Sounds like jena.rdfcompare may be what you are looking for, not sure how verbose the output is in terms of what differences it shows as never used it myself so whether it meets your use case or not is hard to tell.
I have code that is in my APIs that can be used to
answered 11 Aug '11, 09:02
Rob Vesse ♦
There are a couple of ways to diff two ontologies in TopBraid Suite. The first is to use the TBC UI. This returns triples defined by a diff ontology that shows 'old' and 'new' triples. Bnode differences can be turned off to avoid confusing actual changes with differences in bnode values between sessions.
The second way is to run this as a SPARQLMotion script, meaning the diff can be run as a Web service (or SPARQL endpoint) and return the change model.
answered 13 Aug '11, 13:17
I am the author of
I think that it is just what you are looking for.
OntoVCS has been almost completely rewritten. It is now called owl2vcs and hosted at GitHub.