Options
All
  • Public
  • Public/Protected
  • All
Menu

Implements some RDF/OWL logic to enhance the functionality of the property lookups.

Basically duplicates some functionality already present in {IndexedFormula} IIRC, but this API should be more optimized so it can be used in real-time by low-power devices as well.

Type parameters

  • IndexType

Hierarchy

  • Schema

Index

Constructors

constructor

Methods

addQuads

  • addQuads(quads: Quad[]): Quad[]
  • Push quads onto the graph so it can be used by the render store for component determination.

    Parameters

    • quads: Quad[]

    Returns Quad[]

    The quads added to the store.

allEquals

  • allEquals(resource: IndexType, grade?: number): IndexType[]
  • Parameters

    • resource: IndexType
    • Default value grade: number = 1

    Returns IndexType[]

expand

  • expand(types: IndexType[]): IndexType[]

getProcessingCtx

isInstanceOf

  • isInstanceOf(resource: IndexType, superClass: IndexType): boolean
  • Parameters

    • resource: IndexType
    • superClass: IndexType

    Returns boolean

isSubclassOf

  • isSubclassOf(resource: IndexType, superClass: IndexType): boolean
  • Parameters

    • resource: IndexType
    • superClass: IndexType

    Returns boolean

mineForTypes

  • mineForTypes(lookupTypes: IndexType[]): IndexType[]
  • Expands the given lookupTypes to include all their equivalent and subclasses. This is done in multiple iterations until no new types are found.

    Parameters

    • lookupTypes: IndexType[]

      The types to look up. Once given, these are assumed to be classes.

    Returns IndexType[]

sort

  • sort(types: IndexType[]): IndexType[]

superTypeDepth

  • superTypeDepth(type: IndexType): number
  • Returns the hierarchical depth of the type, or -1 if unknown.

    Parameters

    • type: IndexType

      the type to check

    Returns 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