Wikimedia_person_exists: Wikimedia_person_exists Use Wikimedia_query and...

View source: R/wiki_utils.R

Wikimedia_person_existsR Documentation

Wikimedia_person_exists Use Wikimedia_query and Wikidata_sparql_query to check if a article of a person exists in the Wikimedia project. If exists, also return the Wikipedia pages of that person in the languages indicated in param lang

Description

Wikimedia_person_exists Use Wikimedia_query and Wikidata_sparql_query to check if a article of a person exists in the Wikimedia project. If exists, also return the Wikipedia pages of that person in the languages indicated in param lang

Usage

Wikimedia_person_exists(
  article,
  project = "en.wikipedia.org",
  langs = "en|es|fr|de|it|pt|ca"
)

Arguments

article

Article to search

project

Wikimedia project, defaults "en.wikipedia.org"

langs

Wikipedia languages to search if the person has a page, use "|" to split languages

Value

If the article of the person exists, a vector with four elements: the firts one set to 1, the second de article label normalized, the third de Wikidata id, and fourth a data frame with URL to Wikipedias (lang, label, URL) If the article of the person does not exist, 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


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