Administrator
|
Hello,
(1) in the format argument, you passed the class i, thus the class is rendered as a string. By default, Owlready renders its as "family.Brother", hence the result you obtain.
You may pass i.name if you only want the class name.
(2) to add a new class to an individual, you can simply add to the individual .is_a list, e.g. :
for j in i.direct_instances(): j.is_a.append(NewClass)
You may also remove classes from the list.
Jiba
|