public IOrderedEnumerable <T> DirectPropertyDefinitions <T>(ROntologyObjectPropertyDefinition externProp) where T : ROntologyDef
 {
     return(DirectPropertyDefinitions <T>()
            .Where(x => x is ROntologyDatatypePropertyDefinition || (x as ROntologyObjectPropertyDefinition) != externProp)
            .OrderBy(x => x.XSource.Attribute("priority") != null ? x.XSource.Attribute("priority").Value : "zzz"));
 }
Exemple #2
0
 public IEnumerable <SNode> ObjectLinksTarget(ROntologyObjectPropertyDefinition def)
 {
     return(_directProperties.Where(prop => prop.Definition == def && (prop as SObjectLink).Target != null).Select(prop => (prop as SObjectLink).Target)
            .Union(InverseProperties().Where(prop => prop.Definition == def).Select(prop => prop.Target)));
 }