Hi Timo, What is the version of the Virtuoso Sesame Provider you are using, run the command:
java -jar virt_sesame2.jar If you are running a Virtuoso open source build from before the last July 2010 6.12 release you may not have variable binding support. Please download the latest provider from the following location and try again: http://virtuoso.openlinksw.com/dataspace/dav/wiki/Main/VOSDownload#Sesame From your example: >>> TupleQuery query = conn.prepareTupleQuery(QueryLanguage.SPARQL, >>> "select ?s ?p ?o where { ?s ?p ?o } limit 5"); >>> query.setBinding("p", RDFS.LABEL); The Virtuoso sesame provider should convert the query to: select ?s <http://www.w3.org/2000/01/rdf-schema#label> ?o where { ?s <http://www.w3.org/2000/01/rdf-schema#label> ?o } limit 5 Best Regards Hugh Williams Professional Services OpenLink Software Web: http://www.openlinksw.com Support: http://support.openlinksw.com Forums: http://boards.openlinksw.com/support Twitter: http://twitter.com/OpenLink On 3 Dec 2010, at 10:14, Timo Westkämper wrote: > Hi. > > It appears that the Virtuoso Sesame adapter doesn't use the variable > bindings supplied to queries. > > Here is an example : > > TupleQuery query = conn.prepareTupleQuery(QueryLanguage.SPARQL, > "select ?s ?p ?o where { ?s ?p ?o } limit 5"); > query.setBinding("p", RDFS.LABEL); > > The effective SPARQL query should be something like "select ?s ?p ?o > where { ?s ?p ?o. FILTER (?p == rdfs:label ) . } limit 5", but Virtuoso > uses the raw query without the bindings. > > Any chance to get a fix for this? > > Br, > Timo Westkämper > > > > ------------------------------------------------------------------------------ > Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! > Tap into the largest installed PC base & get more eyes on your game by > optimizing for Intel(R) Graphics Technology. Get started today with the > Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. > http://p.sf.net/sfu/intelisp-dev2dev > _______________________________________________ > Virtuoso-users mailing list > Virtuoso-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/virtuoso-users