Example #1
0
            public override void Expand(XrefExpander expander, Frame sf, string id, string xRef)
            {
                Clause c = new Clause(OboFormatTag.TAG_RELATIONSHIP, rel);

                c.AddValue(xRef);
                GetTargetFrame(expander, id).AddClause(c);
            }
Example #2
0
            public override void Expand(XrefExpander expander, Frame sf, string id, string xRef)
            {
                Clause gc = new Clause(OboFormatTag.TAG_INTERSECTION_OF, id);
                Clause dc = new Clause(OboFormatTag.TAG_INTERSECTION_OF);

                dc.SetValue(rel);
                dc.AddValue(tgt);
                GetTargetFrame(expander, xRef).AddClause(gc);
                GetTargetFrame(expander, xRef).AddClause(dc);
            }
Example #3
0
            protected Frame GetTargetFrame(XrefExpander expander, string id)
            {
                OBODoc targetDoc = expander.GetTargetDoc(OWLAPIPreconditions.VerifyNotNull(IdSpace, "idSpace not set yet"));
                Frame? f         = targetDoc.GetTermFrame(id);

                if (f == null)
                {
                    f = new Frame
                    {
                        Id = id
                    };
                    try
                    {
                        targetDoc.AddTermFrame(f);
                    }
                    catch (FrameMergeException e)
                    {
                        // this should be impossible
                        LOGGER.Error("Frame merge exceptions should not be possible", e);
                    }
                }
                return(f);
            }
Example #4
0
            public override void Expand(XrefExpander expander, Frame sf, string id, string xRef)
            {
                Clause c = new Clause(OboFormatTag.TAG_IS_A, xRef);

                GetTargetFrame(expander, id).AddClause(c);
            }
Example #5
0
            public override void Expand(XrefExpander expander, Frame sf, string id, string xRef)
            {
                Clause c = new Clause(OboFormatTag.TAG_EQUIVALENT_TO, xRef);

                sf.AddClause(c);
            }
Example #6
0
 public abstract void Expand(XrefExpander expander, Frame sf, string id, string xRef);