Class Datasets.DatasetImpl

  • All Implemented Interfaces:
    Dataset
    Enclosing class:
    Datasets

    public static final class Datasets.DatasetImpl
    extends java.lang.Object
    implements Dataset

    Default implementation of a Dataset.

    Since:
    1.0
    Version:
    1.0
    Author:
    Michael Grove
    • 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 interface Dataset
        Returns:
        the graphs
      • defaultInsertGraph

        @Nonnull
        public java.util.Optional<Resource> defaultInsertGraph()
        Optionally, the graph where write queries should insert data.
        Specified by:
        defaultInsertGraph in interface Dataset
        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 interface Dataset
        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 interface Dataset
        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.
        Specified by:
        excludedGraphs in interface Dataset