public class FedXRepositoryConnection extends SailRepositoryConnection
SailRepositoryConnection
which adds the original query string as binding to the returned query. The
binding name is defined by BINDING_ORIGINAL_QUERY
and is added to all query instances returned by the
available prepare methods.Modifier and Type | Field and Description |
---|---|
static String |
BINDING_ORIGINAL_MAX_EXECUTION_TIME |
static String |
BINDING_ORIGINAL_QUERY
We add a binding to each parsed query mapping the original query in order to send the original query to the
endpoint if there is only a single federation member is relevant for this query.
|
static String |
BINDING_ORIGINAL_QUERY_TYPE |
static Set<String> |
FEDX_BINDINGS
The number of bindings in the external binding set that are added by FedX.
|
logger
Modifier | Constructor and Description |
---|---|
protected |
FedXRepositoryConnection(FedXRepository repository,
SailConnection sailConnection) |
Modifier and Type | Method and Description |
---|---|
SailBooleanQuery |
prepareBooleanQuery(QueryLanguage ql,
String queryString,
String baseURI)
Prepares queries that return true or false.
|
FedXGraphQuery |
prepareGraphQuery(QueryLanguage ql,
String queryString,
String baseURI)
Prepares queries that produce RDF graphs.
|
SailQuery |
prepareQuery(QueryLanguage ql,
String queryString,
String baseURI)
Prepares a query for evaluation on this repository (optional operation).
|
FedXTupleQuery |
prepareTupleQuery(QueryLanguage ql,
String queryString,
String baseURI)
Prepares a query that produces sets of value tuples.
|
Update |
prepareUpdate(QueryLanguage ql,
String update,
String baseURI)
Prepares an Update operation.
|
addWithoutCommit, begin, begin, clear, clearNamespaces, close, commit, createRepositoryResult, exportStatements, getContextIDs, getHttpClient, getHttpClientSessionManager, getNamespace, getNamespaces, getSailConnection, getStatements, hasStatement, isActive, isEmpty, isOpen, removeNamespace, removeWithoutCommit, rollback, setFederatedServiceResolver, setHttpClient, setHttpClientSessionManager, setNamespace, setRepositoryResolver, size, toString
add, add, add, add, add, add, add, add, addWithoutCommit, conditionalCommit, conditionalRollback, export, getIsolationLevel, getParserConfig, getRepository, getValueFactory, hasStatement, isAutoCommit, prepareBooleanQuery, prepareGraphQuery, prepareQuery, prepareTupleQuery, prepareUpdate, remove, remove, remove, remove, removeWithoutCommit, setAutoCommit, setIsolationLevel, setParserConfig, startLocalTransaction
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getSesameClient, setSesameClient
add, add, getStatements, getStatements, hasStatement, prepareBooleanQuery, prepareGraphQuery, prepareQuery, prepareTupleQuery, prepareUpdate, remove, remove
public static final String BINDING_ORIGINAL_QUERY
public static final String BINDING_ORIGINAL_QUERY_TYPE
public static final String BINDING_ORIGINAL_MAX_EXECUTION_TIME
protected FedXRepositoryConnection(FedXRepository repository, SailConnection sailConnection)
public SailQuery prepareQuery(QueryLanguage ql, String queryString, String baseURI) throws MalformedQueryException
RepositoryConnection
prepareQuery
in interface RepositoryConnection
prepareQuery
in class SailRepositoryConnection
ql
- The query language
in which the query is formulated.queryString
- The query string.baseURI
- The base URI to resolve any relative URIs that are in the query against, can be null if
the query does not contain any relative URIs.MalformedQueryException
- If the supplied query is malformed.public FedXTupleQuery prepareTupleQuery(QueryLanguage ql, String queryString, String baseURI) throws MalformedQueryException
RepositoryConnection
prepareTupleQuery
in interface RepositoryConnection
prepareTupleQuery
in class SailRepositoryConnection
ql
- The query language
in which the query is formulated.queryString
- The query string.baseURI
- The base URI to resolve any relative URIs that are in the query against, can be null if
the query does not contain any relative URIs.TupleQuery
ready to be evaluated on this RepositoryConnection
.MalformedQueryException
- If the supplied query is malformed.public FedXGraphQuery prepareGraphQuery(QueryLanguage ql, String queryString, String baseURI) throws MalformedQueryException
RepositoryConnection
prepareGraphQuery
in interface RepositoryConnection
prepareGraphQuery
in class SailRepositoryConnection
ql
- The query language
in which the query is formulated.queryString
- The query string.baseURI
- The base URI to resolve any relative URIs that are in the query against, can be null if
the query does not contain any relative URIs.GraphQuery
ready to be evaluated on this RepositoryConnection
.MalformedQueryException
- If the supplied query is malformed.public SailBooleanQuery prepareBooleanQuery(QueryLanguage ql, String queryString, String baseURI) throws MalformedQueryException
RepositoryConnection
prepareBooleanQuery
in interface RepositoryConnection
prepareBooleanQuery
in class SailRepositoryConnection
ql
- The query language
in which the query is formulated.queryString
- The query string.baseURI
- The base URI to resolve any relative URIs that are in the query against, can be null if
the query does not contain any relative URIs.BooleanQuery
ready to be evaluated on this RepositoryConnection
.MalformedQueryException
- If the supplied query is malformed.public Update prepareUpdate(QueryLanguage ql, String update, String baseURI) throws RepositoryException, MalformedQueryException
RepositoryConnection
prepareUpdate
in interface RepositoryConnection
prepareUpdate
in class SailRepositoryConnection
ql
- The query language
in which the update operation is formulated.update
- The update operation string.baseURI
- The base URI to resolve any relative URIs that are in the update against, can be null if
the update does not contain any relative URIs.Update
ready to be executed on this RepositoryConnection
.MalformedQueryException
- If the supplied update operation string is malformed.RepositoryException
Copyright © 2015-2020 Eclipse Foundation. All Rights Reserved.