Esempio n. 1
0
        public virtual void add(java.net.URL url, string str, org.openrdf.rio.RDFFormat rdff, params org.openrdf.model.Resource[] rarr)
        {
            Object            obj      = SesameHelper.LoadFromUri(url, str, rdff);
            IEnumerable <Uri> contexts = rarr.ToContexts(this._mapping);

            this.AddInternal(obj, contexts);
        }
Esempio n. 2
0
 protected override void RemoveInternal(object obj, IEnumerable <Uri> contexts)
 {
     if (contexts.Any())
     {
         SesameHelper.ModifyStore(obj, this.RemoveGraphFromContext, contexts);
     }
     else
     {
         SesameHelper.ModifyStore(obj, this.RemoveGraph);
     }
 }
Esempio n. 3
0
 protected override void AddInternal(Object obj, IEnumerable <Uri> contexts)
 {
     if (contexts.Any())
     {
         SesameHelper.ModifyStore(obj, this.AddGraphToContext, contexts);
     }
     else
     {
         SesameHelper.ModifyStore(obj, this.AddGraph);
     }
 }