Re: total triples

2015-11-18 Thread Andy Seaborne
hat should work - aggregation will happen. Andy Thanks, Z From: Andy Seaborne Sent: Monday, November 16, 2015 5:18 PM To: users@jena.apache.org Subject: Re: total triples On 16/11/15 21:00, Zen 98052 wrote: Hi Andy, Apologize for my lacking kn

Re: total triples

2015-11-16 Thread Zen 98052
Andy Seaborne Sent: Monday, November 16, 2015 5:18 PM To: users@jena.apache.org Subject: Re: total triples On 16/11/15 21:00, Zen 98052 wrote: > Hi Andy, > Apologize for my lacking knowledge on Jena codebase, I am still learning at > slow pace. > > I guess the stuff in OpExecutor is

Re: total triples

2015-11-16 Thread Andy Seaborne
___ From: Andy Seaborne Sent: Monday, November 9, 2015 2:50 PM To: users@jena.apache.org Subject: Re: total triples On 09/11/15 18:58, Zen 98052 wrote: Thanks Martynas! Shouldn't it call graph's size(), which in turn calls graphBaseSize()? Depends what "it"

Re: total triples

2015-11-16 Thread Zen 98052
0 PM To: users@jena.apache.org Subject: Re: total triples On 09/11/15 18:58, Zen 98052 wrote: > Thanks Martynas! > Shouldn't it call graph's size(), which in turn calls graphBaseSize()? Depends what "it" is. Have you implemented some or all of the algebra or are you usi

Re: total triples

2015-11-09 Thread Andy Seaborne
na.apache.org Subject: Re: total triples That would only count triples in the default graph and omit triples in named graphs. To account for them, you would need something like SELECT (COUNT(*) AS ?no) { { ?s ?p ?o } UNION { GRAPH ?g { ?s ?p ?o } } } On Mon, Nov 9, 2015 at 3:47 PM, Zen 98052

Re: total triples

2015-11-09 Thread Zen 98052
November 9, 2015 9:52 AM To: users@jena.apache.org Subject: Re: total triples That would only count triples in the default graph and omit triples in named graphs. To account for them, you would need something like SELECT (COUNT(*) AS ?no) { { ?s ?p ?o } UNION { GRAPH ?g { ?s ?p ?o } } } On Mon, Nov

total triples

2015-11-09 Thread Zen 98052
What is the most efficient way to get total number of triples? Is this query below the only way? SELECT (COUNT(*) AS ?no) { ?s ?p ?o } Thanks, Z

Re: total triples

2015-11-09 Thread Martynas Jusevičius
That would only count triples in the default graph and omit triples in named graphs. To account for them, you would need something like SELECT (COUNT(*) AS ?no) { { ?s ?p ?o } UNION { GRAPH ?g { ?s ?p ?o } } } On Mon, Nov 9, 2015 at 3:47 PM, Zen 98052 wrote: > What is the most efficient way to g