checkNotEmptyString("queryText", queryText);
Query query = builder.buildQuery(graph, queryText);
if (graph.isEmpty()) {
return getEmptyAnswer(query);
}
return query.executeQuery(graph, queryEngine);
}
private Answer getEmptyAnswer(Query query) {
if (query instanceof AskQueryImpl) {
return new AskAnswerImpl(0, false);