Problem with disjoint.classes?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Problem with disjoint.classes?

Mike Bergman
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!
Reply | Threaded
Open this post in threaded view
|

Re: Problem with disjoint.classes?

Jiba
Administrator
Hi,

I tested it on a small example and it worked well. Could you send me your ontology by mail at jibalamy@free.fr ?

Jiba