I'm trying to use owlready2 for quite simple task - build ontology class tree and let users pick classes. I already done it with Ontobio library but I like the sqlite concept very much for I might use some really big ontologies (in terms of million classes).
I'm finding hard to navigate in the model since the Docs are more focused on creation and analysis and ipython introspection doesn't work out very well here.
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.