|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openrdf.repository.base.RepositoryWrapper
org.openrdf.repository.contextaware.ContextAwareRepository
org.openrdf.repository.object.ObjectRepository
public class ObjectRepository
Creates the ObjectConnection used to interact with the repository.
Use ObjectRepositoryFactory to create this.
| Constructor Summary | |
|---|---|
ObjectRepository(RoleMapper mapper,
LiteralManager literals,
ClassLoader cl)
|
|
| Method Summary | |
|---|---|
protected ClassFactory |
createClassFactory(ClassLoader cl)
|
protected ClassResolver |
createClassResolver(ClassFactory definer,
RoleMapper mapper,
PropertyMapper pm)
|
protected ObjectFactory |
createObjectFactory(RoleMapper mapper,
PropertyMapper pm,
LiteralManager literalManager,
ClassResolver resolver,
ClassLoader cl)
|
protected PropertyMapper |
createPropertyMapper(ClassLoader cl)
|
protected TypeManager |
createTypeManager()
|
File |
getBehaviourJar()
The jar location of the compiled behaviours, if any. |
File |
getConceptJar()
The jar location of the compiled concepts, if any. |
ObjectConnection |
getConnection()
Creates a new ObjectConnection that will need to be closed by the caller. |
ValueFactory |
getLiteralFactory()
|
ValueFactory |
getURIFactory()
|
void |
init(File dataDir)
Called by ObjectRepositoryFactory when the delegate repository
has already been initialized. |
void |
initialize()
|
void |
setBehaviourClassPath(URL[] cp)
Additional classpath that should be included after the model is compiled. |
void |
setMemberPrefix(String prefix)
Assigns the member prefix to use when compiling classes. |
void |
setPackagePrefix(String prefix)
Assigns a name prefix prepended to the beginning of all compiled packages. |
void |
setSchema(Model schema)
The RDFS/OWL model that should be compiled when initialised. |
void |
setSchemaNamespaces(Map<URI,Map<String,String>> map)
graph -> prefix -> namespace |
void |
shutDown()
|
| Methods inherited from class org.openrdf.repository.contextaware.ContextAwareRepository |
|---|
getAddContexts, getArchiveContexts, getMaxQueryTime, getQueryLanguage, getReadContexts, getRemoveContexts, isIncludeInferred, setAddContexts, setArchiveContexts, setIncludeInferred, setMaxQueryTime, setQueryLanguage, setReadContexts, setRemoveContexts |
| Methods inherited from class org.openrdf.repository.base.RepositoryWrapper |
|---|
getDataDir, getDelegate, getValueFactory, isWritable, setDataDir, setDelegate, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ObjectRepository(RoleMapper mapper,
LiteralManager literals,
ClassLoader cl)
| Method Detail |
|---|
public void setPackagePrefix(String prefix)
prefix - such as "compiled."public void setMemberPrefix(String prefix)
public void setSchemaNamespaces(Map<URI,Map<String,String>> map)
public void setSchema(Model schema)
public void setBehaviourClassPath(URL[] cp)
public void initialize()
throws RepositoryException
initialize in interface Repositoryinitialize in class RepositoryWrapperRepositoryExceptionpublic File getConceptJar()
public File getBehaviourJar()
public ValueFactory getURIFactory()
public ValueFactory getLiteralFactory()
public void init(File dataDir)
throws RepositoryException,
ObjectStoreConfigException
ObjectRepositoryFactory when the delegate repository
has already been initialized.
RepositoryException
ObjectStoreConfigException
public void shutDown()
throws RepositoryException
shutDown in interface RepositoryshutDown in class RepositoryWrapperRepositoryException
public ObjectConnection getConnection()
throws RepositoryException
getConnection in interface RepositorygetConnection in class ContextAwareRepositoryRepositoryExceptionprotected TypeManager createTypeManager()
protected ObjectFactory createObjectFactory(RoleMapper mapper,
PropertyMapper pm,
LiteralManager literalManager,
ClassResolver resolver,
ClassLoader cl)
protected ClassResolver createClassResolver(ClassFactory definer,
RoleMapper mapper,
PropertyMapper pm)
protected PropertyMapper createPropertyMapper(ClassLoader cl)
protected ClassFactory createClassFactory(ClassLoader cl)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||