|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openanzo.model.impl.ADataset
public abstract class ADataset
Abstract base implementation of IDataset. Contains 2 sets of URIs, one for the default graphs, and one for the namedGraphs.
| Constructor Summary | |
|---|---|
ADataset()
|
|
| Method Summary | |
|---|---|
void |
add(java.util.Iterator<org.openrdf.model.Statement> statements)
Add statements to their given NamedGraph. |
void |
add(org.openrdf.model.Resource subj,
org.openrdf.model.URI pred,
org.openrdf.model.Value obj,
org.openrdf.model.Resource namedGraphUri)
Add a statement to the given NamedGraph if said NamedGraph is contained within this dataset. |
void |
add(org.openrdf.model.Statement... statements)
Add statements to the given NamedGraph if said NamedGraph is contained within this dataset. |
void |
clear()
Delete all statements in container |
void |
clear(org.openrdf.model.Resource... context)
Delete all statements in container for given contexts |
void |
close()
Disconnect container from its source and close the container Note: Once a container is closed, it is based on the source of the container's data whether or not subsequent calls to connect will return the same data |
void |
connect()
Connect container to its source |
boolean |
contains(org.openrdf.model.Resource subj,
org.openrdf.model.URI prop,
org.openrdf.model.Value obj,
org.openrdf.model.Resource... namedGraphUris)
Return true if the container contains atleast 1 statement that matches the pattern of subj,prop,obj,context |
boolean |
contains(org.openrdf.model.Statement statement)
Return true if the container contains atleast 1 statement that matches the statement provided |
void |
delete(java.util.Iterator<org.openrdf.model.Statement> statements)
Delete statements from their given NamedGraph. |
void |
delete(org.openrdf.model.Resource subj,
org.openrdf.model.URI pred,
org.openrdf.model.Value obj,
org.openrdf.model.Resource namedGraphUri)
Delete statements from the given NamedGraph if said NamedGraph is contained within this dataset. |
void |
delete(org.openrdf.model.Statement... statements)
Delete statements from the given NamedGraph if said NamedGraph is contained within this dataset. |
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,
org.openrdf.model.Resource... namedGraphUris)
Return an iterator over all statements that match the pattern of subj,prop,obj |
info.aduna.collections.iterators.CloseableIterator<org.openrdf.model.Statement> |
findAll(org.openrdf.model.Resource subj,
org.openrdf.model.URI prop,
org.openrdf.model.Value obj,
org.openrdf.model.Resource... namedGraphUris)
Return an iterator of all statements that match the pattern of subj,prop,obj Difference between find, and findall, is that with findAll, if contexts are provided, they are used to sort results, but not limit results, ie the results contains all statements that match the subj,prop,obj, with matching statements within the given contexts earlier in the iterator than statements not in the provided contexts. |
java.util.Collection<org.openrdf.model.URI> |
getContexts()
Get the set of Context URIs that are container within this Container |
info.aduna.collections.iterators.CloseableIterator<org.openrdf.model.Statement> |
getStatements()
Get an iterator over all statements within this container |
org.openrdf.model.URI |
getURI()
Get the URI for the dataset |
boolean |
isClosed()
Return if container is closed |
boolean |
isConnected()
Return if the container is connected to its source |
boolean |
isEmpty()
Return if container is empty |
boolean |
isEmpty(org.openrdf.model.Resource... context)
Return if container is empty for given contexts |
void |
setDatasetURI(org.openrdf.model.URI datasetURI)
Set the URI for the dataset |
int |
size()
Return number of statements in container |
int |
size(org.openrdf.model.Resource... context)
Return number of statements in container |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.openanzo.model.IDataset |
|---|
addDefaultGraphUri, addDefaultNamedGraph, addNamedGraph, addNamedGraphUri, containsDefaultNamedGraph, containsNamedGraph, executeQuery, getDefaulNamedGraphsSize, getDefaultNamedGraph, getDefaultNamedGraphs, getNamedGraph, getNamedGraphs, getNamedGraphsSize, removeDefaultGraphUri, removeNamedGraphUri |
| Methods inherited from interface org.openanzo.model.IContainer |
|---|
executeQuery, getEventManager, getTransactionManager, setEventManager, setTransactionManager |
| Constructor Detail |
|---|
public ADataset()
| Method Detail |
|---|
public void add(org.openrdf.model.Resource subj,
org.openrdf.model.URI pred,
org.openrdf.model.Value obj,
org.openrdf.model.Resource namedGraphUri)
add in interface IContainersubj - Subject of statementpred - Property of statementobj - Object of statementnamedGraphUri - URI of NamedGraph to which statement is to be added
AnzoRuntimeException - if any of the 4 arguments is nullpublic void add(org.openrdf.model.Statement... statements)
add in interface IContainerstatements - to add
AnzoRuntimeException - if any of the 4 arguments is nullpublic void add(java.util.Iterator<org.openrdf.model.Statement> statements)
add in interface IContainerstatements - Iterator of statement to addpublic void delete(java.util.Iterator<org.openrdf.model.Statement> statements)
delete in interface IContainerstatements - Iterator of statement to delete
public void delete(org.openrdf.model.Resource subj,
org.openrdf.model.URI pred,
org.openrdf.model.Value obj,
org.openrdf.model.Resource namedGraphUri)
delete in interface IContainersubj - Subject of statementpred - Property of statementobj - Object of statementnamedGraphUri - URI of NamedGraph to which statement is to be deleted
AnzoRuntimeException - if any of the 4 arguments is nullpublic void delete(org.openrdf.model.Statement... statements)
delete in interface IContainerstatements - statements to remove
AnzoRuntimeException - if any of the 4 arguments is nullpublic void clear()
IContainer
clear in interface IContainer
public boolean contains(org.openrdf.model.Resource subj,
org.openrdf.model.URI prop,
org.openrdf.model.Value obj,
org.openrdf.model.Resource... namedGraphUris)
IContainer
contains in interface IContainersubj - Subject resource to match, or wildcard if nullprop - Predicate uri to match, or wildcard if nullobj - Object value to match, or wildcard if nullnamedGraphUris - Context values to match, or wildcard if null
public boolean contains(org.openrdf.model.Statement statement)
IContainer
contains in interface IContainerstatement - Statement to check for existence in container
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,
org.openrdf.model.Resource... namedGraphUris)
IContainer
find in interface IContainersubj - Subject resource to match, or wildcard if nullprop - Predicate uri to match, or wildcard if nullobj - Object value to match, or wildcard if nullnamedGraphUris - Context values to match, or wildcard if null
public info.aduna.collections.iterators.CloseableIterator<org.openrdf.model.Statement> findAll(org.openrdf.model.Resource subj,
org.openrdf.model.URI prop,
org.openrdf.model.Value obj,
org.openrdf.model.Resource... namedGraphUris)
IDataset
findAll in interface IDatasetsubj - Subject resource to match, or null for anyprop - Predicate uri to match, or null for anyobj - Object value to match, or null for anynamedGraphUris - Set of contexts to search first, before searching the rest of the dataset
public info.aduna.collections.iterators.CloseableIterator<org.openrdf.model.Statement> getStatements()
IContainer
getStatements in interface IContainerpublic boolean isClosed()
IContainer
isClosed in interface IContainerpublic int size()
IContainer
size in interface IContainerpublic org.openrdf.model.URI getURI()
getURI in interface IContainerpublic void setDatasetURI(org.openrdf.model.URI datasetURI)
datasetURI - the value to set dataset's URIpublic void clear(org.openrdf.model.Resource... context)
IContainer
clear in interface IContainercontext - Contexts to clear from containerpublic void close()
IContainer
close in interface IContainerpublic void connect()
IContainer
connect in interface IContainerpublic boolean isConnected()
IContainer
isConnected in interface IContainerpublic boolean isEmpty()
IContainer
isEmpty in interface IContainerpublic boolean isEmpty(org.openrdf.model.Resource... context)
IContainer
isEmpty in interface IContainercontext - Contexts of statements to count
public int size(org.openrdf.model.Resource... context)
IContainer
size in interface IContainercontext - Contexts of statements to count
public java.util.Collection<org.openrdf.model.URI> getContexts()
IContainer
getContexts in interface IContainer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||