}
}
private Query analyseQuery(Graph graph, Start start) throws InvalidQuerySyntaxException {
TripleBuilder builder = new TripleBuilderImpl(graph, sortedAttributeFactory);
SparqlAnalyser analyser = new SparqlAnalyserImpl(builder, graph, graphRelationFactory);
start.apply(analyser);
try {
return analyser.getQuery();
} catch (ParserException e) {
throw new InvalidQuerySyntaxException(INVALID_QUERY_MESSAGE + " token: " + e.getToken(), e);
}
}