Hi,
Here is an example :
onto = get_ontology("
http://test.org/onto.owl")
with onto:
class A(Thing): pass
class B(A): pass
class C(B): pass
print(list(onto.search(subclass_of = A)))
# prints [onto.A, onto.B, onto.C]
Notice that A is considered as a subclass of itself.
Jiba