org.omwg.ordi.rdf
Interface TripleStore

All Known Implementing Classes:
SesameImpl

public interface TripleStore

an interface representing an RDF triple store

Version:
$Revision: 1.1 $ $Date: 2006/02/01 14:19:21 $
Author:
Damyan

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

initialize

void initialize(java.util.Map params)
invoked to initialize the reposiotry.

Parameters:
params - is a map with innitialization parameters. Strings are used as keys and the values may be key dependand

shutdown

void shutdown()
invoked to shut down the reposiroty.


getStatements

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

Parameters:
subj - is Identifier or null indicating a wildcard
pred - is IRI or null indicating a wildcard
obj - is Identifier or null indicating a wildcard
Returns:
a TripleIterator that enumerates the matched statements

getStatements

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

Parameters:
subj - is Identifier or null indicating a wildcard
pred - is IRI or null indicating a wildcard
literal - String representation of a the literal or the DataValue
Returns:
a TripleIterator that enumerates the matched statements

hasStatement

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

Parameters:
subj - is Identifier or null indicating a wildcard
pred - is IRI or null indicating a wildcard
obj - is Identifier or null indicating a wildcard
Returns:
true if statement is found in the repository, false otherwise

hasStatement

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

Parameters:
subj - is Identifier or null indicating a wildcard
pred - is IRI or null indicating a wildcard
literal - String representation of a the literal or the DataValue
Returns:
true if statement is found in the repository, false otherwise

addStatement

void addStatement(org.wsmo.common.Identifier subj,
                  org.wsmo.common.IRI pred,
                  org.wsmo.common.Identifier obj)
add a single statement to the repository

Parameters:
subj - is Identifier, null is not allowed
pred - is IRI, null is not allowed
obj - is Identifier, null is not allowed

addStatement

void addStatement(org.wsmo.common.Identifier subj,
                  org.wsmo.common.IRI pred,
                  java.lang.String literal)
add a single statement to the repository

Parameters:
subj - is Identifier,null is not allowed
pred - is IRI,null is not allowed
literal - String representation of a the literal or the DataValue,null is not allowed

removeStatements

int removeStatements(org.wsmo.common.Identifier subj,
                     org.wsmo.common.IRI pred)
remove all statements with the given subject and predicate from the reposiotry

Parameters:
subj - is Identifier or null indicating a wildcard
pred - is IRI or null indicating a wildcard
Returns:
number of statements removed

removeStatements

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

Parameters:
subj - is Identifier or null indicating a wildcard
pred - is IRI or null indicating a wildcard
obj - is Identifier or null indicating a wildcard
Returns:
number of statements removed

removeStatements

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

Parameters:
subj - is Identifier or null indicating a wildcard
pred - is IRI or null indicating a wildcard
literal - String representation of a the literal or the DataValue
Returns:
number of statements removed

canUpdate

boolean canUpdate()
check if modificatin is possible in the current state of the repository

Returns:
true if allowed, false otherwise

beginUpdate

void beginUpdate()
invoke it to enable further modifications to the repository


commitUpdate

void commitUpdate()
invoke it to commit the modifications made to the repository and disamble further modifications



Copyright © 2005-2006 Ontotext Lab., GNU LGPL License applies.