protegeproject / protege

Protege Desktop
http://protege.stanford.edu
Other
1.01k stars 231 forks source link

Change Ontology IRI Doesn't Work as Expected #1064

Open mdebellis opened 2 years ago

mdebellis commented 2 years ago

I just used Refactor>Change ontology iri and while it did change the IRI of my ontology it didn't change all the existing entities in my ontology to have the new IRI which is what I wanted and expected. I undid that change and just tried manually editing the ontology IRI in the Ontology IRI field of the Active Ontology tab. When I did that, Protege asked me if I wanted to rename all the N existing entities and I said yes and it did what I wanted. I think it would make sense for the Refactor command to also do the same, to put up the same window as when one manually edits the ontology IRI and offer the option to change the IRIs of all the entities in the ontology.

MB-Presents commented 1 year ago

I used following workaround for this issue: (1) Duplicate the file, (2) Search and replace the old IRI with the new IRI in a text editor, (3) check if everything is working fine, (4) delete the original file and rename the new file.