public class BigdataGraphClient extends BigdataGraph
BigdataSailRemoteRepository}
,
BigdataSailRemoteRepositoryConnection}
,
RemoteRepository}
BigdataGraph.EdgeIterable, BigdataGraph.FusedIterable<T>, BigdataGraph.Options, BigdataGraph.VertexIterable, BigdataGraph.WrappedResult<E>
Modifier and Type | Field and Description |
---|---|
protected static com.tinkerpop.blueprints.Features |
FEATURES |
EDGE, factory, LABEL, laxProperties, maxQueryTime, SPARQL_LOG_MAX, TYPE, VERTEX
Constructor and Description |
---|
BigdataGraphClient(BigdataSailRemoteRepository repo) |
BigdataGraphClient(BigdataSailRemoteRepository repo,
BlueprintsValueFactory factory)
Core implementation.
|
BigdataGraphClient(RemoteRepository repo) |
BigdataGraphClient(RemoteRepository repo,
BlueprintsValueFactory factory) |
BigdataGraphClient(String sparqlEndpointURL) |
BigdataGraphClient(String sparqlEndpointURL,
BlueprintsValueFactory factory) |
Modifier and Type | Method and Description |
---|---|
void |
cancel(RunningQuery r)
Kill a running query specified by the RunningQuery object.
|
void |
cancel(String queryId)
Kill a running query specified by the UUID String.
|
void |
cancel(UUID queryId)
Kill a running query specified by the UUID.
|
BigdataSailRemoteRepositoryConnection |
cxn()
|
com.tinkerpop.blueprints.Features |
getFeatures() |
RunningQuery |
getQueryByExternalId(String extQueryId)
Return the
RunningQuery for a currently executing SPARQL QUERY or
UPDATE request. |
RunningQuery |
getQueryById(UUID queryId2)
Return the
RunningQuery for a currently executing SPARQL QUERY or
UPDATE request. |
Collection<RunningQuery> |
getRunningQueries()
Return a Collection of running queries
|
protected boolean |
isQueryCancelled(UUID queryId)
Helper method to determine if a query was cancelled.
|
boolean |
isReadOnly()
Is this a read-only view of the graph?
|
void |
loadGraphML(String file)
Post a GraphML file to the remote server.
|
protected UUID |
setupQuery(BigdataSailRepositoryConnection cxn,
ASTContainer astContainer,
QueryType queryType,
String extQueryId)
Embedded clients can override this to access query management
capabilities.
|
void |
shutdown()
Shutdown the connection and repository (client-side, not server-side).
|
protected void |
tearDownQuery(UUID queryId)
Embedded clients can override this to access query management
capabilities.
|
addEdge, addEdge, addEdge, addVertex, ask, ask, convert, finalizeQuery, fuse, getEdge, getEdges, getEdges, getElements, getProperty, getProperty, getProperty, getPropertyKeys, getValueFactory, getVertex, getVertices, getVertices, history, history, project, project, query, removeEdge, removeProperty, removeProperty, removeVertex, select, select, setMaxQueryTime, setProperty, setProperty, toGraphAtom, toGraphAtom, toLiterals, toString, update, update
public BigdataGraphClient(String sparqlEndpointURL)
sparqlEndpointURL
- The URL of the SPARQL end point. This will be used to read and
write on the graph using the blueprints API.public BigdataGraphClient(String sparqlEndpointURL, BlueprintsValueFactory factory)
sparqlEndpointURL
- The URL of the SPARQL end point. This will be used to read and
write on the graph using the blueprints API.factory
- The BlueprintsValueFactory
.public BigdataGraphClient(RemoteRepository repo)
public BigdataGraphClient(RemoteRepository repo, BlueprintsValueFactory factory)
public BigdataGraphClient(BigdataSailRemoteRepository repo)
public BigdataGraphClient(BigdataSailRemoteRepository repo, BlueprintsValueFactory factory)
repo
- The BigdataSailRemoteRepository
for the desired graph.factory
- The BlueprintsValueFactory
.public void loadGraphML(String file) throws Exception
loadGraphML
in class BigdataGraph
Exception
public BigdataSailRemoteRepositoryConnection cxn() throws Exception
BigdataSailRemoteRepositoryConnection
.
TODO Review this now that we support read/write tx for
BigdataSailRemoteRepositoryConnection (if namespace uses
ISOLATABLE_INDICES).cxn
in class BigdataGraph
Exception
public void shutdown()
public com.tinkerpop.blueprints.Features getFeatures()
getFeatures
in interface com.tinkerpop.blueprints.Graph
getFeatures
in class BigdataGraph
protected UUID setupQuery(BigdataSailRepositoryConnection cxn, ASTContainer astContainer, QueryType queryType, String extQueryId)
BigdataGraph
setupQuery
in class BigdataGraph
protected void tearDownQuery(UUID queryId)
BigdataGraph
tearDownQuery
in class BigdataGraph
public Collection<RunningQuery> getRunningQueries()
BigdataGraph
getRunningQueries
in class BigdataGraph
public void cancel(UUID queryId)
BigdataGraph
cancel
in class BigdataGraph
public void cancel(String queryId)
BigdataGraph
cancel
in class BigdataGraph
public void cancel(RunningQuery r)
BigdataGraph
cancel
in class BigdataGraph
public RunningQuery getQueryById(UUID queryId2)
BigdataGraph
RunningQuery
for a currently executing SPARQL QUERY or
UPDATE request.getQueryById
in class BigdataGraph
queryId2
- The UUID
for the request.RunningQuery
iff it was found.public RunningQuery getQueryByExternalId(String extQueryId)
BigdataGraph
RunningQuery
for a currently executing SPARQL QUERY or
UPDATE request.getQueryByExternalId
in class BigdataGraph
RunningQuery
iff it was found.protected boolean isQueryCancelled(UUID queryId)
BigdataGraph
isQueryCancelled
in class BigdataGraph
public boolean isReadOnly()
BigdataGraph
isReadOnly
in class BigdataGraph
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.