|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openanzo.model.impl.BasicGraph
public class BasicGraph
BasicGraph is the basic in-memory implementation of an INamedGraph which relies on a triple store to hold data in memory.
| Constructor Summary | |
|---|---|
BasicGraph(java.util.Collection<org.openrdf.model.Statement> statements,
org.openrdf.model.URI namedGraphURI)
Create a new BasicGraph with given URI, and prepopulated with set of statements |
|
BasicGraph(org.openrdf.model.URI namedGraphURI)
Create a new BasicGraph with given URI |
|
| 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 |
clear()
Delete all statements in graph |
void |
close()
Close BasicGraph, will clear all data within graph to free memory. |
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 stmt)
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... 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 |
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 BasicGraph(org.openrdf.model.URI namedGraphURI)
namedGraphURI - URI of this graph
public BasicGraph(java.util.Collection<org.openrdf.model.Statement> statements,
org.openrdf.model.URI namedGraphURI)
statements - statements to prepopulate graph withnamedGraphURI - URI of this graph| Method Detail |
|---|
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... statements)
INamedGraph
add in interface INamedGraphstatements - statements to add to graphpublic void delete(org.openrdf.model.Statement... statements)
INamedGraph
delete in interface INamedGraphstatements - 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 graphpublic info.aduna.collections.iterators.CloseableIterator<org.openrdf.model.Statement> getStatements()
INamedGraph
getStatements in interface INamedGraph
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 boolean contains(org.openrdf.model.Statement stmt)
INamedGraph
contains in interface INamedGraphstmt - Statement to check for existence in 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 void close()
close in interface INamedGraphpublic org.openrdf.model.URI getNamedGraphUri()
INamedGraph
getNamedGraphUri in interface INamedGraphpublic void setNamedGraphUri(org.openrdf.model.URI namedGraphUri)
INamedGraph
setNamedGraphUri in interface INamedGraphpublic void clear()
INamedGraph
clear 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 INamedGraph
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||