java.lang.Object
org.apache.jena.sparql.core.DatasetImpl
org.apache.jena.sparql.core.DatasetOne
- All Implemented Interfaces:
Dataset
,Transactional
Deprecated.
A dataset that just hold a single model as the default graph.
It is particularly appropriate for use with inference models.
- API Note:
- This class makes the use of DatasetImpl with one fixed model clearer. It may become useful to have a separate implementation altogether at some time.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.jena.sparql.core.Transactional
Transactional.Promote
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddNamedModel
(String uri, Model model) Deprecated.Add a named graph.addNamedModel
(Resource uri, Model model) Deprecated.Add a named graph.boolean
containsNamedModel
(String uri) Deprecated.Does the dataset contain a model with the name supplied?static Dataset
Deprecated.Deprecated.Get the default graph as a Jena ModelgetNamedModel
(String uri) Deprecated.Get a graph by name as a Jena ModelremoveNamedModel
(String uri) Deprecated.Remove a named graph.removeNamedModel
(Resource uri) Deprecated.Remove a named graph.replaceNamedModel
(String uri, Model model) Deprecated.Change a named graph for another using the same namereplaceNamedModel
(Resource uri, Model model) Deprecated.Change a named graph for another using the same namesetDefaultModel
(Model model) Deprecated.Set the default graph.Methods inherited from class org.apache.jena.sparql.core.DatasetImpl
abort, asDatasetGraph, begin, begin, begin, close, commit, containsNamedModel, end, getContext, getLock, getNamedModel, getUnionModel, isEmpty, isInTransaction, listModelNames, listNames, promote, supportsTransactionAbort, supportsTransactions, transactionMode, transactionType, wrap
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.jena.query.Dataset
getPrefixMapping
Methods inherited from interface org.apache.jena.sparql.core.Transactional
calc, calculate, calculateRead, calculateWrite, exec, execute, executeRead, executeWrite, promote
-
Constructor Details
-
DatasetOne
Deprecated.
-
-
Method Details
-
create
Deprecated. -
getDefaultModel
Deprecated.Description copied from interface:Dataset
Get the default graph as a Jena Model- Specified by:
getDefaultModel
in interfaceDataset
- Overrides:
getDefaultModel
in classDatasetImpl
-
setDefaultModel
Deprecated.Description copied from interface:Dataset
Set the default graph. This operation copies the statements from the model into the default graph of the dataset.- Specified by:
setDefaultModel
in interfaceDataset
- Overrides:
setDefaultModel
in classDatasetImpl
- Parameters:
model
- the default graph to set- Returns:
- this
Dataset
for continued usage
-
getNamedModel
Deprecated.Description copied from interface:Dataset
Get a graph by name as a Jena Model- Specified by:
getNamedModel
in interfaceDataset
- Overrides:
getNamedModel
in classDatasetImpl
-
addNamedModel
Deprecated.Description copied from interface:Dataset
Add a named graph.- Specified by:
addNamedModel
in interfaceDataset
- Overrides:
addNamedModel
in classDatasetImpl
- Parameters:
uri
- the name of the graph to setmodel
- the graph to set- Returns:
- this
Dataset
for continued usage
-
addNamedModel
Deprecated.Description copied from interface:Dataset
Add a named graph.- Specified by:
addNamedModel
in interfaceDataset
- Overrides:
addNamedModel
in classDatasetImpl
- Parameters:
uri
- the name of the graph to setmodel
- the graph to set- Returns:
- this
Dataset
for continued usage
-
removeNamedModel
Deprecated.Description copied from interface:Dataset
Remove a named graph.- Specified by:
removeNamedModel
in interfaceDataset
- Overrides:
removeNamedModel
in classDatasetImpl
- Parameters:
uri
- the name of the graph to remove- Returns:
- this
Dataset
for continued usage
-
removeNamedModel
Deprecated.Description copied from interface:Dataset
Remove a named graph.- Specified by:
removeNamedModel
in interfaceDataset
- Overrides:
removeNamedModel
in classDatasetImpl
- Parameters:
uri
- the name of the graph to remove- Returns:
- this
Dataset
for continued usage
-
replaceNamedModel
Deprecated.Description copied from interface:Dataset
Change a named graph for another using the same name- Specified by:
replaceNamedModel
in interfaceDataset
- Overrides:
replaceNamedModel
in classDatasetImpl
- Parameters:
uri
- the name of the graph to replacemodel
- the graph with which to replace it- Returns:
- this
Dataset
for continued usage
-
replaceNamedModel
Deprecated.Description copied from interface:Dataset
Change a named graph for another using the same name- Specified by:
replaceNamedModel
in interfaceDataset
- Overrides:
replaceNamedModel
in classDatasetImpl
- Parameters:
uri
- the name of the graph to replacemodel
- the graph with which to replace it- Returns:
- this
Dataset
for continued usage
-
containsNamedModel
Deprecated.Description copied from interface:Dataset
Does the dataset contain a model with the name supplied?- Specified by:
containsNamedModel
in interfaceDataset
- Overrides:
containsNamedModel
in classDatasetImpl
-
DatasetFactory.wrap(Model)