|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.hp.hpl.jena.sparql.core.DataSourceImpl
public class DataSourceImpl
A implementation of a DataSource, which is a mutable Dataset, a set of a single unnamed graph and a number (zero or more) named graphs with graphs as Models.
| Constructor Summary | |
|---|---|
DataSourceImpl(Dataset ds)
|
|
DataSourceImpl(com.hp.hpl.jena.rdf.model.Model model)
|
|
| Method Summary | |
|---|---|
void |
addNamedModel(String uri,
com.hp.hpl.jena.rdf.model.Model model)
Set a named graph. |
DatasetGraph |
asDatasetGraph()
Get the dataset in graph form |
static DataSource |
cloneStructure(DatasetGraph datasetGraph)
|
void |
close()
Close the dataset, potentially releasing any associated resources. |
boolean |
containsNamedModel(String uri)
Does the dataset contain a model with the name supplied? |
static DataSource |
createMem()
|
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 |
void |
removeNamedModel(String uri)
Remove a named graph. |
void |
replaceNamedModel(String uri,
com.hp.hpl.jena.rdf.model.Model model)
Change a named graph for another using the same name |
void |
setDefaultModel(com.hp.hpl.jena.rdf.model.Model model)
Set the background graph. |
static DataSource |
wrap(DatasetGraph datasetGraph)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DataSourceImpl(com.hp.hpl.jena.rdf.model.Model model)
public DataSourceImpl(Dataset ds)
| Method Detail |
|---|
public static DataSource createMem()
public static DataSource wrap(DatasetGraph datasetGraph)
public static DataSource cloneStructure(DatasetGraph datasetGraph)
public com.hp.hpl.jena.rdf.model.Model getDefaultModel()
Dataset
getDefaultModel in interface Datasetpublic com.hp.hpl.jena.shared.Lock getLock()
Dataset
getLock in interface Datasetpublic DatasetGraph asDatasetGraph()
Dataset
asDatasetGraph in interface Datasetpublic com.hp.hpl.jena.rdf.model.Model getNamedModel(String uri)
Dataset
getNamedModel in interface Dataset
public void addNamedModel(String uri,
com.hp.hpl.jena.rdf.model.Model model)
throws LabelExistsException
DataSource
addNamedModel in interface DataSourceLabelExistsExceptionpublic void removeNamedModel(String uri)
DataSource
removeNamedModel in interface DataSource
public void replaceNamedModel(String uri,
com.hp.hpl.jena.rdf.model.Model model)
DataSource
replaceNamedModel in interface DataSourcepublic void setDefaultModel(com.hp.hpl.jena.rdf.model.Model model)
DataSource
setDefaultModel in interface DataSourcepublic boolean containsNamedModel(String uri)
Dataset
containsNamedModel in interface Datasetpublic Iterator<String> listNames()
Dataset
listNames in interface Datasetpublic void close()
Dataset
close in interface Dataset
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||