com.hp.hpl.jena.query
Interface Dataset

All Known Subinterfaces:
DataSource
All Known Implementing Classes:
DatasetImpl, DataSourceImpl

public interface Dataset

Query is over a Dataset, a collection of named graphs and a background graph (also called the default graph or unnamed graph).


Method Summary
 DatasetGraph asDatasetGraph()
          Get the dataset in graph form
 void close()
          Close the dataset, potentially releasing any associated resources.
 boolean containsNamedModel(String uri)
          Does the dataset contain a model with the name supplied?
 com.hp.hpl.jena.rdf.model.Model getDefaultModel()
          Get the default graph as a Jena Model
 com.hp.hpl.jena.shared.Lock getLock()
          Get the lock for this dataset
 com.hp.hpl.jena.rdf.model.Model getNamedModel(String uri)
          Get a graph by name as a Jena Model
 Iterator<String> listNames()
          List the names
 

Method Detail

getDefaultModel

com.hp.hpl.jena.rdf.model.Model getDefaultModel()
Get the default graph as a Jena Model


getNamedModel

com.hp.hpl.jena.rdf.model.Model getNamedModel(String uri)
Get a graph by name as a Jena Model


containsNamedModel

boolean containsNamedModel(String uri)
Does the dataset contain a model with the name supplied?


listNames

Iterator<String> listNames()
List the names


getLock

com.hp.hpl.jena.shared.Lock getLock()
Get the lock for this dataset


asDatasetGraph

DatasetGraph asDatasetGraph()
Get the dataset in graph form


close

void close()
Close the dataset, potentially releasing any associated resources. The dataset can not be used for query after this call.



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