Hi Hasan The second argument would the graph to be added, or the initial content to be added to that named graph.
Cheers, Reto > -----Original Message----- > From: Hasan [mailto:[email protected]] > Sent: Thursday, February 1, 2018 10:25 PM > To: [email protected] > Subject: Re: Clerezza refactoring > > Hi Reto > > Yes, that would be nice. > But why we need a second argument in addNamedGraph ? > > hasan > > > On Thu, Feb 1, 2018 at 8:25 PM, Tommaso Teofili > <[email protected]> > wrote: > > > +1 > > > > Tommaso > > > > 2018-01-27 18:03 GMT+01:00 Reto Gmür <[email protected]>: > > > > > Hi Hasan, > > > > > > Thanks for the good conversation today. > > > > > > I was thinking on how the discussed replacement of TcManager with > > > DataSet could look like. I think it would be nice for code like this to > > > work: > > > > > > Graph g = new SimpleGraph(); > > > g.addTriple(s, p, o); //new shortcut method for add(new > > > TripleImpl(s,p,o)); > > > BlankNodeOrIRI graphName = new IRI("http://example.org/g2"); > > > DataSet ds = new DataSetBuilder().setDefaultGraph(g). > > addNamedGraph(graphName, > > > g2).build(); > > > ResultSet rs = ds.querySelect("SELECT ...."); > > > > > > I'm looking forward to a simplified and documented clerezza. > > > > > > Cheers, > > > Reto > > > > > > > > > > >
