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.AbstractRepository
Implementation 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 StardogRepositoryConnection
getConnection()
java.io.File
getDataDir()
org.eclipse.rdf4j.model.ValueFactory
getValueFactory()
protected void
initializeInternal()
boolean
isWritable()
Returns true.void
setDataDir(java.io.File theFile)
protected void
shutDownInternal()
-
-
-
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.RepositoryException
Returns 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:
initializeInternal
in classorg.eclipse.rdf4j.repository.base.AbstractRepository
- Throws:
org.eclipse.rdf4j.repository.RepositoryException
-
shutDownInternal
protected void shutDownInternal() throws org.eclipse.rdf4j.repository.RepositoryException
- Specified by:
shutDownInternal
in classorg.eclipse.rdf4j.repository.base.AbstractRepository
- Throws:
org.eclipse.rdf4j.repository.RepositoryException
-
-