|
||||||||||
| 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.model.impl.Dataset
public class Dataset
Basic Dataset implementation that stores INamedGraphs.
| Constructor Summary | |
|---|---|
Dataset()
Setup an empty Dataset |
|
| Method Summary | |
|---|---|
void |
addDefaultGraphUri(org.openrdf.model.URI name)
Add the URI of an INamedGraph to include within this dataset's default model |
void |
addDefaultNamedGraph(org.openrdf.model.URI uri,
INamedGraph graph)
Add an INamedGraph with its URI to this dataset's default model |
void |
addNamedGraph(org.openrdf.model.URI uri,
INamedGraph graph)
Add an INamedGraph with its URI to this dataset |
void |
addNamedGraphUri(org.openrdf.model.URI name)
Add the URI of an INamedGraph to include within this dataset |
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 |
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 |
int |
getDefaulNamedGraphsSize()
Return number of INamedGraphs within this dataset's default set |
INamedGraph |
getDefaultNamedGraph(org.openrdf.model.URI name)
Get the INamedGraph for the given URI if it is within this dataset's default model |
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 |
INamedGraph |
getNamedGraph(org.openrdf.model.URI name)
Remove named graph from set of graphs |
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 |
removeDefaultGraphUri(org.openrdf.model.URI name)
Remove the URI of an INamedGraph to include within this dataset's default model |
void |
removeDefaultNamedGraph(org.openrdf.model.URI name)
Remove default named graph from set of graphs |
void |
removeNamedGraph(org.openrdf.model.URI name)
Remove |
void |
removeNamedGraphUri(org.openrdf.model.URI name)
Remove the URI of an INamedGraph to include within this dataset |
void |
setDefaultGraphs(java.util.Set<org.openrdf.model.URI> graphs)
Set defaultGraphUris to provided set of graphs |
void |
setEventManager(INamedGraphEventManager eventManager)
Set INamedGraphEventManager for this container |
void |
setNamedGraphs(java.util.Set<org.openrdf.model.URI> graphs)
Set namedGraphsUris to provided set of graphs |
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, find, findAll, 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 |
| Constructor Detail |
|---|
public Dataset()
| Method Detail |
|---|
public void addDefaultGraphUri(org.openrdf.model.URI name)
IDataset
name - URI of namedgraph to add to this dataset's default modelpublic void removeDefaultGraphUri(org.openrdf.model.URI name)
IDataset
name - URI of namedgraph to add to this dataset's default modelpublic void addNamedGraphUri(org.openrdf.model.URI name)
IDataset
name - URI of namedgraph to add to this datasetpublic void removeNamedGraphUri(org.openrdf.model.URI name)
IDataset
name - URI of namedgraph to add to this datasetpublic INamedGraph getDefaultNamedGraph(org.openrdf.model.URI name)
IDataset
name - URI of INamedGraph
public void removeDefaultNamedGraph(org.openrdf.model.URI name)
name - of graph to removepublic java.lang.Iterable<org.openrdf.model.URI> getDefaultNamedGraphs()
IDataset
public INamedGraph getNamedGraph(org.openrdf.model.URI name)
name - of graph to remove
public void removeNamedGraph(org.openrdf.model.URI name)
name - public java.lang.Iterable<org.openrdf.model.URI> getNamedGraphs()
IDataset
public void setDefaultGraphs(java.util.Set<org.openrdf.model.URI> graphs)
graphs - Set of default graphs to usepublic void setNamedGraphs(java.util.Set<org.openrdf.model.URI> graphs)
graphs - Set of named graphs to use
public void addNamedGraph(org.openrdf.model.URI uri,
INamedGraph graph)
IDataset
uri - URI of INamedGraphgraph - INamedGraph to add
public void addDefaultNamedGraph(org.openrdf.model.URI uri,
INamedGraph graph)
IDataset
uri - URI of INamedGraphgraph - INamedGraph to add to this dataset's default modelpublic boolean containsDefaultNamedGraph(org.openrdf.model.URI uri)
IDataset
uri - URI of INamedGraph
public boolean containsNamedGraph(org.openrdf.model.URI uri)
IDataset
uri - URI of INamedGraph
public void close()
IContainer
close in interface IContainerclose in class ADatasetpublic int getDefaulNamedGraphsSize()
IDataset
public int getNamedGraphsSize()
IDataset
public INamedGraphEventManager getEventManager()
IContainer
public ITransactionManager getTransactionManager()
IContainer
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
AnzoExceptionpublic void setEventManager(INamedGraphEventManager eventManager)
IContainer
eventManager - set the Containers eventManagetpublic void setTransactionManager(ITransactionManager transactionManager)
IContainer
transactionManager - set ITransactionManager for this container
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||