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

  • Store<Q_RDF>
  • DatasetCore<OutQuad, InQuad>

Constructors

  • Type Parameters

    • Q_RDF extends BaseQuad = Quad

    • Q_N3 extends BaseQuad = Quad

    • OutQuad extends BaseQuad = Quad

    • InQuad extends BaseQuad = Quad

    Parameters

    • Optional triples: Q_RDF[]
    • Optional options: StoreOptions

    Returns Store<Q_RDF, Q_N3, OutQuad, InQuad>

Properties

size: number

Methods

  • Returns Iterator<OutQuad, any, undefined>

  • Parameters

    • quad: InQuad

    Returns Store<Q_RDF, Q_N3, OutQuad, InQuad>

  • Parameters

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

    Returns void

  • Parameters

    • quad: Q_RDF

    Returns void

  • Parameters

    • quads: Q_RDF[]

    Returns void

  • Parameters

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

    Returns number

  • Parameters

    • Optional suggestedName: string

    Returns BlankNode

  • Parameters

    • quad: InQuad

    Returns Store<Q_RDF, Q_N3, OutQuad, InQuad>

  • Parameters

    • graph: string | Q_RDF["graph"]

    Returns EventEmitter

  • Parameters

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

    Returns boolean

  • Parameters

    • Optional options: extractListOptions

    Returns Record<string, Term[]>

  • Parameters

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

    Returns void

  • Parameters

    • callback: ((result) => void)
        • (result): void
        • Parameters

          • result: Q_N3["graph"]

          Returns void

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

    Returns void

  • Parameters

    • callback: ((result) => void)
        • (result): void
        • Parameters

          • result: Q_N3["object"]

          Returns void

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

    Returns void

  • Parameters

    • callback: ((result) => void)
        • (result): void
        • Parameters

          • result: Q_N3["predicate"]

          Returns void

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

    Returns void

  • Parameters

    • callback: ((result) => 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"][]

  • Parameters

    • quad: InQuad

    Returns boolean

  • Parameters

    • stream: Stream<Q_RDF>

    Returns EventEmitter

  • Parameters

    • Optional subject: Term
    • Optional predicate: Term
    • Optional object: Term
    • Optional graph: Term

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

  • Parameters

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

    Returns Iterable<OutQuad>

  • Parameters

    • stream: Stream<Q_RDF>

    Returns EventEmitter

  • Parameters

    • Optional subject: Term
    • Optional predicate: Term
    • Optional object: Term
    • Optional graph: Term

    Returns EventEmitter

  • Parameters

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

    Returns void

  • Parameters

    • quad: Q_RDF

    Returns void

  • Parameters

    • quads: Q_RDF[]

    Returns void

  • Parameters

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

    Returns boolean