Package org.eclipse.rdf4j.query.impl
Class SimpleDataset
java.lang.Object
org.eclipse.rdf4j.query.impl.SimpleDataset
- All Implemented Interfaces:
Serializable
,Dataset
- Direct Known Subclasses:
DatasetImpl
A simple implementation of the
Dataset
interface.- Author:
- Arjohn Kampman, James Leigh
- See Also:
- Serialized Form
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addDefaultGraph(IRI graphURI)
Adds a graph URI to the set of default graph URIs.void
addDefaultRemoveGraph(IRI graphURI)
Adds a graph URI to the set of default remove graph URIs.void
addNamedGraph(IRI graphURI)
Adds a graph URI to the set of named graph URIs.void
clear()
Removes all graph URIs (both default and named) from this dataset.Gets the default graph URIs of this dataset.Gets the default insert graph URI of this dataset.Gets the default remove graph URIs of this dataset.Gets the (unmodifiable) set of named graph URIs.boolean
removeDefaultGraph(IRI graphURI)
Removes a graph URI from the set of default graph URIs.boolean
removeDefaultRemoveGraph(IRI graphURI)
Removes a graph URI from the set of default remove graph URIs.boolean
removeNamedGraph(IRI graphURI)
Removes a graph URI from the set of named graph URIs.void
setDefaultInsertGraph(IRI defaultInsertGraph)
toString()
-
Constructor Details
-
SimpleDataset
public SimpleDataset()
-
-
Method Details
-
getDefaultRemoveGraphs
Description copied from interface:Dataset
Gets the default remove graph URIs of this dataset. An empty set indicates the the store's default behaviour should be used, if not otherwise indicated in the operation.- Specified by:
getDefaultRemoveGraphs
in interfaceDataset
-
addDefaultRemoveGraph
Adds a graph URI to the set of default remove graph URIs. -
removeDefaultRemoveGraph
Removes a graph URI from the set of default remove graph URIs.- Returns:
- true if the URI was removed from the set, false if the set did not contain the URI.
-
getDefaultInsertGraph
Description copied from interface:Dataset
Gets the default insert graph URI of this dataset. An null value indicates that the store's default behaviour should be used, if not otherwise indicated in the operation.- Specified by:
getDefaultInsertGraph
in interfaceDataset
- Returns:
- Returns the default insert graph.
-
setDefaultInsertGraph
- Parameters:
defaultInsertGraph
- The default insert graph to used.
-
getDefaultGraphs
Description copied from interface:Dataset
Gets the default graph URIs of this dataset. An empty default graph set and a non-empty named graph set indicates that the default graph is an empty graph. However, if both the default graph set and the named graph set are empty, that indicates that the store's default behaviour should be used.- Specified by:
getDefaultGraphs
in interfaceDataset
-
addDefaultGraph
Adds a graph URI to the set of default graph URIs. -
removeDefaultGraph
Removes a graph URI from the set of default graph URIs.- Returns:
- true if the URI was removed from the set, false if the set did not contain the URI.
-
getNamedGraphs
Gets the (unmodifiable) set of named graph URIs.- Specified by:
getNamedGraphs
in interfaceDataset
-
addNamedGraph
Adds a graph URI to the set of named graph URIs. -
removeNamedGraph
Removes a graph URI from the set of named graph URIs.- Returns:
- true if the URI was removed from the set, false if the set did not contain the URI.
-
clear
public void clear()Removes all graph URIs (both default and named) from this dataset. -
toString
-