@rdfjs/wrapper
    Preparing search index...

    Class DatasetWrapper

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Properties

    factory: DataFactory

    Accessors

    • get size(): number

      A non-negative integer that specifies the number of quads in the set.

      Returns number

    Methods

    • Returns a new dataset that is comprised of all quads in the current instance matching the given arguments.

      The logic described in Matching is applied for each quad in this dataset to check if it should be included in the output dataset.

      This method always returns a new DatasetCore, even if that dataset contains no quads.

      Since a DatasetCore is an unordered set, the order of the quads within the returned sequence is arbitrary.

      Parameters

      • Optionalsubject: Term

        The optional exact subject to match.

      • Optionalpredicate: Term

        The optional exact predicate to match.

      • Optionalobject: Term

        The optional exact object to match.

      • Optionalgraph: Term

        The optional exact graph to match.

      Returns DatasetCore

    • Creates a view over a single named graph, projecting its contents into the default graph.

      The returned dataset only exposes quads from the specified named graph, with their graph component replaced by the default graph. Writes through the view are mapped back to the named graph in the underlying dataset. Any attempt to use a non-default graph on the returned dataset throws a NamedGraphError.

      Type Parameters

      Parameters

      Returns T

      An instance of a class derived from NamedGraphDataset that is a view scoped to the specified named graph.

    • Creates a view over a single named graph, projecting its contents into the default graph.

      The returned dataset only exposes quads from the specified named graph, with their graph component replaced by the default graph. Writes through the view are mapped back to the named graph in the underlying dataset. Any attempt to use a non-default graph on the returned dataset throws a NamedGraphError.

      Type Parameters

      Parameters

      Returns T

      An instance of a class derived from NamedGraphDataset that is a view scoped to the specified named graph.