You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jena.apache.org by Thomas Marsh <tm...@thetus.com> on 2014/02/15 00:00:36 UTC

question about OntDocumentManager

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

Re: question about OntDocumentManager

Posted by Andy Seaborne <an...@apache.org>.
Thomas,

Could you create a JIRA on the issue tracker for this with a complete, 
minimal example (i.e. code someone can run)?

https://issues.apache.org/jira/browse/JENA

	Thanks
	Andy

On 14/02/14 23:00, Thomas Marsh wrote:
> 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