Class Store<Q_RDF, Q_N3, OutQuad, InQuad>

Type Parameters

  • Q_RDF extends RDF.BaseQuad = RDF.Quad
  • Q_N3 extends BaseQuad = Quad
  • OutQuad extends RDF.BaseQuad = RDF.Quad
  • InQuad extends RDF.BaseQuad = RDF.Quad

Implements

Constructors

Properties

size: number

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

Methods

  • Returns Iterator<OutQuad, any, undefined>

  • Adds the specified quad to the dataset.

    Existing quads, as defined in Quad.equals, will be ignored.

    Parameters

    Returns this

  • Parameters

    • subject: Q_RDF["subject"]
    • predicate: Q_RDF["predicate"]
    • object: Q_RDF["object"] | Q_RDF["object"][]
    • Optionalgraph: Q_RDF["graph"]
    • Optionaldone: (() => void)
        • (): void
        • Returns void

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    • subject: OTerm
    • predicate: OTerm
    • object: OTerm
    • graph: OTerm

    Returns number

  • Parameters

    • OptionalsuggestedName: string

    Returns BlankNode

  • Removes the specified quad from the dataset.

    Parameters

    Returns this

  • Deletes the given named graph.

    The end and error events are used like described in the Stream interface.

    Parameters

    • graph: string | Q_RDF["graph"]

      The graph term or string to match.

    Returns EventEmitter<DefaultEventMap>

    The resulting event emitter.

    Stream

  • Parameters

    • callback: QuadPredicate<Q_N3>
    • subject: OTerm
    • predicate: OTerm
    • object: OTerm
    • graph: OTerm

    Returns boolean

  • Parameters

    • Optionaloptions: extractListOptions

    Returns Record<string, Term[]>

  • Parameters

    • callback: QuadCallback<Q_N3>
    • subject: OTerm
    • predicate: OTerm
    • object: OTerm
    • graph: OTerm

    Returns void

  • Parameters

    • callback: ((result: Q_N3["graph"]) => void)
        • (result): void
        • Parameters

          • result: Q_N3["graph"]

          Returns void

    • subject: OTerm
    • predicate: OTerm
    • object: OTerm

    Returns void

  • Parameters

    • callback: ((result: Q_N3["object"]) => void)
        • (result): void
        • Parameters

          • result: Q_N3["object"]

          Returns void

    • subject: OTerm
    • predicate: OTerm
    • graph: OTerm

    Returns void

  • Parameters

    • callback: ((result: Q_N3["predicate"]) => void)
        • (result): void
        • Parameters

          • result: Q_N3["predicate"]

          Returns void

    • subject: OTerm
    • object: OTerm
    • graph: OTerm

    Returns void

  • Parameters

    • callback: ((result: Q_N3["subject"]) => void)
        • (result): void
        • Parameters

          • result: Q_N3["subject"]

          Returns void

    • predicate: OTerm
    • object: OTerm
    • graph: OTerm

    Returns void

  • Parameters

    • subject: OTerm
    • predicate: OTerm
    • object: OTerm

    Returns Q_N3["graph"][]

  • Parameters

    • subject: OTerm
    • predicate: OTerm
    • graph: OTerm

    Returns Q_N3["object"][]

  • Parameters

    • subject: OTerm
    • object: OTerm
    • graph: OTerm

    Returns Q_N3["predicate"][]

  • Parameters

    • subject: OTerm
    • predicate: OTerm
    • object: OTerm | OTerm[]
    • graph: OTerm

    Returns Quad[]

  • Parameters

    • predicate: OTerm
    • object: OTerm
    • graph: OTerm

    Returns Q_N3["subject"][]

  • Determines whether a dataset includes a certain quad.

    Parameters

    Returns boolean

  • Consumes the given stream.

    The end and error events are used like described in the Stream interface. Depending on the use case, subtypes of EventEmitter or Stream are used.

    Parameters

    • stream: Stream<Q_RDF>

      The stream that will be consumed.

    Returns EventEmitter<DefaultEventMap>

    The resulting event emitter.

    Stream

  • Returns a stream that processes all quads matching the pattern.

    Parameters

    • Optionalsubject: Term

      The optional subject.

    • Optionalpredicate: Term

      The optional predicate.

    • Optionalobject: Term

      The optional object.

    • Optionalgraph: Term

      The optional graph.

    Returns Stream<Q_RDF> & DatasetCore<OutQuad, InQuad>

    The resulting quad stream.

  • Parameters

    • subject: OTerm
    • predicate: OTerm
    • object: OTerm | OTerm[]
    • graph: OTerm

    Returns Iterable<OutQuad>

  • Removes all streamed quads.

    The end and error events are used like described in the Stream interface.

    Parameters

    • stream: Stream<Q_RDF>

      The stream that will be consumed.

    Returns EventEmitter<DefaultEventMap>

    The resulting event emitter.

    Stream

  • All quads matching the pattern will be removed.

    The end and error events are used like described in the Stream interface.

    Parameters

    • Optionalsubject: Term

      The optional subject.

    • Optionalpredicate: Term

      The optional predicate.

    • Optionalobject: Term

      The optional object.

    • Optionalgraph: Term

      The optional graph.

    Returns EventEmitter<DefaultEventMap>

    The resulting event emitter.

    Stream

  • Parameters

    • subject: Q_RDF["subject"]
    • predicate: Q_RDF["predicate"]
    • object: Q_RDF["object"] | Q_RDF["object"][]
    • Optionalgraph: Q_RDF["graph"]
    • Optionaldone: (() => void)
        • (): void
        • Returns void

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    • callback: QuadPredicate<Q_N3>
    • subject: OTerm
    • predicate: OTerm
    • object: OTerm
    • graph: OTerm

    Returns boolean