|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TripleStore
an interface representing an RDF triple store
| 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. |
| Method Detail |
|---|
void initialize(java.util.Map params)
params - is a map with innitialization parameters.
Strings are used as keys and the values may be key dependandvoid shutdown()
TripleIterator getStatements(org.wsmo.common.Identifier subj,
org.wsmo.common.IRI pred,
org.wsmo.common.Identifier obj)
subj - is Identifier or null indicating a wildcardpred - is IRI or null indicating a wildcardobj - is Identifier or null indicating a wildcard
TripleIterator getStatements(org.wsmo.common.Identifier subj,
org.wsmo.common.IRI pred,
java.lang.String literal)
subj - is Identifier or null indicating a wildcardpred - is IRI or null indicating a wildcardliteral - String representation of a the literal or the DataValue
boolean hasStatement(org.wsmo.common.Identifier subj,
org.wsmo.common.IRI pred,
org.wsmo.common.Identifier obj)
subj - is Identifier or null indicating a wildcardpred - is IRI or null indicating a wildcardobj - is Identifier or null indicating a wildcard
boolean hasStatement(org.wsmo.common.Identifier subj,
org.wsmo.common.IRI pred,
java.lang.String literal)
subj - is Identifier or null indicating a wildcardpred - is IRI or null indicating a wildcardliteral - String representation of a the literal or the DataValue
void addStatement(org.wsmo.common.Identifier subj,
org.wsmo.common.IRI pred,
org.wsmo.common.Identifier obj)
subj - is Identifier, null is not allowedpred - is IRI, null is not allowedobj - is Identifier, null is not allowed
void addStatement(org.wsmo.common.Identifier subj,
org.wsmo.common.IRI pred,
java.lang.String literal)
subj - 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
int removeStatements(org.wsmo.common.Identifier subj,
org.wsmo.common.IRI pred)
subj - is Identifier or null indicating a wildcardpred - is IRI or null indicating a wildcard
int removeStatements(org.wsmo.common.Identifier subj,
org.wsmo.common.IRI pred,
org.wsmo.common.Identifier obj)
subj - is Identifier or null indicating a wildcardpred - is IRI or null indicating a wildcardobj - is Identifier or null indicating a wildcard
int removeStatements(org.wsmo.common.Identifier subj,
org.wsmo.common.IRI pred,
java.lang.String literal)
subj - is Identifier or null indicating a wildcardpred - is IRI or null indicating a wildcardliteral - String representation of a the literal or the DataValue
boolean canUpdate()
void beginUpdate()
void commitUpdate()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||