'How can I implement a list of subclass from a class in python's owlready2?

I want to get all the subclasses for each class in a ontology built on protege and imported into python using owlready2. How can I create a list of all the subclasses for a set class of this ontology ?



Solution 1:[1]

Just use list(class_name.subclasses())

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 gag123