protege icon indicating copy to clipboard operation
protege copied to clipboard

Change Ontology IRI Doesn't Work as Expected

Open mdebellis opened this issue 2 years ago • 1 comments

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.

mdebellis avatar Jul 25 '22 22:07 mdebellis

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.

MB-Presents avatar Feb 16 '23 23:02 MB-Presents