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 Datasetfallbackprivate Datasetprimaryprivate static longserialVersionUID
-
Constructor Summary
Constructors Modifier Constructor Description privateFallbackDataset(Dataset primary, Dataset secondary)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidappendURI(java.lang.StringBuilder sb, IRI uri)static Datasetfallback(Dataset primary, Dataset fallback)java.util.Set<IRI>getDefaultGraphs()Gets the default graph URIs of this dataset.IRIgetDefaultInsertGraph()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.StringtoString()
-
-
-
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:DatasetGets 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:
getDefaultGraphsin interfaceDataset
-
getNamedGraphs
public java.util.Set<IRI> getNamedGraphs()
Description copied from interface:DatasetGets 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:
getNamedGraphsin interfaceDataset
-
getDefaultInsertGraph
public IRI getDefaultInsertGraph()
Description copied from interface:DatasetGets 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:
getDefaultInsertGraphin interfaceDataset
-
getDefaultRemoveGraphs
public java.util.Set<IRI> getDefaultRemoveGraphs()
Description copied from interface:DatasetGets 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:
getDefaultRemoveGraphsin interfaceDataset
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
appendURI
private void appendURI(java.lang.StringBuilder sb, IRI uri)
-
-