|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ontotext.ordi.wrappers.SesameImpl
public class SesameImpl
A Reference implementation of TripleStore using Sesame.
| Field Summary | |
|---|---|
static java.lang.String |
SESAME_CONFIG_PARAM
the loccation of the external configuration file used to initialise sesame |
static java.lang.String |
SESAME_PASS
the sesame's user passwor |
static java.lang.String |
SESAME_REPOSITORY
the id of the sesame's repository used to store wsml entiites |
static java.lang.String |
SESAME_RMI_HOST
RMI connect parameters to a previously initialized Sesame Server on the net |
static java.lang.String |
SESAME_RMI_PORT
|
static java.lang.String |
SESAME_USER
sesame user used to connect to the sesame instance |
| Constructor Summary | |
|---|---|
SesameImpl()
|
|
| Method Summary | |
|---|---|
void |
addStatement(org.wsmo.common.Identifier subj,
org.wsmo.common.IRI pred,
org.wsmo.common.Identifier obj)
add a single statement to the repository |
void |
addStatement(org.wsmo.common.Identifier subj,
org.wsmo.common.IRI pred,
java.lang.String literal)
add a single statement to the repository |
void |
beginUpdate()
invoke it to enable further modifications to the repository |
boolean |
canUpdate()
check if modificatin is possible in the current state of the repository |
void |
commitUpdate()
invoke it to commit the modifications made to the repository and disamble further modifications |
TripleIterator |
getStatements(org.wsmo.common.Identifier subj,
org.wsmo.common.IRI pred,
org.wsmo.common.Identifier obj)
return a TripleIterator with the statements matching the arguments |
TripleIterator |
getStatements(org.wsmo.common.Identifier subj,
org.wsmo.common.IRI pred,
java.lang.String literal)
return a TripleIterator with the statements matching the arguments |
boolean |
hasStatement(org.wsmo.common.Identifier subj,
org.wsmo.common.IRI pred,
org.wsmo.common.Identifier obj)
check if a statement is present in the rpository |
boolean |
hasStatement(org.wsmo.common.Identifier subj,
org.wsmo.common.IRI pred,
java.lang.String literal)
check if a statement is present in the rpository |
void |
initialize(java.util.Map params)
invoked to initialize the reposiotry. |
int |
removeStatements(org.wsmo.common.Identifier subj,
org.wsmo.common.IRI pred)
remove all statements with the given subject and predicate from the reposiotry |
int |
removeStatements(org.wsmo.common.Identifier subj,
org.wsmo.common.IRI pred,
org.wsmo.common.Identifier obj)
remove all statements with the given subject, predicate and object from the reposiotry |
int |
removeStatements(org.wsmo.common.Identifier subj,
org.wsmo.common.IRI pred,
java.lang.String literal)
remove all statements with the given subject, predicate and object from the reposiotry |
void |
shutdown()
invoked to shut down the reposiroty. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static java.lang.String SESAME_REPOSITORY
public static java.lang.String SESAME_USER
public static java.lang.String SESAME_PASS
public static java.lang.String SESAME_CONFIG_PARAM
public static java.lang.String SESAME_RMI_HOST
public static java.lang.String SESAME_RMI_PORT
| Constructor Detail |
|---|
public SesameImpl()
| Method Detail |
|---|
public void initialize(java.util.Map params)
TripleStore
initialize in interface TripleStoreparams - is a map with innitialization parameters.
Strings are used as keys and the values may be key dependandpublic void shutdown()
TripleStore
shutdown in interface TripleStore
public TripleIterator getStatements(org.wsmo.common.Identifier subj,
org.wsmo.common.IRI pred,
org.wsmo.common.Identifier obj)
TripleStore
getStatements in interface TripleStoresubj - is Identifier or null indicating a wildcardpred - is IRI or null indicating a wildcardobj - is Identifier or null indicating a wildcard
public TripleIterator getStatements(org.wsmo.common.Identifier subj,
org.wsmo.common.IRI pred,
java.lang.String literal)
TripleStore
getStatements in interface TripleStoresubj - is Identifier or null indicating a wildcardpred - is IRI or null indicating a wildcardliteral - String representation of a the literal or the DataValue
public boolean hasStatement(org.wsmo.common.Identifier subj,
org.wsmo.common.IRI pred,
org.wsmo.common.Identifier obj)
TripleStore
hasStatement in interface TripleStoresubj - is Identifier or null indicating a wildcardpred - is IRI or null indicating a wildcardobj - is Identifier or null indicating a wildcard
public boolean hasStatement(org.wsmo.common.Identifier subj,
org.wsmo.common.IRI pred,
java.lang.String literal)
TripleStore
hasStatement in interface TripleStoresubj - is Identifier or null indicating a wildcardpred - is IRI or null indicating a wildcardliteral - String representation of a the literal or the DataValue
public void addStatement(org.wsmo.common.Identifier subj,
org.wsmo.common.IRI pred,
org.wsmo.common.Identifier obj)
TripleStore
addStatement in interface TripleStoresubj - is Identifier, null is not allowedpred - is IRI, null is not allowedobj - is Identifier, null is not allowed
public void addStatement(org.wsmo.common.Identifier subj,
org.wsmo.common.IRI pred,
java.lang.String literal)
TripleStore
addStatement in interface TripleStoresubj - is Identifier,null is not allowedpred - is IRI,null is not allowedliteral - String representation of a the literal or the DataValue,null is not allowed
public int removeStatements(org.wsmo.common.Identifier subj,
org.wsmo.common.IRI pred)
TripleStore
removeStatements in interface TripleStoresubj - is Identifier or null indicating a wildcardpred - is IRI or null indicating a wildcard
public int removeStatements(org.wsmo.common.Identifier subj,
org.wsmo.common.IRI pred,
org.wsmo.common.Identifier obj)
TripleStore
removeStatements in interface TripleStoresubj - is Identifier or null indicating a wildcardpred - is IRI or null indicating a wildcardobj - is Identifier or null indicating a wildcard
public int removeStatements(org.wsmo.common.Identifier subj,
org.wsmo.common.IRI pred,
java.lang.String literal)
TripleStore
removeStatements in interface TripleStoresubj - is Identifier or null indicating a wildcardpred - is IRI or null indicating a wildcardliteral - String representation of a the literal or the DataValue
public boolean canUpdate()
TripleStore
canUpdate in interface TripleStorepublic void beginUpdate()
TripleStore
beginUpdate in interface TripleStorepublic void commitUpdate()
TripleStore
commitUpdate in interface TripleStore
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||