See ParamaterizedSparqlString - http://jena.apache.org/documentation/query/parameterized-sparql-strings.htm l
Rob On 8/22/13 9:19 AM, "Phil Ashworth" <[email protected]> wrote: >Hi Guys >I noticed the documentation states* >" >QuerySolutionMap initialBinding = new >QuerySolutionMap();initialBinding.add("name", personResource);qe = >QueryExecutionFactory.create(query, dataset, initialBinding);* > >* * > >*This is often much simpler than the string equivalent since you don't >have >to escape quotes in literals. (Beware that this doesn't work for >sparqlService, which is a great shame. It would be nice to spend some time >remedying that.) "* > >I'm actually in the situation that I would like to bind variables for a >sparqlService. > >Can you suggest the best way for me to approach this? > >Thanks In advance > >Phil
