Re: Ontology tree

Posted by Tomáš Müller on
URL: http://owlready.306.s1.nabble.com/Ontology-tree-tp1178p1187.html

Great, thanks for help.

Parents, children etc. is clear now... is there some API reference somewhere? That would help a lot.

What is the proper way to "get" Thing (like import or obtain it from some method). I used the Thing you get from .ancestors() (owl.Thing) method and calling .subclasses() returns empty just list. Now I just scan all the classes for their ancestors and children but that doesn't matter much since I need to do this just once and cache the result.

I'm not sure that I got the World concept right. Is it supposed to contain all (unrelated) ontologies? Because I loaded 2 ontology sets into my World  and If I used .search() method on one ontology, it returned even some classes from unrelated ontology, like it searched the World. So now I have separate World for each ontology set (i.e. ontologies that import each other) and that works for me well.

Thanks very much, this starts to look great :-)