|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openanzo.client.StoredDatasetserviceDatasetProxy
public class StoredDatasetserviceDatasetProxy
StoredDatasetserviceDatasetProxy is a dataset whose definition is stored in a NamedGraph. If the definition of the dataset within the NameGraph changes, the dataset is updated to reflect the changed definition. If new graphs are added to the dataset definition, those graphs will be retrieved and added to the dataset.
| Constructor Summary | |
|---|---|
StoredDatasetserviceDatasetProxy(ClosableDatasetServiceDataset parentDataset,
INamedGraph datasetGraph)
Create a new StoredDatasetserviceDatasetProxy for the given dataset, with the dataset's definition stored in the datasetGraph |
|
| Method Summary | |
|---|---|
void |
add(java.util.Iterator<org.openrdf.model.Statement> statements)
Add a set of statements from container |
void |
add(org.openrdf.model.Resource subj,
org.openrdf.model.URI pred,
org.openrdf.model.Value obj,
org.openrdf.model.Resource namedGraphUri)
Add a new statement with given subj,pred,obj,context |
void |
add(org.openrdf.model.Statement... statements)
Add one or more statements to container |
void |
addDefaultGraphUri(org.openrdf.model.URI uri)
Add the URI of an INamedGraph to include within this dataset's default model |
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 |
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... namedGraphUri)
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 |
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 |
void |
delete(java.util.Iterator<org.openrdf.model.Statement> statements)
Delete a set of statements from container |
void |
delete(org.openrdf.model.Resource subj,
org.openrdf.model.URI pred,
org.openrdf.model.Value obj,
org.openrdf.model.Resource namedGraphUri)
Delete a statement from container |
void |
delete(org.openrdf.model.Statement... statements)
Delete a set of statements from container |
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... namedGraphUri)
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 |
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 |
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 uri)
Get the INamedGraph for the given URI if it is within this dataset |
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 |
info.aduna.collections.iterators.CloseableIterator<org.openrdf.model.Statement> |
getStatements()
Get an iterator over all statements within this container |
ITransactionManager |
getTransactionManager()
Return ITransactionManager for this container |
org.openrdf.model.URI |
getURI()
Get URI of IContainer |
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 |
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 |
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 |
| Constructor Detail |
|---|
public StoredDatasetserviceDatasetProxy(ClosableDatasetServiceDataset parentDataset,
INamedGraph datasetGraph)
parentDataset - dataset to wrapdatasetGraph - graph where definition is stored| Method Detail |
|---|
public 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 void add(org.openrdf.model.Resource subj,
org.openrdf.model.URI pred,
org.openrdf.model.Value obj,
org.openrdf.model.Resource namedGraphUri)
IContainer
add in interface IContainersubj - Subject of statementpred - Predicate of statementobj - Object of statementnamedGraphUri - Context of statementpublic void add(org.openrdf.model.Statement... statements)
IContainer
add in interface IContainerstatements - statements to add to containerpublic void addDefaultGraphUri(org.openrdf.model.URI uri)
IDataset
addDefaultGraphUri in interface IDataseturi - URI of namedgraph to add to this dataset's default modelpublic void removeDefaultGraphUri(org.openrdf.model.URI uri)
IDataset
removeDefaultGraphUri in interface IDataseturi - URI of namedgraph to add to this dataset's default modelpublic void removeNamedGraphUri(org.openrdf.model.URI uri)
IDataset
removeNamedGraphUri in interface IDataseturi - URI of namedgraph to add to this dataset
public void addDefaultNamedGraph(org.openrdf.model.URI uri,
INamedGraph namedGraph)
IDataset
addDefaultNamedGraph in interface IDataseturi - URI of INamedGraphnamedGraph - INamedGraph to add to this dataset's default model
public void addNamedGraph(org.openrdf.model.URI uri,
INamedGraph namedGraph)
IDataset
addNamedGraph in interface IDataseturi - URI of INamedGraphnamedGraph - INamedGraph to addpublic void addNamedGraphUri(org.openrdf.model.URI uri)
IDataset
addNamedGraphUri in interface IDataseturi - URI of namedgraph to add to this datasetpublic void clear()
IContainer
clear in interface IContainerpublic void close()
IContainer
close 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... namedGraphUri)
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 nullnamedGraphUri - 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 boolean containsDefaultNamedGraph(org.openrdf.model.URI uri)
IDataset
containsDefaultNamedGraph in interface IDataseturi - URI of INamedGraph
public boolean containsNamedGraph(org.openrdf.model.URI uri)
IDataset
containsNamedGraph in interface IDataseturi - URI of INamedGraph
public void delete(org.openrdf.model.Resource subj,
org.openrdf.model.URI pred,
org.openrdf.model.Value obj,
org.openrdf.model.Resource namedGraphUri)
IContainer
delete in interface IContainersubj - Subject resource to match, or wildcard if nullpred - Predicate uri to match, or wildcard if nullobj - Object value to match, or wildcard if nullnamedGraphUri - Context values to match, or wildcard if nullpublic void delete(org.openrdf.model.Statement... statements)
IContainer
delete in interface IContainerstatements - statements to delete from containerpublic void delete(java.util.Iterator<org.openrdf.model.Statement> statements)
IContainer
delete in interface IContainerstatements - statements to delete from containerpublic void add(java.util.Iterator<org.openrdf.model.Statement> statements)
IContainer
add in interface IContainerstatements - statements to add to container
public QueryResult executeQuery(java.lang.String query)
throws AnzoException
IDataset
executeQuery in interface IDatasetquery - SPARQL query string
AnzoException
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
executeQuery in interface IContainerdefaultNamedGraphsIn - 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 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... namedGraphUri)
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 nullnamedGraphUri - 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 org.openrdf.model.URI getURI()
IContainer
getURI in interface IContainerpublic int getDefaulNamedGraphsSize()
IDataset
getDefaulNamedGraphsSize in interface IDatasetpublic INamedGraph getDefaultNamedGraph(org.openrdf.model.URI uri)
IDataset
getDefaultNamedGraph in interface IDataseturi - URI of INamedGraph
public java.lang.Iterable<org.openrdf.model.URI> getDefaultNamedGraphs()
IDataset
getDefaultNamedGraphs in interface IDatasetpublic INamedGraphEventManager getEventManager()
IContainer
getEventManager in interface IContainerpublic INamedGraph getNamedGraph(org.openrdf.model.URI uri)
IDataset
getNamedGraph in interface IDataseturi - URI of INamedGraph
public java.lang.Iterable<org.openrdf.model.URI> getNamedGraphs()
IDataset
getNamedGraphs in interface IDatasetpublic int getNamedGraphsSize()
IDataset
getNamedGraphsSize in interface IDatasetpublic info.aduna.collections.iterators.CloseableIterator<org.openrdf.model.Statement> getStatements()
IContainer
getStatements in interface IContainerpublic ITransactionManager getTransactionManager()
IContainer
getTransactionManager in interface IContainerpublic boolean isClosed()
IContainer
isClosed in interface IContainerpublic int size()
IContainer
size in interface IContainerpublic void clear(org.openrdf.model.Resource... context)
IContainer
clear in interface IContainercontext - Contexts to clear from containerpublic int size(org.openrdf.model.Resource... context)
IContainer
size in interface IContainercontext - Contexts of statements to count
public void setEventManager(INamedGraphEventManager eventManager)
IContainer
setEventManager in interface IContainereventManager - set the Containers eventManagetpublic void setTransactionManager(ITransactionManager transactionManager)
IContainer
setTransactionManager in interface IContainertransactionManager - set ITransactionManager for this containerpublic 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 | |||||||||