UNPKG

rdf-stores

Version:

A TypeScript/JavaScript implementation of the RDF/JS store interface with support for quoted triples.

22 lines (21 loc) 867 B
import type * as RDF from '@rdfjs/types'; import type { ITermDictionary } from './ITermDictionary'; /** * A term dictionary that encodes to numbers, and stores the dictionary in memory in a Map. */ export declare class TermDictionaryNumberMap implements ITermDictionary<number> { private lastId; private readonly dictionary; private readonly reverseDictionary; private readonly dataFactory; readonly features: { quotedTriples: boolean; }; constructor(dataFactory?: RDF.DataFactory); encode(term: RDF.Term): number; encodeOptional(term: RDF.Term): number | undefined; decode(encoding: number): RDF.Term; encodings(): IterableIterator<number>; findQuotedTriples(quotedTriplePattern: RDF.Quad): IterableIterator<RDF.Term>; findQuotedTriplesEncoded(quotedTriplePattern: RDF.Quad): IterableIterator<number>; }