In my ontology, I have defined an annotation called visible, to determine if an object (class, data property, object property or annotation property) can be visible in my application.
To do that, I assign annotation visible to it and set the value false to hide the corresponding object (class, data property, object property or annotation property). If 'visible' is not assigned on my object, or if another value is set on 'visible' annotation for the corresponding objeft, I consider it as visible and show it.
I works fine except for standard annotations, like comment, label, .. i.e. all the annotations that belong to the namespaces owl or rdfs.
Standard annotations, like OWL classes such as Thing, are treated specially in Owlready and they are common to all world. As a consequence, they are not associated with a quadstore and you cannot read your "visible" annotation.
The only solution is to bypass Owlready, e.g. using SPARQL as follows: