wikiTools1.2.15 package

Tools for Wikidata and Wikipedia

cc

Converts a text separated by commas into a character vector.

checkEntities

Check if all Wikidata entities in entity_list have valid values

checkTitles

checkTitles(titles) Check if titles are valid. Return TRUE is all titl...

doChunks

Execute a function in chunks.

extractWiki

Extract the first paragraph of a Wikipedia article with a maximum of c...

filext

Extract the extension of a file

getFiles

Downloads a list of files in a specified path of the computer, and ret...

getWikiData

Create a data.frame with Wikidata of a vector of names.

getWikiFiles

Downloads a list of Wikipedia pages in a specified path of the compute...

getWikiInf

Create a data.frame with Q's and descriptions of a vector of names.

httrGetJSON

httrGetJSON Retrieve responses in JSON format using httr::GET. It is a...

limitRequester

Limits the rate at which a function will execute

m_Opensearch

Open search of a string

m_Pageviews

Get number of views of a Wikipedia article

m_reqMediaWiki

Retrieve responses using the MediaWiki API.

m_XtoolsInfo

Gets various information from a Wikimedia page

nametoWikiFrame

Convert names into a Wikipedia's iframe

nametoWikiHtml

Create the Wikipedia link of a name or entry.

nametoWikiURL

Create the Wikipedia URL of a name or entry.

normalizedTitle

Return the normalized and redirect title from the response

pop_up

Create a drop-down vignette for nodes from different items (for galler...

preName

Reverse the order of the first and last names of every element of a ve...

reqMediaWiki

Uses httr package to retrieve responses using the MediaWiki API.

reqWDQS

Get responses from Wikidata Query Service

searchWiki

Find if there is a Wikipedia page of a name(s) in the selected languag...

selectLang

Convert names of a wikiTools data frame to English or Spanish

urltoFrame

Convert an URL link to an HTML iframe.

urltoHtml

Convert a Wikipedia URL to an HTML link

user_agent

See https://meta.wikimedia.org/wiki/User-Agent_policy https://www.medi...

v_AutoSuggest

Suggests VIAF id from a name

v_Extract

Gets information from a VIAF record

v_GetRecord

Gets record clusters

v_Search

Run a CQL Query in VIAF

validUrl

Find if an URL link is valid.

w_EntityInfo

Get information about a Wikimedia entity (human or film)

w_Exhibit

Extract the first paragraph of a Wikipedia article with a maximum of c...

w_Geoloc

Get Latitude and Longitude coordinates, and Country of places

w_isInstanceOf

Check if a Wikidata entity is an instance of a class

w_isValid

Check if Wikidata entities are valid

w_LabelDesc

Return label and/or descriptions of Wikidata entities

w_Property

Get properties of Wikidata entities

w_query

Response from Wikidata Query Service

w_SearchByAuthority

Get entities that have identifier in a database or authorities' catalo...

w_SearchByIdentifiers

Search for entities that may match identifiers in a database or author...

w_SearchByInstanceof

Get entities which are instance of a Wikidata entity

w_SearchByLabel

Search Wikidata entities by string (usually labels)

w_SearchByOccupation

Get Wikidata entities with a certain occupation

w_Wikipedias

Get Wikipedia pages of Wikidata entities

A set of wrappers intended to check, read and download information from the Wikimedia sources. It is specifically created to work with names of celebrities, in which case their information and statistics can be downloaded. Additionally, it also builds links and snippets to use in combination with the function gallery() in netCoin package.

  • Maintainer: Modesto Escobar
  • License: GPL-3
  • Last published: 2025-10-18