iwf
    Preparing search index...

    Class WikibaseLexemeSnak

    Class for the WikibaseLexemeSnak.

    Most used property of this type...

    Hierarchy (View Summary)

    • Snak
      • WikibaseLexemeSnak
    Index

    Constructors

    Properties

    _numericID: number | undefined
    datatype: string = 'wikibase-lexeme'
    hash: string | undefined
    property: `P${number}`
    snaktype: SnakType

    Accessors

    • get hasValue(): boolean

      Checks if the snak has a value.

      Returns boolean

      True if the snak has a value.

    • get internalID(): string

      Creates a unique ID for the Snak.

      Returns string

      The ID.

    Methods

    • Create a new instance of the class from some basic data.

      Parameters

      • property: `P${number}`

        The property of the snak in 'P-form'.

      • id: `L${number}`

        The ID of the lexeme in 'L-form'.

      Returns WikibaseLexemeSnak

      A new instance of the class.

      const snak = WikibaseLexemeSnak.fromData('P1', 'L1');