Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for OASIS XML Catalog files #28

Open
gaurav opened this issue Oct 16, 2018 · 1 comment
Open

Add support for OASIS XML Catalog files #28

gaurav opened this issue Oct 16, 2018 · 1 comment
Labels
programming only No discussion necessary; just pure programming needed

Comments

@gaurav
Copy link
Member

gaurav commented Oct 16, 2018

As of PR #25, both TestCommand and WebserverCommand have support for a local ontologies directory, which will be scanned for ontologies before reasoning. Ontologies in that directory will always supercede those with the same URI available online.

A more sophisticated system could be built by using OASIS XML Catalog files, which is the same format that Protege uses. Allowing users to specify an XML catalog file would give users fine control over exactly which local and which remote ontologies to use. If we could further provide a command line option for recording the source of each ontology in an XML catalog, this might make it easier for users to customize it to their needs.

Java includes a library for reading such files, and it should be possible to use this to implement an OWLOntologyIRIMapper. If this doesn't work for some reason, Protege has published a library for reading XML catalogs that includes an OWLOntologyIRIMapper for XML catalogs.

@hlapp
Copy link
Member

hlapp commented Oct 18, 2018

The point in terms of use case that I think shouldn't be missed is that this isn't just a technical matter. A user could use the Protege GUI to choose and define where all the ontologies come from (including those imported), and Protege will automatically save this in a catalog file. If jsphyloref can reuse that file, users would get a GUI for creating them for free.

@gaurav gaurav added the programming only No discussion necessary; just pure programming needed label Aug 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
programming only No discussion necessary; just pure programming needed
Projects
None yet
Development

No branches or pull requests

2 participants