Hi,
I have problems understanding parameters in sparql queries. I read
section 16.2.6 of the docs (http://docs.openlinksw.com/virtuoso/rdfsparql.html#rdfsparqlinline
), but still don't succeed passing IRIs. I would appreciate an
example. E.g., how can I parametrize the object in the following query:
SELECT ?x FROM <http://www.mygraph.org> WHERE { ?x <http://purl.org/dc/elements/1.1/creator
> <http://myusers/xyz> }
My attempt (in Java) returns nothing, presumably because the parameter
is interpreted as a String value:
PreparedStatement stmt = con.prepareStatement("SELECT ?x FROM <http://www.mygraph.org
> WHERE { ?x <http://purl.org/dc/elements/1.1/creator> ?? }");
stmt.setString(1, "http://myusers/xyz");
Thanks,
Mirko