hello jena folks!
I am trying to create an ontology diff tool. to do so, I am making two
jena models and comparing them.
I have two sets of ontologies like so:
OntVer1/startOnt.owl
OntVer1/importedOnt.owl
OntVer2/startOnt.owl
OntVer2/importedOnt.owl
in the startOnt, there is an import statement to import the second file.
I create separate models with different specs and document manager, turn
model caching off, and call docManager.getFileManager().resetCache()
between loading the first ontology into the first model and the second
ontology into the second model.
I also have a read hook set up to show me when files are being loaded.
what I observe is that OntVer1 files are both being loaded, and then
OntVer2/startOnt.owl IS being loaded, but the OntVer2/importedOnt.owl
file IS NOT being loaded. I explicitly load both of the startOnt.owl
files, but the importedOnt.owl files are imported implicitly by import
statements. Because of this, I think jena is caching the imports
somehow, but I can't see where this is happening or how to get it to stop.
is there something anyone can recommend here?
thanks!
-thomas marsh