Search in sources :

Example 16 with QueryExecException

use of org.apache.jena.query.QueryExecException in project jena by apache.

the class QueryExecDataset method select.

@Override
public RowSet select() {
    checkNotClosed();
    if (!query.isSelectType())
        throw new QueryExecException("Attempt to have RowSet from a " + labelForQuery(query) + " query");
    RowSet rowSet = execute();
    return rowSet;
}
Also used : QueryExecException(org.apache.jena.query.QueryExecException)

Aggregations

QueryExecException (org.apache.jena.query.QueryExecException)16 Node (org.apache.jena.graph.Node)5 Var (org.apache.jena.sparql.core.Var)4 QueryIterator (org.apache.jena.sparql.engine.QueryIterator)4 HashMap (java.util.HashMap)2 Query (org.apache.jena.query.Query)2 RDFNode (org.apache.jena.rdf.model.RDFNode)2 Op (org.apache.jena.sparql.algebra.Op)2 OpAsQuery (org.apache.jena.sparql.algebra.OpAsQuery)2 HttpParams (org.apache.jena.sparql.engine.http.HttpParams)2 Template (org.apache.jena.sparql.syntax.Template)2 InputStream (java.io.InputStream)1 HttpClient (java.net.http.HttpClient)1 List (java.util.List)1 Map (java.util.Map)1 IndentedLineBuffer (org.apache.jena.atlas.io.IndentedLineBuffer)1 JsonArray (org.apache.jena.atlas.json.JsonArray)1 JsonObject (org.apache.jena.atlas.json.JsonObject)1 JsonValue (org.apache.jena.atlas.json.JsonValue)1 HttpException (org.apache.jena.atlas.web.HttpException)1