From: Rob V. <rv...@do...> - 2013-01-17 10:05:53
|
Hey Yossi Yes the Context property of the Triple class is not persisted, also that will eventually be removed in future versions of the library as that is somewhat defunct. To do what you want to do with dotNetRDF you will essentially have to create named graphs, and then store statements about those named graphs in some other graph e.g. Graph g = new Graph(); g.BaseUri = context; g.Assert(s, p, o); Graph h = new Graph(); h.Assert(context, p1, o1); h.Assert(context, p2, o2); You can then persist all your graphs to your Sesame store. Hope this helps, Rob From: Yossi Cohen <yos...@li...> Reply-To: dotNetRDF User Help and Support <dot...@li...> Date: Tuesday, January 15, 2013 7:37 PM To: DotNetRDF mailing-list <dot...@li...> Subject: [dotNetRDF-Support] Adding Context to Triples > Hi, > > Is there a way to attach a context uri to triples such that it would be stored > in the triple (quad) store? > I need to use the context slot for what is called 'direct reification': > assert (s, p, o, c) // mother statement > assert (c, p1, o1) // statement about mother statement > assert (c, p2, o2) // another one > ... > I'm using the Ontology API as well as the Grpah/Node/Triple API > I've noticed the context of the Triple class, but this is not saved to the > underline graph. > (I should note that I'm using BigData store using SesameHttpConnector.) > > Thanks, > Yossi. > > ------------------------------------------------------------------------------ > Master SQL Server Development, Administration, T-SQL, SSAS, SSIS, SSRS and > more. Get SQL Server skills now (including 2012) with LearnDevNow - 200+ hours > of step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 > this month only - learn more at: > http://p.sf.net/sfu/learnmore_122512__________________________________________ > _____ dotNetRDF-Support mailing list dot...@li... > https://lists.sourceforge.net/lists/listinfo/dotnetrdf-support |