Class GraphDBStorageConnection
java.lang.Object
cz.cvut.kbss.ontodriver.rdf4j.connector.StorageConnection
cz.cvut.kbss.ontodriver.rdf4j.connector.GraphDBStorageConnection
- All Implemented Interfaces:
Closeable
,RepoConnection
,StatementExecutor
,Wrapper
-
Constructor Summary
ConstructorsConstructorDescriptionGraphDBStorageConnection
(StorageConnector storageConnector, org.eclipse.rdf4j.common.transaction.IsolationLevel isolationLevel) -
Method Summary
Modifier and TypeMethodDescriptionboolean
isInferred
(org.eclipse.rdf4j.model.Statement statement, Set<org.eclipse.rdf4j.model.IRI> contexts) Checks whether the specified statement is inferred by the repository.Methods inherited from class cz.cvut.kbss.ontodriver.rdf4j.connector.StorageConnection
addStatements, begin, close, commit, containsStatement, executeBooleanQuery, executeSelectQuery, executeUpdate, findStatements, findStatements, getContexts, getValueFactory, isOpen, removePropertyValues, removeStatements, rollback, unwrap, verifyTransactionActive, withConnection
-
Constructor Details
-
GraphDBStorageConnection
public GraphDBStorageConnection(StorageConnector storageConnector, org.eclipse.rdf4j.common.transaction.IsolationLevel isolationLevel)
-
-
Method Details
-
isInferred
public boolean isInferred(org.eclipse.rdf4j.model.Statement statement, Set<org.eclipse.rdf4j.model.IRI> contexts) throws Rdf4jDriverException Description copied from interface:RepoConnection
Checks whether the specified statement is inferred by the repository.Note that given the nature of the RDF4J API, this method will return
false
even if the statement is both asserted and inferred, as there is no way to easily ask only for inferred statements but both asserted and inferred statements are returned.Also note that if the repository does not contain the statement at all,
false
is returned.- Specified by:
isInferred
in interfaceRepoConnection
- Overrides:
isInferred
in classStorageConnection
- Parameters:
statement
- Statement whose inference to checkcontexts
- Optionally specify contexts in which the search should be performed. If empty, the default one is used- Returns:
true
iff the specified statement is inferred in any of the specified contexts- Throws:
Rdf4jDriverException
- If a repository access error occurs
-