Class GeoShapeSnak

class for the GeoShapeSnak

most used property of this type P3896 (geoshape)

Hierarchy (view full)

Constructors

Properties

datatype: string = 'geo-shape'
fileName: null | string

the wiki commons file name

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

Accessors

  • gets the link to the wiki commons page

    Returns string

    the link to the wiki commons page

  • 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

  • this function checks if two snaks are equal

    Parameters

    Returns boolean

    true if the snaks are equal

    Example

    if (snak.equals(other)) {
    // do something
    }

Generated using TypeDoc