@faubulous/mentor-rdf
    Preparing search index...

    Class DatasetView

    A lazy, read-only RDF/JS DatasetCore view over a Store, optionally scoped to a set of graphs and a quad pattern. The view does not copy any quads: iteration, counting and containment checks delegate to the store's indexes, so the view always reflects the current contents of the store.

    Implements

    • DatasetCore<rdfjs.Quad>
    Index
    • get size(): number

      Get the number of quads in the view. Computed from the store's indexes and memoized until the store is modified.

      Returns number

    • Returns Iterator<Quad>

    • Not supported: the view is read-only.

      Parameters

      • _quad: Quad

      Returns this

      An error indicating that the view is read-only.

    • Not supported: the view is read-only.

      Parameters

      • _quad: Quad

      Returns this

      An error indicating that the view is read-only.

    • Indicates if the view contains a specific quad.

      Parameters

      • quad: Quad

        The quad to be checked.

      Returns boolean

      true if the quad matches the view's pattern and scope and exists in the store.

    • Get a new view narrowed to the quads matching the given pattern. The constraints of this view are intersected with the given pattern: a term that conflicts with an existing constraint results in an empty view.

      Parameters

      • Optionalsubject: Term | null

        The optional subject.

      • Optionalpredicate: Term | null

        The optional predicate.

      • Optionalobject: Term | null

        The optional object.

      • Optionalgraph: Term | null

        The optional graph.

      Returns DatasetView

      A new read-only dataset view of the matching quads.