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