public static IEnumerable <ROntologyClassDefinition> TargetTypes(this ROntologyDef propDef) { return(propDef.DirectObjectLinks("range") .SelectMany(link => (link.Target as ROntologyClassDefinition) .DescendantsOrSelf() .Where(type => !type.IsAbstract))); }
public static string OntologyName(this ROntologyDef definition, bool isDirect) { return(isDirect ? definition.Label : ((ROntologyObjectPropertyDefinition)definition).InverseLabel); }