|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openanzo.model.impl.ContainerNamedGraph
public class ContainerNamedGraph
ContainerNamedGraph class is a graph that provides an INamedGraph interface around statements within an IContainer
| Constructor Summary | |
|---|---|
ContainerNamedGraph(IContainer container,
org.openrdf.model.URI namedGraphUri)
Create new ContainerNamedGraph backed by given container |
|
| 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... stmts)
Add one or more statements to graph |
void |
clear()
Clear will remove the statements for this NamedGraph from the parent container |
void |
close()
Close the graph. |
boolean |
contains(org.openrdf.model.Resource subj,
org.openrdf.model.URI prop,
org.openrdf.model.Value obj)
Return true if the graph contains at least 1 statement that matches the pattern of subj,prop,obj |
boolean |
contains(org.openrdf.model.Statement statement)
Return true if the graph contains at least 1 statement that matches the statement provided |
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... stmts)
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 |
info.aduna.collections.iterators.CloseableIterator<org.openrdf.model.Statement> |
getStatements()
Get an iterator of all statements within this graph |
ITransactionManager |
getTransactionManager()
Return ITransactionManager for this graph |
boolean |
isClosed()
Return if graph is closed |
boolean |
isEmpty()
Return if graph is empty |
void |
setNamedGraphUri(org.openrdf.model.URI namedGraphUri)
Set NamedGraph's URI |
int |
size()
Return number of statements in graph |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ContainerNamedGraph(IContainer container,
org.openrdf.model.URI namedGraphUri)
container - Parent container holding statementsnamedGraphUri - URI of NamedGraph| Method Detail |
|---|
public void clear()
clear in interface INamedGraphpublic org.openrdf.model.URI getNamedGraphUri()
INamedGraph
getNamedGraphUri in interface INamedGraphpublic void setNamedGraphUri(org.openrdf.model.URI namedGraphUri)
INamedGraph
setNamedGraphUri in interface INamedGraph
public void add(org.openrdf.model.Resource subj,
org.openrdf.model.URI pred,
org.openrdf.model.Value obj)
INamedGraph
add in interface INamedGraphsubj - 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 INamedGraphsubj - Subject of statementpred - Predicate of statementobj - Object of statementpublic void add(org.openrdf.model.Statement... stmts)
INamedGraph
add in interface INamedGraphstmts - statements to add to graph
public boolean contains(org.openrdf.model.Resource subj,
org.openrdf.model.URI prop,
org.openrdf.model.Value obj)
INamedGraph
contains in interface INamedGraphsubj - 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 boolean contains(org.openrdf.model.Statement statement)
INamedGraph
contains in interface INamedGraphstatement - Statement to check for existence in graph
public void delete(org.openrdf.model.Statement... stmts)
INamedGraph
delete in interface INamedGraphstmts - statements to delete from graphpublic void add(info.aduna.collections.iterators.CloseableIterator<org.openrdf.model.Statement> statements)
INamedGraph
add in interface INamedGraphstatements - statements to delete from graphpublic void delete(info.aduna.collections.iterators.CloseableIterator<org.openrdf.model.Statement> statements)
INamedGraph
delete in interface INamedGraphstatements - 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 INamedGraphsubj - 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 info.aduna.collections.iterators.CloseableIterator<org.openrdf.model.Statement> getStatements()
INamedGraph
getStatements in interface INamedGraphpublic int size()
INamedGraph
size in interface INamedGraphpublic boolean isEmpty()
INamedGraph
isEmpty in interface INamedGraphpublic boolean isClosed()
INamedGraph
isClosed in interface INamedGraphpublic INamedGraphEventManager getEventManager()
INamedGraph
getEventManager in interface INamedGraphpublic ITransactionManager getTransactionManager()
INamedGraph
getTransactionManager in interface INamedGraphpublic void close()
INamedGraph
close in interface INamedGraph
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||