Hi Ashish,
> *1st Requirement:*
the code should be able to find the static mapping based on A.owl. The
places to look for the mapping are fixed:

classpath in server mode (WEB-INF/lib), classpath in JUNIT mode
essentially.

Also, when the above ontologies are available over the Web the http URL
should be given precendence over classpath lookup.
There are no built-in locators that perform the kind of search strategy that you describe. However, all you need to do is provide your own implementation of chhj.util.Locator (see [1]) that implements the composite strategy that your application needs, and register that with the FileManager.

I am able to achieve this by extending OntDocumentManager and over riding
the 'loadImport(final OntModel model, final String importURI, final
List<String> readQueue)' method but for some reason there are 2 methods
which are hidden and have to copy those as well.
Details? We can only fix the problems we know about. If you can't extend a class that you want to, I'd treat that as a bug. Please file a JIRA detailing the problem.

Ian

[1] http://jena.apache.org/documentation/javadoc/jena/com/hp/hpl/jena/util/Locator.html


Reply via email to