Package org.eclipse.rdf4j.query.impl
Class FallbackDataset
- java.lang.Object
-
- org.eclipse.rdf4j.query.impl.FallbackDataset
-
- All Implemented Interfaces:
java.io.Serializable
,Dataset
public class FallbackDataset extends java.lang.Object implements Dataset, java.io.Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private Dataset
fallback
private Dataset
primary
private static long
serialVersionUID
-
Constructor Summary
Constructors Modifier Constructor Description private
FallbackDataset(Dataset primary, Dataset secondary)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
appendURI(java.lang.StringBuilder sb, IRI uri)
static Dataset
fallback(Dataset primary, Dataset fallback)
java.util.Set<IRI>
getDefaultGraphs()
Gets the default graph URIs of this dataset.IRI
getDefaultInsertGraph()
Gets the default insert graph URI of this dataset.java.util.Set<IRI>
getDefaultRemoveGraphs()
Gets the default remove graph URIs of this dataset.java.util.Set<IRI>
getNamedGraphs()
Gets the named graph URIs of this dataset.java.lang.String
toString()
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
primary
private final Dataset primary
-
fallback
private final Dataset fallback
-
-
Method Detail
-
getDefaultGraphs
public java.util.Set<IRI> 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
-
getNamedGraphs
public java.util.Set<IRI> getNamedGraphs()
Description copied from interface:Dataset
Gets the named graph URIs of this dataset. An empty named graph set and a non-empty default graph set indicates that there are no named graphs. 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:
getNamedGraphs
in interfaceDataset
-
getDefaultInsertGraph
public IRI 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
-
getDefaultRemoveGraphs
public java.util.Set<IRI> 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
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
appendURI
private void appendURI(java.lang.StringBuilder sb, IRI uri)
-
-