Hello!
Is there an elegant way of recursively extracting all superclassifiers of an element in the model? For example: Extract all animals, mammels, cats, dogs from the following example model:
abstract part def Animal;
abstract part def Mammal :> Animal;
abstract part def Bird :> Animal;
abstract part def Cat :> Mammel;
abstract part def Dog :> Mammel;
part def PersianCat :> Cat;
part def BritishShorthair :> Cat;
part def GermanShepherd :> Dog;
part def GoldenRetriever :> Dog;
My script currently only extracts the next associated element (PersianCat is Cat), but I would like to also get its superclassifiers (PersianCat is a Cat, and also a Mammel and Animal).
Thanks!
Tom