|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.openrdf.sesame.sailimpl.sync.SyncRdfRepository
| Constructor Summary | |
SyncRdfRepository()
|
|
| Method Summary | |
void |
addListener(SailChangedListener listener)
|
void |
addStatement(Resource subj,
URI pred,
Value obj)
Adds a statament to the repository. |
void |
changeNamespacePrefix(String namespace,
String prefix)
Changes the prefix of a namespace. |
void |
clearRepository()
Clears the repository. |
void |
commitTransaction()
Commits a started transaction. |
Sail |
getBaseSail()
Gets the base Sail that this Sail works on top of. |
NamespaceIterator |
getNamespaces()
Gets the prefix and name of all namespaces. |
StatementIterator |
getStatements(Resource subj,
URI pred,
Value obj)
Gets all statements with a specific subject, predicate and/or object. |
ValueFactory |
getValueFactory()
Gets a ValueFactory object that can be used to create URI-, blank node- and literal objects. |
boolean |
hasStatement(Resource subj,
URI pred,
Value obj)
Checks whether some statement with a specific subject, predicate and/or object is present in the repository. |
void |
initialize(Map configParams)
Initializes the Sail using a set of configuration parameters. |
Query |
optimizeQuery(Query qc)
Gives the RdfSource the oportunity to optimize a Query to its specific storage model. |
void |
removeListener(SailChangedListener listener)
|
int |
removeStatements(Resource subj,
URI pred,
Value obj)
Removes data statements that match the (subject, predicate, object) pattern from the repository. |
void |
setBaseSail(Sail sail)
Sets the base Sail that this Sail will work on top of. |
void |
shutDown()
Allow the SAIL to synchronize any stale data. |
void |
startTransaction()
Starts a transaction. |
boolean |
transactionStarted()
Checks whether a transaction has been started. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SyncRdfRepository()
| Method Detail |
public void setBaseSail(Sail sail)
StackedSail
setBaseSail in interface StackedSailpublic Sail getBaseSail()
StackedSail
getBaseSail in interface StackedSail
public void initialize(Map configParams)
throws SailInitializationException
Sail
initialize in interface SailconfigParams - A set a configuration parameters.
SailInitializationException - If the Sail could not be
initialized.public void shutDown()
Sail
shutDown in interface Sailpublic void startTransaction()
RdfRepository
startTransaction in interface RdfRepositorypublic void commitTransaction()
RdfRepository
commitTransaction in interface RdfRepositorypublic boolean transactionStarted()
RdfRepository
transactionStarted in interface RdfRepository
public void addStatement(Resource subj,
URI pred,
Value obj)
throws SailUpdateException
RdfRepository
addStatement in interface RdfRepositorysubj - subject of statementpred - predicate of statementobj - object of statement
SailUpdateException - If the statement could not be added.RdfRepository.startTransaction()
public int removeStatements(Resource subj,
URI pred,
Value obj)
throws SailUpdateException
RdfRepository
removeStatements in interface RdfRepositorysubj - subject of statementpred - predicate of statementobj - object of statement
SailUpdateException - If the statement(s) could not be removed.RdfRepository.startTransaction()
public void clearRepository()
throws SailUpdateException
RdfRepository
clearRepository in interface RdfRepositorySailUpdateException - If the repository could not be
cleared (for example when a transaction was not started first).
public void changeNamespacePrefix(String namespace,
String prefix)
throws SailUpdateException
RdfRepository
changeNamespacePrefix in interface RdfRepositorynamespace - The namespace for which the associated prefix should
be changed.prefix - The new prefix.
SailUpdateException - If the namespace prefix could not be
changed, for example when no transaction was started.public ValueFactory getValueFactory()
RdfSource
getValueFactory in interface RdfSource
public StatementIterator getStatements(Resource subj,
URI pred,
Value obj)
RdfSource
getStatements in interface RdfSourcesubj - subject of patternpred - predicate of patternobj - object of pattern
public boolean hasStatement(Resource subj,
URI pred,
Value obj)
RdfSource
hasStatement in interface RdfSourcesubj - subject of statementpred - predicate of statementobj - object of statement
public Query optimizeQuery(Query qc)
RdfSource
optimizeQuery in interface RdfSourceqc - The Query to optimize.
public NamespaceIterator getNamespaces()
RdfSource
getNamespaces in interface RdfSourcepublic void addListener(SailChangedListener listener)
addListener in interface RdfRepositorypublic void removeListener(SailChangedListener listener)
removeListener in interface RdfRepository
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||