} else if (query.isConstructType()) {
final Model model = qe.execConstruct();
qe.close();
final GraphResult gr = new GraphResult();
TurtleParser.triplesFromModel(model,
new TripleConsumer() {
public void consume(final Triple triple) {
gr.addGraphResultTriple(triple);
}
}, TurtleParser.readFileNumber++);
return gr;
} else if (query.isDescribeType()) {
final Model model = qe.execDescribe();
qe.close();
final GraphResult gr = new GraphResult();
TurtleParser.triplesFromModel(model,
new TripleConsumer() {
public void consume(final Triple triple) {
gr.addGraphResultTriple(triple);
}
}, TurtleParser.readFileNumber++);
return gr;