return (Value[][]) results.toArray(new Value[0][0]);
}
private static Graph doGraphQuery(RepositoryConnection con, String query) throws RepositoryException, MalformedQueryException, QueryEvaluationException {
GraphQuery resultsTable = con.prepareGraphQuery(QueryLanguage.SPARQL, query);
GraphQueryResult statements = resultsTable.evaluate();
Graph g = new GraphImpl();
Vector<Value[]> results = new Vector<Value[]>();
for (int row = 0; statements.hasNext(); row++) {
Statement pairs = statements.next();