|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openanzo.model.proxy.ProxyGraph
org.openanzo.model.delta.DeltaGraph
public class DeltaGraph
Graph implementation that keeps track of additions and deletions to a graph inside of a Transaction Queue. Additions and deletions are not applied to the underlying graph until the transaction is commited.
| Constructor Summary | |
|---|---|
DeltaGraph(INamedGraph base)
Create a new DeltaGraph on top of the base graph |
|
DeltaGraph(INamedGraph base,
java.util.Collection<org.openrdf.model.Statement> additions,
java.util.Collection<org.openrdf.model.Statement> deletions)
Create a new DeltaGraph on top of the base graph, and use the supplied additions and deletions in the overlay. |
|
| Method Summary | |
|---|---|
void |
add(info.aduna.collections.iterators.CloseableIterator<org.openrdf.model.Statement> statements)
Add a set of statements from graph |
void |
add(org.openrdf.model.Resource subj,
org.openrdf.model.URI pred,
org.openrdf.model.Value obj)
Add a new statement with given subj,pred,obj |
void |
add(org.openrdf.model.Statement... statements)
Add one or more statements to graph |
void |
delete(info.aduna.collections.iterators.CloseableIterator<org.openrdf.model.Statement> statements)
Delete a set of statements from graph |
void |
delete(org.openrdf.model.Resource subj,
org.openrdf.model.URI pred,
org.openrdf.model.Value obj)
Delete a statement from graph |
void |
delete(org.openrdf.model.Statement... statements)
Delete a set of statements from graph |
info.aduna.collections.iterators.CloseableIterator<org.openrdf.model.Statement> |
find(org.openrdf.model.Resource subj,
org.openrdf.model.URI prop,
org.openrdf.model.Value obj)
Return an iterator of all statements that match the pattern of subj,prop,obj |
INamedGraphEventManager |
getEventManager()
Return INamedGraphEventManager for this graph |
org.openrdf.model.URI |
getNamedGraphUri()
Get NamedGraph's URI |
INamedGraph |
getParentGraph()
Get the graph to which this proxy is proxing information. |
boolean |
isClosed()
Return if graph is closed |
void |
setNamedGraphUri(org.openrdf.model.URI namedGraphUri)
Set NamedGraph's URI |
| Methods inherited from class org.openanzo.model.proxy.ProxyGraph |
|---|
clear, close, contains, contains, getStatements, getTransactionManager, isEmpty, size |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DeltaGraph(INamedGraph base)
base - Base graph to overlay deltas
public DeltaGraph(INamedGraph base,
java.util.Collection<org.openrdf.model.Statement> additions,
java.util.Collection<org.openrdf.model.Statement> deletions)
base - Base graph to overlay deltasadditions - Addition deltas to overlaydeletions - Deletion deltas to overlay| Method Detail |
|---|
public void add(org.openrdf.model.Resource subj,
org.openrdf.model.URI pred,
org.openrdf.model.Value obj)
INamedGraph
add in interface INamedGraphadd in class ProxyGraphsubj - Subject of statementpred - Predicate of statementobj - Object of statement
public void delete(org.openrdf.model.Resource subj,
org.openrdf.model.URI pred,
org.openrdf.model.Value obj)
INamedGraph
delete in interface INamedGraphdelete in class ProxyGraphsubj - Subject of statementpred - Predicate of statementobj - Object of statementpublic void add(org.openrdf.model.Statement... statements)
INamedGraph
add in interface INamedGraphadd in class ProxyGraphstatements - statements to add to graphpublic void delete(org.openrdf.model.Statement... statements)
INamedGraph
delete in interface INamedGraphdelete in class ProxyGraphstatements - statements to delete from graphpublic void delete(info.aduna.collections.iterators.CloseableIterator<org.openrdf.model.Statement> statements)
INamedGraph
delete in interface INamedGraphdelete in class ProxyGraphstatements - statements to delete from graphpublic void add(info.aduna.collections.iterators.CloseableIterator<org.openrdf.model.Statement> statements)
INamedGraph
add in interface INamedGraphadd in class ProxyGraphstatements - statements to delete from graph
public info.aduna.collections.iterators.CloseableIterator<org.openrdf.model.Statement> find(org.openrdf.model.Resource subj,
org.openrdf.model.URI prop,
org.openrdf.model.Value obj)
INamedGraph
find in interface INamedGraphfind in class ProxyGraphsubj - Subject resource to match, or wildcard if nullprop - Predicate uri to match, or wildcard if nullobj - Object value to match, or wildcard if null
public INamedGraph getParentGraph()
IProxyGraph
getParentGraph in interface IProxyGraphgetParentGraph in class ProxyGraphpublic org.openrdf.model.URI getNamedGraphUri()
INamedGraph
public void setNamedGraphUri(org.openrdf.model.URI namedGraphUri)
INamedGraph
public boolean isClosed()
INamedGraph
public INamedGraphEventManager getEventManager()
INamedGraph
getEventManager in interface INamedGraphgetEventManager in class ProxyGraph
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||