Hi,
I'm trying to get all differences between two ontologies. (Specifically, the same ontology loaded before and after a modification.) For this I used rdflibs set operations as described here:
https://rdflib.readthedocs.io/en/stable/_modules/rdflib/graph.htmlI tried having my ontologies in different worlds and in the same world, but in both cases I got a lot more results than I should have. I then tried subtracting the graph of the ontology from itself like this:
diff = or2.default_world.as_rdflib_graph() - or2.default_world.as_rdflib_graph()
for bla in diff:
print(bla)
... and I did not get an empty result, as I would expect, but still something that looked like the entire triple store. (Same result using XOR ^.) So I wondered if this may be due to owlready's implementation of the rdfgraph? I remember there being issues with that before.
If not, what else can I try?
Also, this is likely my last post here. I would like to thank you for the *excellent* support this package receives!
-Stefan