|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openanzo.model.impl.ADataset
org.openanzo.client.ClosableDatasetServiceDataset
public class ClosableDatasetServiceDataset
The ClosableDatasetServiceDataset is the implementation of IDataset returned by the DatasetService's getLocalDataset or getRemoteDataset methods. This ensures that the underlying NamedGraphs' reference counters are incremented and decremented correctly.
| Method Summary | |
|---|---|
void |
addDefaultGraphUri(org.openrdf.model.URI uri)
Add the URI of an INamedGraph to include within this dataset's default model |
void |
addDefaultGraphUri(org.openrdf.model.URI uri,
org.openrdf.model.URI metadataURI)
Add the NamedGraph with the given URI and metadataURI. |
void |
addDefaultNamedGraph(org.openrdf.model.URI uri,
INamedGraph namedGraph)
Add an INamedGraph with its URI to this dataset's default model |
void |
addNamedGraph(org.openrdf.model.URI uri,
INamedGraph namedGraph)
Add an INamedGraph with its URI to this dataset |
void |
addNamedGraphUri(org.openrdf.model.URI uri)
Add the URI of an INamedGraph to include within this dataset |
void |
addNamedGraphUri(org.openrdf.model.URI uri,
org.openrdf.model.URI metadataURI)
Add the NamedGraph with the given URI and metadataURI. |
void |
close()
Close all named graphs instantiated threw this dataset. |
boolean |
containsDefaultNamedGraph(org.openrdf.model.URI uri)
Return if this dataset contains a INamedGraph with the given URI in the dataset's default model |
boolean |
containsNamedGraph(org.openrdf.model.URI uri)
Return if this dataset contains a INamedGraph with the given URI |
QueryResult |
executeQuery(java.util.Set<org.openrdf.model.URI> defaultNamedGraphsIn,
java.util.Set<org.openrdf.model.URI> namedGraphsIn,
java.lang.String query)
Execute a SPARQL query against the data within this container |
QueryResult |
executeQuery(java.lang.String query)
Execute a SPARQL query against the data within this dataset, using the dataset's DefaultGraph and NameGraph sets |
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. |
int |
getDefaulNamedGraphsSize()
Return number of INamedGraphs within this dataset's default set |
INamedGraph |
getDefaultNamedGraph(org.openrdf.model.URI uri)
Get the INamedGraph for the given URI if it is within this dataset's default model |
INamedGraph |
getDefaultNamedGraph(org.openrdf.model.URI uri,
org.openrdf.model.URI metadataURI)
Get the NamedGraph with the given URI and metadataURI. |
java.lang.Iterable<org.openrdf.model.URI> |
getDefaultNamedGraphs()
Return an Iterable<URI> of the URIs for the INamedGraphs within this dataset's default model |
INamedGraphEventManager |
getEventManager()
Return INamedGraphEventManager for this container |
NamedGraphBase |
getNamedGraph(org.openrdf.model.URI uri)
Get the NamedGraph with given uri. |
NamedGraphBase |
getNamedGraph(org.openrdf.model.URI uri,
org.openrdf.model.URI metadataURI)
Get the NamedGraph with the given URI and metadataURI. |
java.lang.Iterable<org.openrdf.model.URI> |
getNamedGraphs()
Return an Iterable<URI> of the URIs for the INamedGraphs within this dataset |
int |
getNamedGraphsSize()
Return number of INamedGraphs within this dataset |
ITransactionManager |
getTransactionManager()
Return ITransactionManager for this container |
void |
loadDefaultGraphs()
If defaultGraphUris is not null, load the NamedGraphs that makeup the defaultGraphUris set. |
void |
removeDefaultGraphUri(org.openrdf.model.URI uri)
Remove the URI of an INamedGraph to include within this dataset's default model |
void |
removeNamedGraphUri(org.openrdf.model.URI uri)
Remove the URI of an INamedGraph to include within this dataset |
void |
setEventManager(INamedGraphEventManager eventManager)
Set INamedGraphEventManager for this container |
void |
setTransactionManager(ITransactionManager transactionManager)
Set ITransactionManager for this container |
| Methods inherited from class org.openanzo.model.impl.ADataset |
|---|
add, add, add, clear, clear, connect, contains, contains, delete, delete, delete, getContexts, getStatements, getURI, isClosed, isConnected, isEmpty, isEmpty, setDatasetURI, size, size |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public void close()
close in interface IContainerclose in class ADatasetpublic boolean containsNamedGraph(org.openrdf.model.URI uri)
IDataset
uri - URI of INamedGraph
public boolean containsDefaultNamedGraph(org.openrdf.model.URI uri)
IDataset
uri - URI of INamedGraph
public void loadDefaultGraphs()
public NamedGraphBase getNamedGraph(org.openrdf.model.URI uri)
uri - URI of INamedGraph
public NamedGraphBase getNamedGraph(org.openrdf.model.URI uri,
org.openrdf.model.URI metadataURI)
uri - for NamedGraphmetadataURI - NamedGraph's metadata URI
public INamedGraph getDefaultNamedGraph(org.openrdf.model.URI uri)
IDataset
uri - URI of INamedGraph
public INamedGraph getDefaultNamedGraph(org.openrdf.model.URI uri,
org.openrdf.model.URI metadataURI)
uri - for NamedGraphmetadataURI - NamedGraph's metadata URI
public void addDefaultGraphUri(org.openrdf.model.URI uri)
IDataset
uri - URI of namedgraph to add to this dataset's default model
public void addDefaultGraphUri(org.openrdf.model.URI uri,
org.openrdf.model.URI metadataURI)
uri - for NamedGraphmetadataURI - NamedGraph's metadata URIpublic void addNamedGraphUri(org.openrdf.model.URI uri)
IDataset
uri - URI of namedgraph to add to this dataset
public void addNamedGraphUri(org.openrdf.model.URI uri,
org.openrdf.model.URI metadataURI)
uri - for NamedGraphmetadataURI - NamedGraph's metadata URIpublic void removeDefaultGraphUri(org.openrdf.model.URI uri)
IDataset
uri - URI of namedgraph to add to this dataset's default modelpublic void removeNamedGraphUri(org.openrdf.model.URI uri)
IDataset
uri - URI of namedgraph to add to this dataset
public void addDefaultNamedGraph(org.openrdf.model.URI uri,
INamedGraph namedGraph)
IDataset
uri - URI of INamedGraphnamedGraph - INamedGraph to add to this dataset's default model
public void addNamedGraph(org.openrdf.model.URI uri,
INamedGraph namedGraph)
IDataset
uri - URI of INamedGraphnamedGraph - INamedGraph to addpublic java.lang.Iterable<org.openrdf.model.URI> getDefaultNamedGraphs()
IDataset
public java.lang.Iterable<org.openrdf.model.URI> getNamedGraphs()
IDataset
public int getDefaulNamedGraphsSize()
IDataset
public int getNamedGraphsSize()
IDataset
public INamedGraphEventManager getEventManager()
IContainer
public ITransactionManager getTransactionManager()
IContainer
public void setEventManager(INamedGraphEventManager eventManager)
IContainer
eventManager - set the Containers eventManagetpublic void setTransactionManager(ITransactionManager transactionManager)
IContainer
transactionManager - set ITransactionManager for this container
public QueryResult executeQuery(java.util.Set<org.openrdf.model.URI> defaultNamedGraphsIn,
java.util.Set<org.openrdf.model.URI> namedGraphsIn,
java.lang.String query)
throws AnzoException
IContainer
defaultNamedGraphsIn - Set<URI> of URIs for NamedGraphs that will make up the default graph for this querynamedGraphsIn - Set<URI> of URIs for NamedGraphs that will make up the NamedGraphs for this queryquery - SPARQL query string
AnzoException
public QueryResult executeQuery(java.lang.String query)
throws AnzoException
IDataset
query - SPARQL query string
AnzoException
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 IDatasetfindAll in class ADatasetsubj - 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> 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 IContainerfind in class ADatasetsubj - 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||