Ejemplo n.º 1
0
        public new IListTerm GetAsListOfTerms()
        {
            IListTerm l = new ListTermImpl();

            l.Add(GetLabel());
            l.Add(GetTrigger());
            l.Add(GetContext());
            l.Add(GetBody());
            return(l);
        }
Ejemplo n.º 2
0
        /** returns this literal as a list with three elements: [functor, list of terms, list of annots] */
        public IListTerm GetAsListOfTerms()
        {
            IListTerm l = new ListTermImpl();

            l.Add(GetNS());
            l.Add(new LiteralImpl(!Negated(), GetFunctor()));
            IListTerm lt = new ListTermImpl();

            l.Add(lt);
            if (HasAnnot())
            {
                l.Add(GetAnnots().CloneLT());
            }
            else
            {
                l.Add(new ListTermImpl());
            }
            return(l);
        }