-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 13/04/11 13:49, Camel Christophe wrote:
> Hi everybody,
>
> I'm writing a small web interface and that displays results with
> pagination. So I send a sparql query with the keyword "LIMIT" and
> "OFFSET". To calculate the total number of pages, I need to know the
> total number of results for a query.
>
> How can I do that ? It seems that the count (*) syntax does not work
> with Fuseki.
count certainly does work: could you provide an example of it not working?
select (count(*) as ?total) {
... condition ...
}
Are you trying to do this in just one query?
Damian
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk2lnp4ACgkQAyLCB+mTtym+jQCg3FktmVpjiIqVGwMFSETHt4YT
rmwAn1XxI1eHPWgKprpXNIuXUU/MgZAX
=kcPK
-----END PGP SIGNATURE-----