|
I encounter a bug after running a reasoner (both HermiT and Pellet) in owlready2==0.37:
* Owlready * Reparenting owl.Thing: set() => {owl.Thing}
[...]
File "/usr/local/bin/anaconda3/envs/owlready_bugreport/lib/python3.7/site-packages/owlready2/entity.py", line 234, in __setattr__
type.__setattr__(Class, attr, value)
TypeError: a __bases__ item causes an inheritance cycle
I'm not sure why, but apparently the reasoner recasts Thing as its own subclass.
For the reasoner itself, this is no issue: it runs just fine in Protege with the same reasoners.
Currently, I created my own workaround, where I skip the case of Thing being reparented to itself (maybe this should be expanded to any ontology class?)
My questions: 1. Please let me know how I can push my branch to the git project and file a merge request
2. Or if you think that these scenarios are instead the result of bad ontology logic, feel free to elaborate
|