infinite loop in cyclic class despite claim "ignoring cyclic subclass"

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

infinite loop in cyclic class despite claim "ignoring cyclic subclass"

sbin
Hi,

I tried to load this ontology:

    from owlready2 import *
    onto = get_ontology("https://raw.githubusercontent.com/SmartDataAnalytics/SML-Bench/develop/learningtasks/animals/owl/data/animals.owl").load()

    onto.world['http://dl-learner.org/benchmark/dataset/animals/Animal'].instances()

There is already a big warning:

* Owlready2 * Warning: ignoring cyclic subclass of/subproperty of, involving:
  http://dl-learner.org/benchmark/dataset/animals/Lizard

But the code never returns as it seems, so it doesn't ignore the cyclic Lizard :-)

manually fixing the onto works