Re: List ids from world object

Posted by Jiba on
URL: http://owlready.306.s1.nabble.com/List-ids-from-world-object-tp2247p2256.html

Hi,

You can use default_world.ontologies, which is a dictionary mapping base IRI to ontologies. You may also use default_world.ontologies.values() to obtain all ontologies and then build the dictionary of your choice, e.g.:

d = {ontology.name : ontology for ontology in default_world.ontologies.values()}

Jiba