// All throwable handling.
private static void perform(Query query, String string, Action action)
{
Reader in = new StringReader(string) ;
SPARQLParser10 parser = new SPARQLParser10(in) ;
try {
query.setStrict(true) ;
parser.setQuery(query) ;
action.exec(parser) ;
}
catch (com.hp.hpl.jena.sparql.lang.sparql_10.ParseException ex)
{
throw new QueryParseException(ex.getMessage(),