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.booleancontainsNamedModel(String uri) Deprecated.Does the dataset contain a model with the name supplied?static DatasetDeprecated.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, wrapMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.jena.query.Dataset
getPrefixMappingMethods 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:DatasetGet the default graph as a Jena Model- Specified by:
getDefaultModelin interfaceDataset- Overrides:
getDefaultModelin classDatasetImpl
-
setDefaultModel
Deprecated.Description copied from interface:DatasetSet the default graph. This operation copies the statements from the model into the default graph of the dataset.- Specified by:
setDefaultModelin interfaceDataset- Overrides:
setDefaultModelin classDatasetImpl- Parameters:
model- the default graph to set- Returns:
- this
Datasetfor continued usage
-
getNamedModel
Deprecated.Description copied from interface:DatasetGet a graph by name as a Jena Model- Specified by:
getNamedModelin interfaceDataset- Overrides:
getNamedModelin classDatasetImpl
-
addNamedModel
Deprecated.Description copied from interface:DatasetAdd a named graph.- Specified by:
addNamedModelin interfaceDataset- Overrides:
addNamedModelin classDatasetImpl- Parameters:
uri- the name of the graph to setmodel- the graph to set- Returns:
- this
Datasetfor continued usage
-
addNamedModel
Deprecated.Description copied from interface:DatasetAdd a named graph.- Specified by:
addNamedModelin interfaceDataset- Overrides:
addNamedModelin classDatasetImpl- Parameters:
uri- the name of the graph to setmodel- the graph to set- Returns:
- this
Datasetfor continued usage
-
removeNamedModel
Deprecated.Description copied from interface:DatasetRemove a named graph.- Specified by:
removeNamedModelin interfaceDataset- Overrides:
removeNamedModelin classDatasetImpl- Parameters:
uri- the name of the graph to remove- Returns:
- this
Datasetfor continued usage
-
removeNamedModel
Deprecated.Description copied from interface:DatasetRemove a named graph.- Specified by:
removeNamedModelin interfaceDataset- Overrides:
removeNamedModelin classDatasetImpl- Parameters:
uri- the name of the graph to remove- Returns:
- this
Datasetfor continued usage
-
replaceNamedModel
Deprecated.Description copied from interface:DatasetChange a named graph for another using the same name- Specified by:
replaceNamedModelin interfaceDataset- Overrides:
replaceNamedModelin classDatasetImpl- Parameters:
uri- the name of the graph to replacemodel- the graph with which to replace it- Returns:
- this
Datasetfor continued usage
-
replaceNamedModel
Deprecated.Description copied from interface:DatasetChange a named graph for another using the same name- Specified by:
replaceNamedModelin interfaceDataset- Overrides:
replaceNamedModelin classDatasetImpl- Parameters:
uri- the name of the graph to replacemodel- the graph with which to replace it- Returns:
- this
Datasetfor continued usage
-
containsNamedModel
Deprecated.Description copied from interface:DatasetDoes the dataset contain a model with the name supplied?- Specified by:
containsNamedModelin interfaceDataset- Overrides:
containsNamedModelin classDatasetImpl
-
DatasetFactory.wrap(Model)