|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
An extension of the read-only RdfSource interface that adds methods to add data to, and remove data from RDF repositories.
| 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. |
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 |
startTransaction()
Starts a transaction. |
boolean |
transactionStarted()
Checks whether a transaction has been started. |
| Methods inherited from interface org.openrdf.sesame.sail.RdfSource |
getNamespaces, getStatements, getValueFactory, hasStatement, optimizeQuery |
| Methods inherited from interface org.openrdf.sesame.sail.Sail |
initialize, shutDown |
| Method Detail |
public void startTransaction()
SailInternalException - To indicate an internal error.public void commitTransaction()
SailInternalException - To indicate an internal error.public boolean transactionStarted()
SailInternalException - To indicate an internal error.
public void addStatement(Resource subj,
URI pred,
Value obj)
throws SailUpdateException
subj - subject of statementpred - predicate of statementobj - object of statement
SailUpdateException - If the statement could not be added.
SailInternalException - To indicate an internal error.startTransaction()
public int removeStatements(Resource subj,
URI pred,
Value obj)
throws SailUpdateException
subj - subject of statementpred - predicate of statementobj - object of statement
SailUpdateException - If the statement(s) could not be removed.
SailInternalException - To indicate an internal error.startTransaction()
public void clearRepository()
throws SailUpdateException
SailUpdateException - If the repository could not be
cleared (for example when a transaction was not started first).
SailInternalException - To indicate an internal error.
public void changeNamespacePrefix(String namespace,
String prefix)
throws SailUpdateException
namespace - 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.
SailInternalException - To indicate an internal error.public void addListener(SailChangedListener listener)
public void removeListener(SailChangedListener listener)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||