Open jclerman opened 1 year ago
After some experimentation I found that the above behavior, and some related-seeming behavior (bug) where I could not even edit some language-tagged annotation-values in Protege, was all apparently caused by one thing: The affected annotation property was modeled with an OWL range
of xsd:string
. That seems fine (and good) for the annotation-property in question, but is somehow incompatible (in Protege) with language-tagged strings.
Not sure if the incompatibility is correct per OWL - but even if it is, the weird/lost functionality in Protege shouldn't happen; instead it'd be much better if Protege detected the problem and displayed a useful error message, like: "Ontology contains language-tagged string values for annotation-property X, but language-tagged values are outside the stated range of xsd:string
for X".
Summary
The new language-tag autocomplete functionality in Protege 5.6.x is really nice. However, today I found that I was suddiently unable to enter the tag on a given annotation. The behavior seems inconsistent - for example, I can enter an annotation ("comment") on the ontology itself, and set a language-tag for that comment - no problem.
However, here I am trying to enter a tag for a string-annotation on a class - and sometimes it works, but sometimes I can only enter one character of the tag (when I enter the 2nd character, the first one becomes invisible, though trying to select the tag in the UI shows the whole thing, backwards as I recall), and autocomplete is also not working.
Screenshot
Stack-trace
I also see a bunch of these stack-traces in the log; these may correlate to the behavior:
Environment
Protege 5.6.1 MacOS 12.6.3 (Monterey)