|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Remover
Interface for an object which can remove RDF data from a Stardog database.
Usage:
// remove a single statement
c.remove().statements(s,p,o);
// we can remove an entire context
c.remove().context(cxt);
// or the results of a query
c.remove().query(constructQuery);
| Method Summary | |
|---|---|
Remover |
all()
Delete the entire contents of the database. |
Remover |
context(Resource theContext)
Remove the context and all the statements within from the database. |
Remover |
graph(Graph theGraph,
Resource... theContext)
Remove the specified graph from the database. |
IO |
io()
Get an IO object to remove contents from an IO source |
Remover |
query(Query theQuery)
Deprecated. will be removed in the next major version of Stardog (1.3) |
Remover |
statement(Statement theStatement)
Remove a statement from the database. |
Remover |
statements(Resource theSubj,
URI thePred,
Value theObj,
Resource... theContexts)
Remove a statement or statements from the database; null's can be used in any position to indicate a wildcard matching anything in that position, thereby removing multiple statements. |
| Method Detail |
|---|
Remover statement(Statement theStatement)
throws StardogException
theStatement - the statement to remove
StardogException - if there was an error while removing this statement
Remover statements(Resource theSubj,
URI thePred,
Value theObj,
Resource... theContexts)
throws StardogException
theSubj - the subject, or null for a wildcardthePred - the predicate, or null for a wildcardtheObj - the object, or null for a wildcardtheContexts - the context, or null for a wildcard
StardogException - if there was an error removing
Remover context(Resource theContext)
throws StardogException
Contexts.DEFAULT, this will remove the default graph (no context). If you want
to remove everything in the database regardless of context, use #allUser.
theContext - the context to remove
StardogException - if there was an error while removing
Remover graph(Graph theGraph,
Resource... theContext)
throws StardogException
theGraph - the graph to removetheContext - the optional context to remove from
StardogException - if there is an error while removing
Remover all()
throws StardogException
StardogException - if there is an error while removing
@Deprecated
Remover query(Query theQuery)
throws StardogException
theQuery - the query to execute
StardogException - if there is an error while removing
IO io()
throws StardogException
IO object to remove contents from an IO source
StardogException - if there is an error while creating the IO source
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||