Package com.complexible.stardog.rdf4j
Class StardogRepository
- java.lang.Object
-
- org.eclipse.rdf4j.repository.base.AbstractRepository
-
- com.complexible.stardog.rdf4j.StardogRepository
-
- All Implemented Interfaces:
org.eclipse.rdf4j.repository.Repository
public final class StardogRepository extends org.eclipse.rdf4j.repository.base.AbstractRepositoryImplementation of a Stardog-based rdf4j Repository.
- Since:
- 5.0.2
- Version:
- 5.0.2
- Author:
- Michael Grove
-
-
Constructor Summary
Constructors Constructor Description StardogRepository(ConnectionConfiguration theConfig)Create a new StardogRepositoryStardogRepository(java.lang.String theConnectionString)Create a new StardogRepository
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StardogRepositoryConnectiongetConnection()java.io.FilegetDataDir()org.eclipse.rdf4j.model.ValueFactorygetValueFactory()protected voidinitializeInternal()booleanisWritable()Returns true.voidsetDataDir(java.io.File theFile)protected voidshutDownInternal()
-
-
-
Constructor Detail
-
StardogRepository
public StardogRepository(java.lang.String theConnectionString)
Create a new StardogRepository- Parameters:
theConnectionString- the connection string
-
StardogRepository
public StardogRepository(ConnectionConfiguration theConfig)
Create a new StardogRepository- Parameters:
theConfig- the configuration
-
-
Method Detail
-
setDataDir
public void setDataDir(java.io.File theFile)
- Throws:
java.lang.UnsupportedOperationException- This method always throws this exception because the nominal data dir for the database backing this Repository is on a remote machine and as such, this invocation is not relevant.
-
getDataDir
public java.io.File getDataDir()
- Throws:
java.lang.UnsupportedOperationException- This method always throws this exception because the nominal data dir for the database backing this Repository is on a remote machine and as such, this invocation is not relevant.
-
isWritable
public boolean isWritable() throws org.eclipse.rdf4j.repository.RepositoryExceptionReturns true. Connections are presumed to be writable since this is the default setup for a Stardog database and there is no way to explicitly know w/o trying to do a write.- Throws:
org.eclipse.rdf4j.repository.RepositoryException
-
getConnection
public StardogRepositoryConnection getConnection() throws org.eclipse.rdf4j.repository.RepositoryException
- Throws:
org.eclipse.rdf4j.repository.RepositoryException
-
getValueFactory
public org.eclipse.rdf4j.model.ValueFactory getValueFactory()
-
initializeInternal
protected void initializeInternal() throws org.eclipse.rdf4j.repository.RepositoryException- Specified by:
initializeInternalin classorg.eclipse.rdf4j.repository.base.AbstractRepository- Throws:
org.eclipse.rdf4j.repository.RepositoryException
-
shutDownInternal
protected void shutDownInternal() throws org.eclipse.rdf4j.repository.RepositoryException- Specified by:
shutDownInternalin classorg.eclipse.rdf4j.repository.base.AbstractRepository- Throws:
org.eclipse.rdf4j.repository.RepositoryException
-
-