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

"import an ontology contained in a document located on the web" does not work #601

Open
jgrzebyta opened this issue Jan 12, 2017 · 3 comments

Comments

@jgrzebyta
Copy link

Importing option import an ontology contained in a document located on the web does not work even if I give URI to the remote file on bitbucket. Still local file is imported.

@csnyulas
Copy link
Member

Can you describe the problem in more detail? I just tried it and it worked for me.
This is what I did: I found a random ontology on bitbucket (feudalism.owl), and I clicked on the Raw button to get the URL to the raw OWL file:
https://bitbucket.org/magicrebirth/ontology-foundry/raw/1394c7fd09fae62004bd7eeec90ed097b69f3fd6/feudalism/feudalism.owl
Then, I opened Protege, and in the "Ontology imports" view I pressed the green + button in the "Direct imports" section. I selected the option Import an ontology contained in a document located on the web, copied the above URL in the URI box on the next page, and the ontology was imported from the Web as expected (minus some indirect imports that I skipped).

What part did not work for you?

@csnyulas
Copy link
Member

Please ignore my previous comment. I just found your original email on the mailing list that provides the details:
http://protege-project.136.n4.nabble.com/owl-import-ignores-web-imports-td4667294.html

I think what you need to do is to edit the ontology catalog that is used by Protege to resolve the sources of the imported ontologies. There are three menu items that can help you with this in the File menu:

  • Edit active ontology catalog...
  • Edit ontology catalog file...
  • Loaded ontology sources...

Can you fix your problem editing those?

@jgrzebyta
Copy link
Author

jgrzebyta commented Feb 2, 2017

I have changed all imported URIs to the external location, eg. https://bitbucket.org/jgrzebyta/adalab-ontologies/raw/master/AdaMeta/dc_import.owl and everything was changed inside widgets opened by those commands.

Thus all changed I do goes to local files (managed by git) but external machinery (bioportal.bioonology) gets files from the remote location.

IHMO still that is a bug so I do not close the issue but maybe I am wrong. I leave that decision to Protege programmers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants