Options
All
  • Public
  • Public/Protected
  • All
Menu

Provides a clean consistent interface to stored (RDF) data.

Hierarchy

  • RDFStore

Implements

Index

Constructors

constructor

  • new RDFStore(__namedParameters?: { deltaProcessorOpts: undefined | {}; innerStore: undefined | RDFIndex }): RDFStore
  • Parameters

    • Default value __namedParameters: { deltaProcessorOpts: undefined | {}; innerStore: undefined | RDFIndex } = {}
      • deltaProcessorOpts: undefined | {}
      • innerStore: undefined | RDFIndex

    Returns RDFStore

Properties

changeBuffer

changeBuffer: Quad[] = new Array(100)

changeBufferCount

changeBufferCount: number = 0

changeTimestamps

changeTimestamps: number[] = []

Record of the last time a resource was flushed.

note

Not to be confused with the last change in the store, which might be later than the flush time.

typeCache

typeCache: NamedNode[][] = []

Accessors

rdfFactory

  • get rdfFactory(): DataFactory
  • set rdfFactory(_: DataFactory): void

Methods

addQuadruples

addQuads

  • addQuads(data: Quad[]): Quad[]
  • Add statements to the store.

    Parameters

    • data: Quad[]

      Data to parse and add to the store.

    Returns Quad[]

canon

defaultGraph

find

flush

  • flush(): Quad[]
  • Flushes the change buffer to the return value.

    Returns Quad[]

    Statements held in memory since the last flush.

Private getInternalStore

getResourceProperties

getResourceProperty

getResourcePropertyRaw

match

processDelta

quadsFor

  • Searches the store for all the quads on {iri} (so not all statements relating to {iri}).

    Parameters

    • subject: SomeNode

      The identifier of the resource.

    Returns Quad[]

queueDelta

removeQuads

  • removeQuads(statements: Quad[]): void

removeResource

  • removeResource(subject: SomeNode): void

replaceMatches

  • replaceMatches(statements: Quadruple[]): Quad[]

replaceQuads

  • replaceQuads(original: Quad[], replacements: Quad[]): Quad[]
  • Removes an array of statements and inserts another. Note: Be sure that the replacement contains the same subjects as the original to let the broadcast work correctly.

    access

    private This is in conflict with the typescript declaration due to the development of some experimental features, but this method shouldn't be used nevertheless.

    Parameters

    • original: Quad[]

      The statements to remove from the store.

    • replacements: Quad[]

      The statements to add to the store.

    Returns Quad[]

touch

workAvailable

  • workAvailable(): number

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc