I've just tried the small script below, but it seems to work as expected. Are you sure the problem is not somewhere else ?
> I'm trying to generate dynamically some classes along with their labels with
> the following script:
> for clas in small_OGG.classes():
> for Class in small_GO.classes():
> if labelOGG in clas.label and str(Class) == GO_ID:
> with GOnamespace:
> New_Class = types.new_class(str(clas).split('.'),
> New_Class.label = [label for label in clas.label]
> I can generate the new ontology with the new cross ontology subclasses, but
> label is not generated. From the documentation I understood that adding
> labels to a new class is done by means of a list of strings, which is what I
> was trying, but it doesn't work. Is there anything I'm not understanding?
> If you reply to this email, your message will be added to the discussion below:
> To start a new topic under Owlready, email [hidden email]
> To unsubscribe from Owlready, visit