Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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);
        }