Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SearchResult

Hierarchy

  • SearchResult

Index

Constructors

constructor

Properties

Private _id

_id: string

Private _label

_label: string

Private _title

_title: string

Private information

information: ResultType

Accessors

aliases

  • get aliases(): string[]

concepturi

  • get concepturi(): string

description

  • get description(): string
  • Description is a explaination of a label (might not exist in some of language and entities)

    Returns string

id

  • get id(): string

label

  • get label(): string
  • Label is a string that will show as a title in website (should be human readable string text)

    Returns string

match

  • get match(): undefined | object

pageid

  • get pageid(): number

title

  • get title(): string

url

  • get url(): string

Methods

getMoreInformation

  • getMoreInformation(key: string): any
  • get more information that MIGHT receive from APIs

    Parameters

    • key: string

      information key

    Returns any

    Depend what you pass in input.

toJSON

  • toJSON(): object
  • Returns object

    • [key: string]: any
    • Optional aliases?: string[]

      a alias key of the entity

    • concepturi: string

      concepturi is a concept url of the entities (usually will be on this form: http://www.wikidata.org/entity/)

    • Optional description?: undefined | string

      description of this label (might not exist in some of language and entities)

    • id: string

      the entities ID (should start with Q or P ???)

    • label: string

      label of entities that will show as a title in website (should be human readable string text)

    • Optional match?: EntityMatchType

      the object show how this entities is match a query

    • pageid: number

      a wikidata page id (???)

    • repository: string

      (???)

    • title: string

      the title of the id (usually will be the same as id ???)

    • url: string

      a wikidata url (should be inform of 'http://www.wikidata.org/wiki/')

toString

  • toString(): string

Generated using TypeDoc