public class AGTQRJSONStreamer extends AGTQRStreamer
SPARQLResultsXMLParser
but uses rdf4j-like JSON parsing instead of SAXParser so the results
streaming in the http response can be processed in a
TupleQueryResult
pulling from the JSON stream.Constructor and Description |
---|
AGTQRJSONStreamer(AGValueFactory vf) |
Modifier and Type | Method and Description |
---|---|
String |
getRequestMIMEType() |
TupleQueryResult |
getResult() |
void |
handleResponse(org.apache.http.HttpResponse httpResponse,
org.apache.http.client.methods.HttpUriRequest httpUriRequest) |
createStreamer, releaseConnection
public AGTQRJSONStreamer(AGValueFactory vf)
public String getRequestMIMEType()
getRequestMIMEType
in class AGTQRStreamer
public void handleResponse(org.apache.http.HttpResponse httpResponse, org.apache.http.client.methods.HttpUriRequest httpUriRequest) throws IOException, AGHttpException
handleResponse
in class AGTQRStreamer
IOException
AGHttpException
public TupleQueryResult getResult()
getResult
in class AGTQRStreamer
Copyright © 2024 Franz Inc.. All rights reserved.