protege icon indicating copy to clipboard operation
protege copied to clipboard

Refactor>Convert entity IRIs to labels doesn't seem to be working

Open mdebellis opened this issue 4 years ago • 1 comments

I wanted to convert an ontology with user supplied IRIs to have auto generated UUIDs and then put the existing user supplied name from the IRI in the rdfs:label field. Pizza w DataV2.zip

I noticed there is a Refactor command that seems like it should do what I want: "Refactor>Convert Entity IRIs to labels" I tried that command on the attached ontology which has no values set for any rdfs:label properties. The result in the log after running the command was:

INFO 07:42:24 Converted 0 entities to use labels

The command says that it uses the preferences for New Entities which I had set to use Auto-Generated UUIDs before running the command. I'm attaching the file and screen prints below of what my New Entity and Renderer preferences were before running the command. I submitted this to the user support list to see if I was misunderstanding how to use the command but no one could figure out why this didn't work and the suggestion was to add this as an issue.

Michael DeBellis RenderPrefs NewEntityPrefs

mdebellis avatar Jun 03 '21 22:06 mdebellis

I still think this would be nice to have but I wanted to mention I've implemented some SPARQL queries that do this now in case anyone faces a similar problem. I tested it on the Pizza tutorial and on a client ontology that was pretty large. I haven't tested it with ontologies that have punned classes or properties or SWRL rules although I think it would work on both: https://www.michaeldebellis.com/post/refactor_iri_names_to_uuids

mdebellis avatar Jan 06 '22 19:01 mdebellis