use of org.apache.jena.sparql.sse.SSEParseException in project jena by apache.
the class TestSerialization method runTestWorker.
protected void runTestWorker(Query query, Syntax syntax) {
IndentedLineBuffer buff = new IndentedLineBuffer();
query.serialize(buff, syntax);
String baseURI = null;
if (!query.explicitlySetBaseURI())
// Not in query - use the same one (e.g. file read from) .
baseURI = query.getBaseURI();
try {
QueryUtils.checkParse(query);
} catch (RuntimeException ex) {
System.err.println("**** Test: " + getName());
System.err.println("** " + ex.getMessage());
System.err.println(query);
throw ex;
}
try {
QueryUtils.checkOp(query, true);
} catch (SSEParseException ex) {
System.err.println("**** Test: " + getName());
System.err.println("** Algebra error: " + ex.getMessage());
}
}
Aggregations