|
|||||||||||
| 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
org.openrdf.sesame.sailimpl.rdbms.RdfSchemaRepository
org.openrdf.sesame.sailimpl.omm.versioning.VersioningRdbmsSail
Title:
Description:
Copyright: Copyright (c) 2003
Company:
| Field Summary | |
static String |
BORN_AT_URI
|
static String |
DIED_AT_URI
|
static String |
EXPLICIT_KEY
|
static String |
KIND_KEY
|
static String |
MADE_BY_URI
|
static String |
MADE_ON_URI
|
static String |
USER_ID_URI
|
static String |
VERSION_NAME_URI
|
static String |
VERSION_UPDATE_ID
|
| Fields inherited from class org.openrdf.sesame.sailimpl.rdbms.RdfSchemaRepository |
INFERENCER_KEY, rdfAltId, rdfBagId, rdfFirstId, rdfListId, rdfNilId, rdfObjectId, rdfPredicateId, rdfPropertyId, rdfRestId, rdfsClassId, rdfsCommentId, rdfsContainerId, rdfsContainerMembershipPropertyId, rdfsDatatypeId, rdfsDomainId, rdfSeqId, rdfsIsDefinedById, rdfsLabelId, rdfsLiteralId, rdfsMemberId, rdfsRangeId, rdfsResourceId, rdfsSeeAlsoId, rdfsSubClassOfId, rdfsSubPropertyOfId, rdfStatementId, rdfSubjectId, rdfTypeId, rdfValueId, rdfXMLLiteralId, USE_DEPENDENCY_INFERENCER_KEY |
| 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 | |
VersioningRdbmsSail()
|
|
| Method Summary | |
void |
addStatement(Resource subj,
URI pred,
Value obj)
add's a new explicit statement to repository |
String |
branchState(long stateUID)
branch the repository at given state for further operations. |
void |
clearRepository()
Clears the repository. |
void |
commitTransaction()
Commits a started transaction. |
void |
continueCounterIncrement()
Coninue with the normal increment of the update counter on each modification made in the repository. |
Map |
getMetaInfo(String subj,
String pred,
String obj)
Retrieves the meta info associated with a statement. |
Iterator |
getUpdateIds()
Return a list of all Update states of the current repository as Strings. |
Map |
getUpdateMetaInfo(String updateId)
Retrieves the meta info associated with an update. |
Iterator |
getVersionIds()
Return a list of all Version Ids of the current repository as Strings. |
Map |
getVersionMetaInfo(String versionId)
Retrieves the meta info associated with a version . |
Iterator |
getVersions()
Retrive list of all labeled states of the repository. |
void |
initialize(Map configParams)
Initializes the TmsSQL92Sail. |
boolean |
isPausedCounterIncrement()
Check if the update couter ss paused |
void |
labelCurrentState(String label)
Create a labeled version of the curent repository state. |
void |
labelState(long stateUID,
String label)
Create a labeled version for a statte of the repository assigning the necessary mata-information about thet operation. |
void |
lockStatements(Iterator statementsList)
Perform locking of statements in the repository |
void |
pauseCounterIncrement()
Stop the increment of the update counter. |
void |
revertToState(long stateUID)
Restore the repository to previous state removing all statements added after the value of the update counter and revive all removed ones. |
void |
shutDown()
Allow the SAIL to synchronize any stale data. |
void |
startTransaction()
Starts a transaction. |
void |
unlockStatements(Iterator statementsList)
Perform unlocking of statements in the repository |
void |
workWithState(long stateUID)
Sets the repository to given statete for further read operations. |
| Methods inherited from class org.openrdf.sesame.sailimpl.rdbms.RdfSchemaRepository |
getClasses, getDirectSubClassOf, getDirectSubPropertyOf, getDirectType, getDomain, getExplicitStatements, getLiterals, getProperties, getRange, getRDBMS, getSubClassOf, getSubPropertyOf, getType, hasExplicitStatement, isClass, isDirectSubClassOf, isDirectSubPropertyOf, isDirectType, isProperty, isSubClassOf, isSubPropertyOf, isType |
| Methods inherited from class org.openrdf.sesame.sailimpl.rdbms.RdfRepository |
addListener, changeNamespacePrefix, removeListener, removeStatements, transactionStarted |
| 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 |
| 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.RdfRepository |
addListener, changeNamespacePrefix, removeListener, removeStatements, transactionStarted |
| Field Detail |
public static final String MADE_BY_URI
public static final String USER_ID_URI
public static final String VERSION_NAME_URI
public static final String VERSION_UPDATE_ID
public static final String BORN_AT_URI
public static final String DIED_AT_URI
public static final String MADE_ON_URI
public static final String EXPLICIT_KEY
public static final String KIND_KEY
| Constructor Detail |
public VersioningRdbmsSail()
| Method Detail |
public void shutDown()
shutDown in interface SailshutDown in class RdfSourceSailInternalException - To indicate an internal error.
public void initialize(Map configParams)
throws SailInitializationException
| key | value |
| jdbcDriver | The String representing the JDBC-driver class, e.g. "org.gjt.mm.mysql.Driver" |
| jdbcUrl | The String representing the JDBC-url of the database to connect to, e.g. "jdbc:mysql://localhost/sesame" |
| user | The username that can be used to connect to the DBMS |
| password | The password of the user in the DBMS |
initialize in interface Sailinitialize in class RdfSchemaRepositoryconfigParams - configuration parameters
SailInitializationException - If the TmsSQL92Sail could not
be initialized using the supplied parameters.
public void addStatement(Resource subj,
URI pred,
Value obj)
throws SailUpdateException
addStatement in interface RdfRepositoryaddStatement in class RdfRepositorysubj - is either BNode ot URI denoting the statement's subjectpred - is an URI for predicateobj - is the object value of the statement (Resource or Literal)
SailUpdateException
public void clearRepository()
throws SailUpdateException
clearRepository in interface RdfRepositoryclearRepository in class RdfSchemaRepositorySailInternalException - To indicate an internal error.
SailUpdateExceptionpublic void startTransaction()
startTransaction in interface RdfRepositorystartTransaction in class RdfRepositorySailInternalException - To indicate an internal error.public void commitTransaction()
commitTransaction in interface RdfRepositorycommitTransaction in class RdfRepositorySailInternalException - To indicate an internal error.public Iterator getUpdateIds()
getUpdateIds in interface VersionManagementpublic Iterator getVersionIds()
getVersionIds in interface VersionManagement
public void labelState(long stateUID,
String label)
labelState in interface VersionManagementstateUID - of a particular repository statelabel - associated with the state
NOTE: This method can throw a security exception if the request is made on
behalf of the user with insufficent rights to create versionspublic void labelCurrentState(String label)
labelCurrentState in interface VersionManagementlabel - to be associated with the state
NOTE: This method can throw a security exception if the request is made on
behalf of the user with insufficent rights to create versionspublic void revertToState(long stateUID)
revertToState in interface VersionManagementstateUID - - the update counter of a particular repository state
NOTE: This method can throw a security exception if the request is made on
behalf of the user with insufficent rights to revert the repositorypublic void workWithState(long stateUID)
workWithState in interface VersionManagementstateUID - - the update counter of a particular repository statepublic String branchState(long stateUID)
VersionManagement
branchState in interface VersionManagementstateUID - the update counter of a particular repository state
public Iterator getVersions()
getVersions in interface VersionManagementpublic void lockStatements(Iterator statementsList)
lockStatements in interface VersionManagementstatementsList - - list of statemensts to lockpublic void unlockStatements(Iterator statementsList)
unlockStatements in interface VersionManagementstatementsList - - list of statemensts to unlockpublic void pauseCounterIncrement()
pauseCounterIncrement in interface VersionManagementpublic void continueCounterIncrement()
continueCounterIncrement in interface VersionManagementpublic boolean isPausedCounterIncrement()
isPausedCounterIncrement in interface VersionManagement
public Map getMetaInfo(String subj,
String pred,
String obj)
getMetaInfo in interface VersionManagementsubj - the subject of the statementpred - the predicate of the statementobj - the object of the statement
public Map getUpdateMetaInfo(String updateId)
getUpdateMetaInfo in interface VersionManagementupdateId - the id of the update
public Map getVersionMetaInfo(String versionId)
getVersionMetaInfo in interface VersionManagementversionId - the id of the update
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||