com.hp.hpl.jena.sparql.core
Class DatasetImpl

java.lang.Object
  extended by com.hp.hpl.jena.sparql.core.DatasetImpl
All Implemented Interfaces:
Dataset

public class DatasetImpl
extends java.lang.Object
implements Dataset

Wrapper around a DatasetGraph. See also DataSourceImpl.


Constructor Summary
DatasetImpl(DatasetGraph dsg)
           
DatasetImpl(com.hp.hpl.jena.rdf.model.Model model)
           
 
Method Summary
 DatasetGraph asDatasetGraph()
          Get the dataset in graph form
 void close()
          Close the dataset, potentially releasing any associated resources.
 boolean containsNamedModel(java.lang.String uri)
          Does the dataset contain a model with the name supplied?
 com.hp.hpl.jena.rdf.model.Model getDefaultModel()
          Return the default model
 com.hp.hpl.jena.shared.Lock getLock()
          Get the lock for this dataset
 com.hp.hpl.jena.rdf.model.Model getNamedModel(java.lang.String uri)
          Return a model for the named graph - repeated calls so not guarantee to return the same Java object
 java.util.Iterator<java.lang.String> listNames()
          List the names
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatasetImpl

public DatasetImpl(com.hp.hpl.jena.rdf.model.Model model)

DatasetImpl

public DatasetImpl(DatasetGraph dsg)
Method Detail

getDefaultModel

public com.hp.hpl.jena.rdf.model.Model getDefaultModel()
Return the default model

Specified by:
getDefaultModel in interface Dataset

getLock

public com.hp.hpl.jena.shared.Lock getLock()
Description copied from interface: Dataset
Get the lock for this dataset

Specified by:
getLock in interface Dataset

asDatasetGraph

public DatasetGraph asDatasetGraph()
Description copied from interface: Dataset
Get the dataset in graph form

Specified by:
asDatasetGraph in interface Dataset

getNamedModel

public com.hp.hpl.jena.rdf.model.Model getNamedModel(java.lang.String uri)
Return a model for the named graph - repeated calls so not guarantee to return the same Java object

Specified by:
getNamedModel in interface Dataset

containsNamedModel

public boolean containsNamedModel(java.lang.String uri)
Description copied from interface: Dataset
Does the dataset contain a model with the name supplied?

Specified by:
containsNamedModel in interface Dataset

close

public void close()
Description copied from interface: Dataset
Close the dataset, potentially releasing any associated resources. The dataset can not be used for query after this call.

Specified by:
close in interface Dataset

listNames

public java.util.Iterator<java.lang.String> listNames()
Description copied from interface: Dataset
List the names

Specified by:
listNames in interface Dataset


Copyright ? 2004, 2005, 2006, 2007, 2008, 2009 Hewlett-Packard Development Company, LP Copyright ? 2010 Talis Systems Ltd. Copyright ? 2010, 2011 Epimorphics Ltd.