Class SnakAbstract

Abstract

Hierarchy (view full)

Constructors

  • Parameters

    • snak: Snaks

      the snak in a json format

    Returns Snak

    Example

    const snak = new Snak(json);
    

Properties

_internalID: string = ''

a place to store the internalID so that it does not change if the contents of the object changes

datatype: string
hash: undefined | string
property: `P${number}`
snaktype: SnakType

Accessors

  • get hasValue(): boolean
  • Returns boolean

    true if the snak has a value

  • get internalID(): string
  • create a unique id for the Snak

    Returns string

    the id

Methods

  • Parameters

    Returns boolean

Generated using TypeDoc