|
I have imported a small ontology with disjoint classes using Jupyter Notebook. The Owlready2 manual says disjoint_classes() returns a generator. However, while list(onto.classes()) works on the ontology, list(onto.disjoint_classes()) does not. It returns this error:
TypeError: type.__new__() argument 1 must be str, not int
Can anyone help me figure out the problem here?
I am happy to supply the owl file if that would be helpful (just direct how).
Thanks!
|