|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openanzo.client.jena.JenaDatasetService
public class JenaDatasetService
Wrapper for an underlying DatasetService
| Constructor Summary | |
|---|---|
JenaDatasetService(java.util.Properties properties)
Create a wrapped DatasetService given the provided properties |
|
| Method Summary | |
|---|---|
void |
close()
Close the underlying datasetService |
java.util.concurrent.Executor |
getCustomExecutor()
Get the custom executor for this datasetService |
DatasetServiceReplicator |
getDatasetReplicator()
Get the underlying replication service |
DatasetServiceEventManager |
getEventManager()
Get the eventManager for this datasetService |
IClosableDataset |
getLocalDataSet(boolean create,
boolean createImmediately,
boolean addNamedGraphTrackers,
java.util.Set<java.lang.String> defaultNamedGraphUris,
java.util.Set<java.lang.String> namedGraphUris)
Create a new IClosableDataset with a set of uris to union together to form the defaultModel and a set of uris for the NamedGraphs. |
GraphImpl |
getLocalGraph(java.lang.String uri,
boolean create,
boolean addNamedGraphTracker)
Create a new LocalGraph from the DatasetService |
java.util.Map<java.lang.String,GraphImpl> |
getLocalGraphs()
Get the map of URIs to local Graphs |
NamedGraphModel |
getLocalModel(java.lang.String uri,
boolean create,
boolean addNamedGraphTracker)
Create a new model from the DatasetService |
GraphImpl |
getLocalSystemGraph(boolean addNamedGraphTracker)
Create a new local system graph from the DatasetService |
NamedGraphModel |
getLocalSystemModel(boolean addNamedGraphTracker)
Create a new local system model from the DatasetService |
org.openanzo.client.jena.JenaDatasetService.JenaModelService |
getModelService()
Get the modelService for this datasetService |
INotificationService |
getNotificationService()
Get the notificationService for this datasetService |
IClosableDataset |
getRemoteDataSet(boolean create,
boolean createImmediately,
java.util.Set<java.lang.String> defaultNamedGraphUris,
java.util.Set<java.lang.String> namedGraphUris)
Create a new CloseableDatasetServiceDataset with a set of URIs to union together to form the defaultGraph and a set of uris for the NamedGraphs. |
GraphImpl |
getRemoteGraph(java.lang.String uri,
boolean create)
Create a new RemoteGraph from the DatasetService |
java.util.Map<java.lang.String,GraphImpl> |
getRemoteGraphs()
Get the map of URIs to remote Graphs |
NamedGraphModel |
getRemoteModel(java.lang.String uri,
boolean create)
Create a new RemoteModel from the DatasetService |
GraphImpl |
getRemoteSystemGraph()
Create a new remote system graph from the DatasetService |
com.hp.hpl.jena.rdf.model.Model |
getRemoteSystemModel()
Create a new remote system model from the DatasetService |
ITransactionQueueManager |
getTransactionManager()
Get the transaction manager for this datasetService |
ITransactionQueue |
getTransactionQueue()
Get the transaction queue for this datasetService |
boolean |
isLocalGraphOpen(java.lang.String namedGraphUri)
Return true if a local graph with the given URI is open |
boolean |
isNamedGraphStored(java.lang.String namedGraphUri)
Return true if a graph with the given URI is available |
boolean |
isPersisted()
Return true if persistence is enabled |
boolean |
isRemoteGraphOpen(java.lang.String namedGraphUri)
Return true if a remote graph with the given URI is open |
void |
setCustomExecutor(java.util.concurrent.Executor customExecutor)
Set the custom executor for this datasetService |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JenaDatasetService(java.util.Properties properties)
properties - the configuration properties| Method Detail |
|---|
public GraphImpl getLocalGraph(java.lang.String uri,
boolean create,
boolean addNamedGraphTracker)
throws AnzoException
uri - URI of the DatasetServicecreate - create the graph if it does not already existaddNamedGraphTracker - add a tracker for the NamedGraph
AnzoException
public NamedGraphModel getLocalModel(java.lang.String uri,
boolean create,
boolean addNamedGraphTracker)
throws AnzoException
uri - URI of the DatasetServicecreate - create the graph if it does not already existaddNamedGraphTracker - add a tracker for the NamedGraph
AnzoException
public GraphImpl getLocalSystemGraph(boolean addNamedGraphTracker)
throws AnzoException
addNamedGraphTracker - add a tracker for the NamedGraph
AnzoException
public NamedGraphModel getLocalSystemModel(boolean addNamedGraphTracker)
throws AnzoException
addNamedGraphTracker - add a tracker for the NamedGraph
AnzoException
public GraphImpl getRemoteGraph(java.lang.String uri,
boolean create)
throws AnzoException
uri - URI of the DatasetServicecreate - create the graph if it does not already exist
AnzoException
public NamedGraphModel getRemoteModel(java.lang.String uri,
boolean create)
throws AnzoException
uri - URI of the DatasetServicecreate - create the graph if it does not already exist
AnzoException
public GraphImpl getRemoteSystemGraph()
throws AnzoException
AnzoException
public com.hp.hpl.jena.rdf.model.Model getRemoteSystemModel()
throws AnzoException
AnzoException
public boolean isLocalGraphOpen(java.lang.String namedGraphUri)
throws AnzoException
namedGraphUri - URI of namedGraph to check
AnzoException
public boolean isRemoteGraphOpen(java.lang.String namedGraphUri)
throws AnzoException
namedGraphUri - URI of namedGraph to check
AnzoException
public boolean isNamedGraphStored(java.lang.String namedGraphUri)
throws AnzoException
namedGraphUri - URI of namedGraph to check
AnzoExceptionpublic void close()
public DatasetServiceReplicator getDatasetReplicator()
public boolean isPersisted()
public java.util.Map<java.lang.String,GraphImpl> getLocalGraphs()
public java.util.Map<java.lang.String,GraphImpl> getRemoteGraphs()
public java.util.concurrent.Executor getCustomExecutor()
public void setCustomExecutor(java.util.concurrent.Executor customExecutor)
customExecutor - the custom executor for this datasetServicepublic org.openanzo.client.jena.JenaDatasetService.JenaModelService getModelService()
public INotificationService getNotificationService()
public ITransactionQueue getTransactionQueue()
public ITransactionQueueManager getTransactionManager()
public DatasetServiceEventManager getEventManager()
public IClosableDataset getLocalDataSet(boolean create,
boolean createImmediately,
boolean addNamedGraphTrackers,
java.util.Set<java.lang.String> defaultNamedGraphUris,
java.util.Set<java.lang.String> namedGraphUris)
create - create graphs if they do not existcreateImmediately - NamedGraphs should be instantiated immediately when the dataset is createdaddNamedGraphTrackers - Add a NamedGraphTracker for each LocalNamedGraph instantiated threw the DatasetdefaultNamedGraphUris - Set of NamedGraph uris to union as DefaultModel.namedGraphUris - Set of NamedGraph uris within dataset.
public IClosableDataset getRemoteDataSet(boolean create,
boolean createImmediately,
java.util.Set<java.lang.String> defaultNamedGraphUris,
java.util.Set<java.lang.String> namedGraphUris)
create - create graphs if they do not existcreateImmediately - NamedGraphs should be instantiated immediately when the dataset is createddefaultNamedGraphUris - Set of NamedGraph uris to union as DefaultModel.namedGraphUris - Set of NamedGraph uris within dataset. *
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||