GetWikidataitem: GetWikidataitem Use Wikimedia_query to obtain the Wikidata...

View source: R/wiki_utils.R

GetWikidataitemR Documentation

GetWikidataitem Use Wikimedia_query to obtain the Wikidata entity of a article from a Wikimedia project. Automatically resolvs redirects.

Description

GetWikidataitem Use Wikimedia_query to obtain the Wikidata entity of a article from a Wikimedia project. Automatically resolvs redirects.

Usage

GetWikidataitem(article = "", project = "en.wikipedia.org")

Arguments

article

Article to search

project

Wikimedia project, defaults "en.wikipedia.org"

Value

A vector with the firts element to 1 if exists the Wikidata item and if not a disambiguation page, the second element de normalized forma of article, and the third the wikidata item. If errors, the firts element is set to 0 and the third is the explication of error.

Author(s)

Angel F. Zazo, Departament of Computer Science and Automatics, University of Salamanca

Examples

GetWikidataitem('Max Planck', project='es.wikipedia.org')

GetWikidataitem('Max')

GetWikidataitem('Cervante')

wikiTools documentation built on March 24, 2022, 9:05 a.m.