-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 08/08/11 15:14, ?? wrote:
> Dear list,
> 
> The following code causes "com.hp.hpl.jena.query.QueryParseException". Is
> count function supported?
> 
> import com.hp.hpl.jena.query.*;
> String queDBPedia = "select count(?inst)\n"

SPARQL 1.1 syntax requires an assignment, so try:

    select (count(?inst) as ?instcount) ...

Damian
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk4/8VoACgkQAyLCB+mTtyls6QCg9kivkVd6U0M5cCOprVhHKS9r
C94An2fR/QlcrAK7BwGWvXjAEPycnzsu
=tzct
-----END PGP SIGNATURE-----

Reply via email to