Dynamic annotations

Posted by Mathias Millet on
URL: http://owlready.306.s1.nabble.com/Dynamic-annotations-tp456.html

Hello,
I am trying to dynamically access annotations of indviduals and classes
(i.e. use something like
my_indiv[var]
where var is a string containing the name of an annotation).

I found a workaround working with individuals :

my_indiv.__getattr__(var) seems to work,

but this doesn't work with classes.

Do you know if I can get through this ?

Thanks, Mathias