Constructors

Methods

  • Look up the integer ID for an RDF term without creating it. Returns undefined if the term is not in the dictionary. Can be called with either a readonly or readwrite transaction.

    Parameters

    • term: Term

    Returns Promise<number>

  • Get the integer ID for an RDF term, creating it if it doesn't exist. Must be called within a readwrite transaction on the "terms" store.

    Parameters

    • term: Term
    • tx: ReadWriteTx

    Returns Promise<number>

  • Resolve an integer ID back to an RDF term. Throws if the ID is not found (should never happen if the DB is consistent).

    Parameters

    • id: number

    Returns Promise<Term>

  • Warm the in-memory cache for a set of IDs. Useful before iterating over a large result set to batch the ID lookups.

    Parameters

    • ids: number[]

    Returns Promise<void>