|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.openrdf.sesame.sailimpl.rdbms.RdfSource
org.openrdf.sesame.sailimpl.rdbms.RdfRepository
A portable implementation of the RdfRepository interface for relational databases, based on (a subset of) the SQL2/SQL92 standard. This class defines the update methods. The superclass RdfSource defines the read-only methods.
| Field Summary |
| Fields inherited from class org.openrdf.sesame.sailimpl.rdbms.RdfSource |
JDBC_DRIVER_KEY, JDBC_URL_KEY, KEY_EXPORT_FLAGS, KEY_SCHEMACREATOR, KEY_SCHEMAVERSION, PASSWORD_KEY, USER_KEY, VALUE_DIRTY, VALUE_UP_TO_DATE |
| Constructor Summary | |
RdfRepository()
|
|
| 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 |
initialize(Map configParams)
Initializes the Sail using a set of configuration parameters. |
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 class org.openrdf.sesame.sailimpl.rdbms.RdfSource |
createBNode, createBNode, createLiteral, createLiteral, createLiteral, createStatement, createURI, createURI, getLiteral, getNamespaces, getResource, getStatements, getStatements, getValue, getValueFactory, hasStatement, hasStatement, initialize, initialize, optimizeQuery, shutDown |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.openrdf.sesame.sail.RdfSource |
getNamespaces, getStatements, getValueFactory, hasStatement, optimizeQuery |
| Methods inherited from interface org.openrdf.sesame.sail.Sail |
shutDown |
| Constructor Detail |
public RdfRepository()
| Method Detail |
public void initialize(Map configParams)
throws SailInitializationException
Sail
initialize in interface Sailinitialize in class RdfSourceconfigParams - configuration parameters
SailInitializationException - If the RdfSource could not be initialized using the supplied
parameters.Sail.initialize(java.util.Map)public void startTransaction()
RdfRepository
startTransaction 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 commitTransaction()
RdfRepository
commitTransaction in interface RdfRepository
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 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 | ||||||||||