Re: [Virtuoso-users] Aggregate queries using CONSTRUCT

2008-10-21 Thread Ivan Mikhailov
Hello Peter, > > CONSTRUCT { > > > > > > `(select (count(?s)) as ?countS > >where { ?s ?p })` } > > where { ?s1 ?p1 ?o1 } limit 1 > > Just to check I understand... T

Re: [Virtuoso-users] Aggregate queries using CONSTRUCT

2008-10-21 Thread Peter Ansell
- "Ivan Mikhailov" wrote: > From: "Ivan Mikhailov" > To: "Peter Ansell" > Cc: "Virtuoso Users List" > Sent: Tuesday, 21 October, 2008 3:26:07 PM GMT +10:00 Brisbane > Subject: Re: [Virtuoso-users] Aggregate queries using CONSTRU

Re: [Virtuoso-users] Aggregate queries using CONSTRUCT

2008-10-21 Thread Ivan Mikhailov
Hello Peter, First of all, there's a syntax error in construct pattern. Expressions should be backquoted when they appear in triple patterns as graphs, subjecs, predicates or objects. Construct pattern is a pattern, too, so it should be CONSTRUCT {

[Virtuoso-users] Aggregate queries using CONSTRUCT

2008-10-20 Thread Peter Ansell
Hi all, The documentation for the aggregation queries doesn't specifically say that it is only supported for SELECT queries [1] [2], but I have had no success in getting COUNT(?variable) to work inside of CONSTRUCT, where it works for a similar SELECT query. Any ideas about whether this is or w