Re: Add subclasses into an ontology

Posted by Jiba on
URL: http://owlready.306.s1.nabble.com/Add-subclasses-into-an-ontology-tp3016p3027.html

Hello,

You can add a new subclass as follow:

with onto:
    class Plasmid(onto.ParentClass) : pass


ParentClass needs to be defined at the same IRI as the ontology. If it is not, you can use default_world["http://full_iri/to/ParentClass"] to obtain the parent class.

Jiba