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

public class GraphDBStorageConnection extends StorageConnection
  • 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 interface RepoConnection
      Overrides:
      isInferred in class StorageConnection
      Parameters:
      statement - Statement whose inference to check
      contexts - 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