Re: How to gathered the way items are linked in an ontology

Posted by Jiba on
URL: http://owlready.306.s1.nabble.com/How-to-gathered-the-way-items-are-linked-in-an-ontology-tp344p350.html

Hi,

Do you want to list the instances or classes that have some "Relation" with "otherObject" ? In this case, you need to call the reasoner (with sync_reasoner() ), and then to list the instances or subclasses of UsingRelation (with UsingRelation.instances() for instances or UsingRelation.subclasses() for classes).