Example #1
0
 public Model add(Statement[] sarr)
 {
     foreach (Statement stmt in sarr)
     {
         this._g.Assert(JenaConverter.FromJena(stmt, this._mapping));
     }
     return(this);
 }
Example #2
0
        public Model add(Model m)
        {
            Graph h = new Graph();

            JenaConverter.FromJena(m, h);
            this._g.Merge(h);
            return(this);
        }
Example #3
0
 public Model add(StmtIterator si)
 {
     while (si.hasNext())
     {
         Statement stmt = si.nextStatement();
         this._g.Assert(JenaConverter.FromJena(stmt, this._mapping));
     }
     return(this);
 }
Example #4
0
        public Model add(Model m, bool b)
        {
            Graph h = new Graph();

            JenaConverter.FromJena(m, h);
            if (b)
            {
                //TODO: Suppress reification triples
            }
            this._g.Merge(h);
            return(this);
        }
Example #5
0
        public Model add(List l)
        {
            ListIterator iter = l.listIterator();

            while (iter.hasNext())
            {
                Object obj = iter.next();
                if (obj is Statement)
                {
                    this._g.Assert(JenaConverter.FromJena((Statement)obj, this._mapping));
                }
            }
            return(this);
        }
Example #6
0
 public bool contains(Statement s)
 {
     return(this._g.ContainsTriple(JenaConverter.FromJena(s, this._mapping)));
 }
Example #7
0
 public Model add(Statement s)
 {
     this._g.Assert(JenaConverter.FromJena(s, this._mapping));
     return(this);
 }