Class AbstractRepositoryGraphLike<T extends TripleLike>

    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractRepositoryGraphLike​(org.eclipse.rdf4j.repository.Repository repository, java.util.UUID salt, boolean handleInitAndShutdown, boolean includeInferred)  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Optional<org.eclipse.rdf4j.model.Model> asModel()
      Return the corresponding RDF4J Model, if present.
      java.util.Optional<org.eclipse.rdf4j.repository.Repository> asRepository()
      Return the corresponding RDF4J Repository, if present.
      protected abstract T asTripleLike​(org.eclipse.rdf4j.model.Statement s)  
      void close()  
      protected org.eclipse.rdf4j.repository.RepositoryConnection getRepositoryConnection()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • repository

        protected final org.eclipse.rdf4j.repository.Repository repository
      • includeInferred

        protected final boolean includeInferred
      • handleInitAndShutdown

        protected final boolean handleInitAndShutdown
      • rdf4jTermFactory

        protected final RDF4J rdf4jTermFactory
      • salt

        protected final java.util.UUID salt
    • Constructor Detail

      • AbstractRepositoryGraphLike

        AbstractRepositoryGraphLike​(org.eclipse.rdf4j.repository.Repository repository,
                                    java.util.UUID salt,
                                    boolean handleInitAndShutdown,
                                    boolean includeInferred)
    • Method Detail

      • close

        public void close()
                   throws java.lang.Exception
        Specified by:
        close in interface java.lang.AutoCloseable
        Throws:
        java.lang.Exception
      • asTripleLike

        protected abstract T asTripleLike​(org.eclipse.rdf4j.model.Statement s)
      • getRepositoryConnection

        protected org.eclipse.rdf4j.repository.RepositoryConnection getRepositoryConnection()
      • asRepository

        public java.util.Optional<org.eclipse.rdf4j.repository.Repository> asRepository()
        Description copied from interface: RDF4JGraphLike
        Return the corresponding RDF4J Repository, if present.

        The return value is Optional.isPresent() if this is backed by a Repository.

        Changes to the Repository are reflected in both directions.

        Specified by:
        asRepository in interface RDF4JGraphLike<T extends TripleLike>
        Returns:
        The corresponding RDF4J Repository.
      • asModel

        public java.util.Optional<org.eclipse.rdf4j.model.Model> asModel()
        Description copied from interface: RDF4JGraphLike
        Return the corresponding RDF4J Model, if present.

        The return value is Optional.isPresent() if this is backed by a Model.

        Changes to the Model are reflected in both directions.

        Specified by:
        asModel in interface RDF4JGraphLike<T extends TripleLike>
        Returns:
        The corresponding RDF4J Model.