public static bool NotionTreeLinearOntoContainsTerm(opis nt, opis term) { var forms = OntologyTreeBuilder.Forms(term); bool found = false; nt.RunRecursively(x => { found = found || ContainNonPrefixedSuffixed(x.body, forms); }); return(found); }
public static bool NotionTreeContainsTerm(opis nt, opis term) { var forms = OntologyTreeBuilder.Forms(term); bool found = false; nt.RunRecursively(x => { found = found || forms.Contains(x.PartitionName); }); return(found); }