iwf
    Preparing search index...

    Class GeoShapeSnak

    Class for the GeoShapeSnak.

    Most used property of this type is P3896 (geoshape).

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    datatype: string = dataType
    fileName: null | string

    The Wikimedia Commons file name

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

    Accessors

    • Gets the link to the Wikimedia Commons page.

      Returns string

      The link to the Wikimedia Commons page.

    • 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

    • Converts the snak to JSON format.

      Returns GeoShapeSnak

      The snak as JSON.

      const json = geoShapeSnak.toJSON();