Package com.stardog.stark.query
Class Datasets.DatasetImpl
- java.lang.Object
-
- com.stardog.stark.query.Datasets.DatasetImpl
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Datasets.DatasetImpl.Builder
A builder for aDataset
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Datasets.DatasetImpl.Builder
builder()
Create aDatasets.DatasetImpl.Builder
for aDataset
com.google.common.collect.ImmutableSet<Resource>
defaultGraphs()
The set of graphs, the union of which, makes up the default component of the active graphjava.util.Optional<Resource>
defaultInsertGraph()
Optionally, the graph where write queries should insert data.com.google.common.collect.ImmutableSet<Resource>
defaultRemoveGraphs()
The set of graphs write queries can remove data from.com.google.common.collect.ImmutableSet<Resource>
excludedGraphs()
The set of graphs to be excluded from the query dataset.com.google.common.collect.ImmutableSet<Resource>
namedGraphs()
The set of named graphs that are a part of the active graph of the dataset.
-
-
-
Method Detail
-
defaultRemoveGraphs
@Nonnull public com.google.common.collect.ImmutableSet<Resource> defaultRemoveGraphs()
The set of graphs write queries can remove data from.- Specified by:
defaultRemoveGraphs
in interfaceDataset
- Returns:
- the graphs
-
defaultInsertGraph
@Nonnull public java.util.Optional<Resource> defaultInsertGraph()
Optionally, the graph where write queries should insert data.- Specified by:
defaultInsertGraph
in interfaceDataset
- Returns:
- the graph to insert into
-
defaultGraphs
@Nonnull public com.google.common.collect.ImmutableSet<Resource> defaultGraphs()
The set of graphs, the union of which, makes up the default component of the active graph- Specified by:
defaultGraphs
in interfaceDataset
- Returns:
- the default graphs; when empty, the default graph of the database is used
-
namedGraphs
@Nonnull public com.google.common.collect.ImmutableSet<Resource> namedGraphs()
The set of named graphs that are a part of the active graph of the dataset.- Specified by:
namedGraphs
in interfaceDataset
- Returns:
- the named graphs
-
excludedGraphs
@Nonnull public com.google.common.collect.ImmutableSet<Resource> excludedGraphs()
Description copied from interface:Dataset
The set of graphs to be excluded from the query dataset. Returns the set of graphs, possibly including wildcards, excluded from both the default and named scope of the dataset.- Specified by:
excludedGraphs
in interfaceDataset
-
builder
public static Datasets.DatasetImpl.Builder builder()
Create aDatasets.DatasetImpl.Builder
for aDataset
- Returns:
- a new `Builder`
-
-