diff --git a/linkml_runtime/utils/schemaview.py b/linkml_runtime/utils/schemaview.py index f3ee0036..f04b4d58 100644 --- a/linkml_runtime/utils/schemaview.py +++ b/linkml_runtime/utils/schemaview.py @@ -1951,6 +1951,7 @@ def get_classes_by_slot(self, slot: SlotDefinition, include_induced: bool = Fals induced_slot_names = [ind_slot.name for ind_slot in self.class_induced_slots(c_name)] if slot.name in induced_slot_names: classes_set.add(c_name) + break return list(classes_set)