protegeproject / webprotege

The webprotege code base
Other
626 stars 251 forks source link

Annotation property in New Entity Language Settings does not take effect #703

Open csnyulas opened 4 years ago

csnyulas commented 4 years ago

I have a project where, regardless of what value I set for the Annotation property in the New Entity Language Settings, the new entities that I create will always get their title saved in the rdfs:label annotation property. I tried various combinations, but I could never make the setting for the Annotation property take effect, for this particular project. The project was created by another user, and I have "Manage" access rights to it. Other users with "Manage" access have the same problem as I. They can change the value of the property, I can see their change, but when either of us creates a new class, the title will be saved in the rdfs:label property.

On the other hand, I could not reproduce this behavior on a different project. If I create a new project, I can change the annotation property for new entities, and it takes effect. Other users with manage access rights can also change the property on my other projects and it takes effect for all of us. So, I am puzzled of why this problem appears for this particular project.

csnyulas commented 4 years ago

Finally I found the problem: it is related to the New Entity Setting. If in the Project Settings I select the option "Supplied name" for the IRI Suffix option, and "Collapse and transform to CamelCase" for Spaces, the Annotation property in the New Entity Settings will be ignored. This is wrong, because a user may want to use skos:prefLabel, or any other (perhaps his or her own) annotation property, to save the human readable title of their entities, while still allowing the generation of meaningful IRIs for the entities.

Further tests show, that the option selected for Spaces is not relevant. If the IRI Suffix option is set to "Supplied name", the problem occurs. For any other option selected for IRI Suffix WebProtégé behaves correctly.