Class SPARQLRepositoryFactory
- java.lang.Object
-
- org.eclipse.rdf4j.repository.sparql.config.SPARQLRepositoryFactory
-
- All Implemented Interfaces:
RepositoryFactory
public class SPARQLRepositoryFactory extends Object implements RepositoryFactory
CreatesSPARQLRepositoryfrom a configuration.- Author:
- James Leigh
-
-
Field Summary
Fields Modifier and Type Field Description static StringREPOSITORY_TYPE
-
Constructor Summary
Constructors Constructor Description SPARQLRepositoryFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RepositoryImplConfiggetConfig()SPARQLRepositorygetRepository(RepositoryImplConfig config)Returns a Repository instance that has been initialized using the supplied configuration data.StringgetRepositoryType()Returns the type of the repositories that this factory creates.
-
-
-
Field Detail
-
REPOSITORY_TYPE
public static final String REPOSITORY_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getRepositoryType
public String getRepositoryType()
Description copied from interface:RepositoryFactoryReturns the type of the repositories that this factory creates. Repository types are used for identification and should uniquely identify specific implementations of the Repository API. This type can be equal to the fully qualified class name of the repository, but this is not required.- Specified by:
getRepositoryTypein interfaceRepositoryFactory
-
getConfig
public RepositoryImplConfig getConfig()
- Specified by:
getConfigin interfaceRepositoryFactory
-
getRepository
public SPARQLRepository getRepository(RepositoryImplConfig config) throws RepositoryConfigException
Description copied from interface:RepositoryFactoryReturns a Repository instance that has been initialized using the supplied configuration data.- Specified by:
getRepositoryin interfaceRepositoryFactory- Parameters:
config- TODO- Returns:
- The created (but un-initialized) repository.
- Throws:
RepositoryConfigException- If no repository could be created due to invalid or incomplete configuration data.
-
-