private Expr parseSPARQL(ByteArrayInputStream in) throws Throwable
{
try {
ARQParser parser = new ARQParser(in) ;
parser.setQuery(query) ;
return parser.Expression() ;
}
catch (com.hp.hpl.jena.sparql.lang.arq.ParseException ex)
{ throw new QueryParseException(ex.getMessage(), ex.currentToken.beginLine, ex.currentToken.beginColumn) ; }
catch (com.hp.hpl.jena.sparql.lang.arq.TokenMgrError tErr)
{ throw new QueryParseException(tErr.getMessage(),-1,-1) ; }