tidywikidatar0.5.9 package

Explore 'Wikidata' Through Tidy Data Frames

tw_extract_single

Extract item data from an object of class Wikidata created with `Wikid...

tw_get_cache_table_name

Gets name of table inside the database

pipe

Pipe operator

tidyeval

Tidy eval helpers

tw_check_cache_folder

Checks if cache folder exists, if not returns an informative message

tw_get_property_with_details_single

Gets all details of a property

tw_check_cache_index

Check if cache table is indexed

tw_check_cache

Check caching status in the current session, and override it upon requ...

tw_check_cached_items

Check if given items are present in cache

tw_check_pid

Ensures that input appears to be a valid Wikidata property id (i.e. it...

tw_check_qid

Ensures that input appears to be a valid Wikidata id

tw_get_property_with_details

Gets all details of a property

tw_check_search

Checks if an input is a search; if not, it tries to return a search

tw_connect_to_cache

Return a connection to be used for caching

tw_create_cache_folder

Creates the base cache folder where tidywikidatar caches data.

tw_disable_cache

Disable caching for the current session

tw_disconnect_from_cache

Ensure that connection to cache is disconnected consistently

tw_enable_cache

Enable caching for the current session

tw_extract_qualifier

Extract qualifiers from an object of class Wikidata created with `Wiki...

tw_filter_first

Filter search result and keep only and keep only the first match

tw_filter_people

Filter search result and keep only people

tw_filter

Filter search result and keep only items with matching property and Q ...

tw_get_all_with_p

Get all items that have a given property (irrespective of the value)

tw_get_cache_db

Get database connection settings from the environment

tw_get_cache_file

Gets location of cache file

tw_get_cached_item

Retrieve cached item

tw_get_cached_qualifiers

Retrieve cached qualifier

tw_get_cached_search

Retrieve cached search

tw_get_cached_wikipedia_category_members

Gets members of Wikipedia categories from local cache

tw_get_cached_wikipedia_page_links

Gets links of Wikipedia pages from local cache

tw_get_cached_wikipedia_page_qid

Gets id of Wikipedia pages from local cache

tw_get_cached_wikipedia_page_sections

Gets sections of Wikipedia pages from local cache

tw_get_description

Get Wikidata description in given language

tw_get_field

Gets a field such a label or description from a dataframe typically ge...

tw_get_image_metadata_single

Get metadata for images from Wikimedia Commons

tw_get_image_metadata

Get metadata for images from Wikimedia Commons

tw_get_image_same_length

Get image from Wikimedia Commons

tw_get_image

Get image from Wikimedia Commons

tw_get_label

Get Wikidata label in given language

tw_get_p_wide

Efficiently get a wide table with various properties of a given set of...

tw_get_p1

Get Wikidata property of an item as a character vector of the same len...

tw_get_property_description

Get description of a Wikidata property in a given language

tw_get_property_label_single

Get label of a Wikidata property in a given language

tw_get_property_label

Get label of a Wikidata property in a given language

tw_get_property_same_length

Get Wikidata property of an item as a vector or list of the same lengt...

tw_get_property

Get Wikidata property of one or more items as a tidy data frame

tw_get_qualifiers_single

Get Wikidata qualifiers for a given property of a given item

tw_get_qualifiers

Get Wikidata qualifiers for a given property of a given item

tw_get_single

Return (most) information from a Wikidata item in a tidy format from a...

tw_get_wikipedia_base_api_url

Facilitates the creation of MediaWiki API base URLs

tw_get_wikipedia_category_members_single

Get all Wikidata Q identifiers of all Wikipedia pages that appear in a...

tw_get_wikipedia_category_members

Get all Wikidata Q identifiers of all Wikipedia pages (or files, or su...

tw_get_wikipedia_page_links_single

Get all Wikidata Q identifiers of all Wikipedia pages that appear in a...

tw_get_wikipedia_page_links

Get all Wikidata Q identifiers of all Wikipedia pages that appear in o...

tw_get_wikipedia_page_qid_single

Gets the Wikidata id of a Wikipedia page

tw_get_wikipedia_page_qid

Gets the Wikidata Q identifier of one or more Wikipedia pages

tw_get_wikipedia_page_section_links

Get links from a specific section of a Wikipedia page

tw_get_wikipedia_page_sections_single

Get all Wikidata Q identifiers of all Wikipedia pages that appear in a...

tw_get_wikipedia_page_sections

Get sections of a Wikipedia page

tw_get_wikipedia_section_links_api_url

Facilitates the creation of MediaWiki API base URLs to retrieve sectio...

tw_get_wikipedia_sections_api_url

Facilitates the creation of MediaWiki API base URLs to retrieve sectio...

tw_get_wikipedia

Get URL to a Wikipedia article corresponding to a Wikidata Q identifie...

tw_get

Return (most) information from a Wikidata item in a tidy format

tw_index_cache_item

Add index to caching table for search queries for increased speed

tw_index_cache_search

Add index to caching table for search queries for increased speed

tw_label

Gets labels for all columns with names such as "id" and "property".

tw_query

Perform simple Wikidata queries

tw_reset_item_cache

Reset qualifiers cache

tw_reset_qualifiers_cache

Reset qualifiers cache

tw_reset_wikipedia_category_members_cache

Reset Wikipedia category members cache

tw_reset_wikipedia_page_cache

Reset Wikipedia page cache

tw_reset_wikipedia_page_links_cache

Reset Wikipedia page link cache

tw_reset_wikipedia_page_sections_cache

Reset Wikipedia page link cache

tw_search_item

Search for Wikidata properties in Wikidata and return Wikidata id, lab...

tw_search_property

Search for Wikidata properties in Wikidata and return Wikidata id, lab...

tw_search_single

Search for Wikidata items or properties and return Wikidata id, label,...

tw_search

Search for Wikidata items or properties and return Wikidata id, label,...

tw_set_cache_db

Set database connection settings for the session

tw_set_cache_folder

Set folder for caching data

tw_set_language

Set language to be used by all functions

tw_write_item_to_cache

Writes item to cache

tw_write_qid_of_wikipedia_page_to_cache

Write Wikidata identifier (qid) of Wikipedia page to cache

tw_write_qualifiers_to_cache

Write qualifiers to cache

tw_write_search_to_cache

Writes search to cache

tw_write_wikipedia_category_members_to_cache

Write Wikipedia page links to cache

tw_write_wikipedia_page_links_to_cache

Write Wikipedia page links to cache

tw_write_wikipedia_page_sections_to_cache

Write Wikipedia page links to cache

Query 'Wikidata' API <https://www.wikidata.org/wiki/Wikidata:Main_Page> with ease, get tidy data frames in response, and cache data in a local database.

  • Maintainer: Giorgio Comai
  • License: MIT + file LICENSE
  • Last published: 2024-07-29