Hi,
That's a good question... I've just tried, and it appears to work.
You can do it as follows (NB the Thing class is defined in the owl pseudo ontology):
from owlready2 import *
onto = get_ontology("
http://test.org/test.owl")
with onto:
class MyClass(Thing): pass
with owl:
class Thing(Thing):
def test_func(self, x): print(x)
m = MyClass()
m.test_func("eee")
Jiba