From: Sergey N. <ser...@gm...> - 2010-08-17 14:39:52
|
Hi guys. I'm trying to use SesameHttpProtocolConnector. I'm connecting to Sesame: *SesameHttpProtocolConnector sesame = new SesameHttpProtocolConnector(" http://172.23.34.214:8080/openrdf-sesame", "memstore");* *NativeTripleStore store = new NativeTripleStore(sesame);* I can make queries: *Object results = store.ExecuteQuery("SELECT * WHERE {?s ?p ?o}");* And get correct results But when I'm trying to add statement *Graph g = new Graph();* *Triple tr = new Triple(g.CreateUriNode(new Uri("http://test.com/resource1")), g.CreateUriNode(new Uri("http://test.com/predicate1")), g.CreateLiteralNode("Hello world test"));* *g.Assert(tr);* *store.Add(g);* Then no exeption happened nor statement being added to repository. I've tried to see *store *property (instance of NativeTripleStore). And found that: store.IsEmpty = true store.Graphs.Count = 0 store.Triples.Count() = 0 for my case. And that's why I can't actually use store. What am I missing? What am I doing wrong? Thank you in advance. Best regards, Sergey Novikov |