public class RemoteRepositoryBase extends RemoteRepositoryDecls
BASE_URI, BD_NULL_GRAPH, BINDING_PREFIX, DEFAULT_GRAPH_URI, DEFAULT_MAX_REQUEST_URL_LENGTH, DEFAULT_NAMESPACE, DEFAULT_QUERY_METHOD, FORCE_INDEX_CREATE, HTTP_HEADER_BIGDATA_MAX_QUERY_MILLIS, INCLUDE_INFERRED, MAX_QUERY_TIME_MILLIS, MAX_REQUEST_URL_LENGTH, NAMED_GRAPH_URI, OPTION_CREATE_KB_NAMESPACE, QUERY_METHOD, QUERYID, USING_GRAPH_URI, USING_NAMED_GRAPH_URI, UTF8
Constructor and Description |
---|
RemoteRepositoryBase() |
Modifier and Type | Method and Description |
---|---|
static org.openrdf.model.Graph |
asGraph(org.openrdf.query.GraphQueryResult result)
Utility method to turn a
GraphQueryResult into a Graph . |
protected static com.bigdata.rdf.sail.webapp.client.BooleanResult |
booleanResults(JettyResponseListener response)
Accept and parse a boolean response (NSS specific response type).
|
static JettyResponseListener |
checkResponseCode(JettyResponseListener responseListener)
Throw an exception if the status code does not indicate success.
|
protected static com.bigdata.rdf.sail.webapp.client.ContextsResult |
contextsResults(JettyResponseListener response) |
protected static String |
getContextPath()
Return the web application context path for the default deployment of the
bigdata web application.
|
protected static com.bigdata.rdf.sail.webapp.client.MutationResult |
mutationResults(JettyResponseListener response) |
protected static com.bigdata.rdf.sail.webapp.client.RangeCountResult |
rangeCountResults(JettyResponseListener response)
Accept and parse a range count response (NSS specific response type).
|
protected static byte[] |
serialize(Iterable<? extends org.openrdf.model.Statement> stmts,
org.openrdf.rio.RDFFormat format)
Serialize an iteration of statements into a byte[] to send across the
wire.
|
protected static String[] |
toStrings(org.openrdf.model.Resource[] resources)
Convert an array of URIs to an array of URI strings.
|
protected static final String getContextPath()
public static JettyResponseListener checkResponseCode(JettyResponseListener responseListener) throws IOException
inputStreamResponseListener
- The response.IOException
public static org.openrdf.model.Graph asGraph(org.openrdf.query.GraphQueryResult result) throws Exception
GraphQueryResult
into a Graph
.result
- The GraphQueryResult
.Graph
.Exception
protected static byte[] serialize(Iterable<? extends org.openrdf.model.Statement> stmts, org.openrdf.rio.RDFFormat format) throws Exception
Exception
protected static com.bigdata.rdf.sail.webapp.client.MutationResult mutationResults(JettyResponseListener response) throws Exception
Exception
protected static com.bigdata.rdf.sail.webapp.client.BooleanResult booleanResults(JettyResponseListener response) throws Exception
Exception
protected static com.bigdata.rdf.sail.webapp.client.RangeCountResult rangeCountResults(JettyResponseListener response) throws Exception
Exception
protected static com.bigdata.rdf.sail.webapp.client.ContextsResult contextsResults(JettyResponseListener response) throws Exception
Exception
protected static String[] toStrings(org.openrdf.model.Resource[] resources)
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.