Options
All
  • Public
  • Public/Protected
  • All
Menu

Query and modify an array of quads.

Hierarchy

Implements

  • LowLevelStore
  • LowLevelStore
  • IndexedStore
  • LowLevelStore
  • LowLevelStore

Index

Constructors

constructor

  • new RDFIndex(opts?: Partial<IndexedFormulaOpts>): RDFIndex
  • Parameters

    • Default value opts: Partial<IndexedFormulaOpts> = {}

    Returns RDFIndex

Properties

aliases

aliases: Node[][] = []

dataCallbacks

dataCallbacks: Array<(quad: Quad) => void>

graphIndex

graphIndex: Quad[][] = []

indices

indices: Quad[][][]

objectIndex

objectIndex: Quad[][] = []

predicateIndex

predicateIndex: Quad[][] = []

quads

quads: Quad[]

rdfFactory

rdfFactory: DataFactory

redirections

redirections: Node[] = []

removeCallback

removeCallback: ((quad: Quad) => void) | undefined

subjectIndex

subjectIndex: Quad[][] = []

Accessors

length

  • get length(): number
  • Returns the number of quads contained in this IndexedFormula. (Getter proxy to this.quads). Usage:

       const kb = rdf.graph()
       kb.length  // -> 0

    Returns number

Methods

add

  • add(subject: Node, predicate: NamedNode, object: Term, graph?: Node): Quad

addDataCallback

  • addDataCallback(callback: (q: Quad) => void): void

addQuad

  • addQuad(quad: Quad): Quad

addQuadruple

addQuadruples

addQuads

  • addQuads(quad: Quad[]): Quad[]

any

anyQuadMatching

  • anyQuadMatching(subject: SomeNode | null, predicate: NamedNode | null, object: SomeTerm | null, graph: SomeNode | null): Quad | undefined

canon

  • canon<T>(term: T): T

compareTerm

  • compareTerm(u1: Node, u2: Node): number

equate

holds

holdsAll

  • holdsAll(quads: Quad[]): boolean

holdsQuad

  • holdsQuad(quad: Quad): boolean

id

  • id(x: Node): number

identityRemove

  • identityRemove(arr: Quad[], quad: Quad): void

match

  • match(subject: SomeNode | null, predicate: NamedNode | null, object: SomeTerm | null, graph: SomeNode | null, justOne?: boolean): Quad[]

newPropertyAction

rdfArrayRemove

  • rdfArrayRemove(_arr: Quad[], _quad: Quad): void

remove

  • remove(st: Quad): this

removeMatches

  • removeMatches(subject: SomeNode | null, predicate: NamedNode | null, object: SomeTerm | null, graph: SomeNode | null): this

removeQuad

  • removeQuad(quad: Quad): void

removeQuads

  • removeQuads(quad: Quad[]): void

replaceWith

  • replaceWith(big: Node, small: Node): void

searchRemove

  • searchRemove(arr: Quad[], quad: Quad): void

Object literals

classOrder

classOrder: object

BlankNode

BlankNode: number = 6

Literal

Literal: number = 1

NamedNode

NamedNode: number = 5

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