예제 #1
0
 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"));
 }
예제 #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)));
 }