|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openanzo.client.jena.CloseableDatasetServiceDataset
public class CloseableDatasetServiceDataset
The CloseableDatasetServiceDataset is the implementation of IClosableDataset returned by the DatasetService's getLocalDataset or getRemoteDataset methods. This ensures that the underlying NamedGraphs' reference counters are incremented and decremented correctly.
| Constructor Summary | |
|---|---|
CloseableDatasetServiceDataset(JenaDatasetService service,
boolean local,
boolean createGraphs,
boolean createImmediately,
boolean addNamedGraphTrackers,
java.util.Set<java.lang.String> defaultModelUris,
java.util.Set<java.lang.String> uris)
Create a new CloseableDatasetServiceDataset with a set of URIs to union together to form the defaultGraph and a set of uris for the NamedGraphs. |
|
| Method Summary | |
|---|---|
void |
addDefaultModelUri(java.lang.String uri)
Add the URI of a NamedGraph to the default model for the dataset. |
void |
addNamedModelUri(java.lang.String uri)
Add the URI of a NamedGraph to the set of NamedGraphs. |
void |
close()
Close all named graphs instantiated thew this dataset. |
boolean |
containsNamedModel(java.lang.String uri)
|
com.hp.hpl.jena.rdf.model.Model |
getDefaultModel()
If a defaultModel was passed in threw constructor, or if it was already created, return model. |
com.hp.hpl.jena.shared.Lock |
getLock()
|
com.hp.hpl.jena.rdf.model.Model |
getNamedModel(java.lang.String uri)
Get the NamedModel with given uri. |
java.util.Iterator<java.lang.String> |
listNames()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CloseableDatasetServiceDataset(JenaDatasetService service,
boolean local,
boolean createGraphs,
boolean createImmediately,
boolean addNamedGraphTrackers,
java.util.Set<java.lang.String> defaultModelUris,
java.util.Set<java.lang.String> uris)
service - Parent DatasetService that created this datasetlocal - Signifies if the dataset contains local or remote NamedGraphscreateGraphs - Create a new NamedGraph for graphs requested that don't exist.createImmediately - NamedGraphs should be instantiated immediately when the dataset is createdaddNamedGraphTrackers - Add a NamedGraphTracker for each LocalNamedGraph instantiated threw the DatasetdefaultModelUris - Set of NamedGraph uris to union as DefaultModel.uris - Set of NamedGraph uris within dataset.| Method Detail |
|---|
public void close()
close in interface IClosableDatasetpublic boolean containsNamedModel(java.lang.String uri)
containsNamedModel in interface com.hp.hpl.jena.query.Datasetpublic com.hp.hpl.jena.rdf.model.Model getDefaultModel()
getDefaultModel in interface com.hp.hpl.jena.query.DatasetDataset.getDefaultModel()public com.hp.hpl.jena.shared.Lock getLock()
getLock in interface com.hp.hpl.jena.query.Datasetpublic com.hp.hpl.jena.rdf.model.Model getNamedModel(java.lang.String uri)
getNamedModel in interface com.hp.hpl.jena.query.DatasetDataset.getNamedModel(String)public java.util.Iterator<java.lang.String> listNames()
listNames in interface com.hp.hpl.jena.query.Datasetpublic void addDefaultModelUri(java.lang.String uri)
IClosableDataset
addDefaultModelUri in interface IClosableDatasetpublic void addNamedModelUri(java.lang.String uri)
IClosableDataset
addNamedModelUri in interface IClosableDataset
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||