public org.openrdf.model.Resource export(org.openrdf.model.Graph g)
 {
     SesameGraph temp = new SesameGraph(g);
     if (this._repo is IConfigurationSerializable)
     {
         IUriNode subj = temp.CreateUriNode(new Uri("dotnetrdf:interop:sesame:repository:" + this._name));
         ConfigurationSerializationContext context = new ConfigurationSerializationContext(temp);
         context.NextSubject = subj;
         ((IConfigurationSerializable)this._repo).SerializeConfiguration(context);
         return g.getValueFactory().createURI(subj.ToString());                
     }
     else
     {
         throw new NotSupportedException("The underlying Repository does not support having it's Configuration serialized");
     }
 }
Beispiel #2
0
        public org.openrdf.model.Resource export(org.openrdf.model.Graph g)
        {
            SesameGraph temp = new SesameGraph(g);

            if (this._repo is IConfigurationSerializable)
            {
                IUriNode subj = temp.CreateUriNode(new Uri("dotnetrdf:interop:sesame:repository:" + this._name));
                ConfigurationSerializationContext context = new ConfigurationSerializationContext(temp);
                context.NextSubject = subj;
                ((IConfigurationSerializable)this._repo).SerializeConfiguration(context);
                return(g.getValueFactory().createURI(subj.ToString()));
            }
            else
            {
                throw new NotSupportedException("The underlying Repository does not support having it's Configuration serialized");
            }
        }