If you have an OWL class with label L1. This class has some annotation X and this annotation X is itself annotated with a label L2, this will cause problems with OWL-API 4.1.0 RC2. The reason is that
EntitySearcher will return L1 and L2 and there is no way to distinguish the labels.
Here is Iganzio's reply: There was an issue reported about this, the problem is that getAnnotations() collects annotations on annotation axioms as well. Use getAnnotationObjects() available in the latest version4 branch. There is a RC 4 build available on Sonatype - to be released soonish.
I am waiting for version RC4!
Other owlapi posts
drseb ONTOLOGIES · OWLAPI