unexpected emptyness of instances of Thing

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

unexpected emptyness of instances of Thing

sbin
Hi,

Please consider the following code,

from owlready2 import sync_reasoner, get_ontology, owl

onto = get_ontology('father.owl').load()

sync_reasoner()
print(list(owl.Thing.instances()))

with this ontology: https://github.com/SmartDataAnalytics/DL-Learner/blob/develop/examples/family/father.owl

I would expect the instances to be anna, michelle, heinz, markus, martin, and stefan.

However, the list ends up empty.

maybe a missing equivalence class consideration?

What do you think?

Best,
Reply | Threaded
Open this post in threaded view
|

Re: unexpected emptyness of instances of Thing

Jiba
Administrator
Hi,

In your ontology, the class person is not explicitly declared as a child of Thing.

I fixed the problem in the development version of Owlready. You can also use default_world.individuals() to list all individuals.

Jiba