WikidataR2.3.3 package

Read-Write API Client Library for Wikidata

as_pid

Convert an input to a property PID

as_qid

Convert an input to a item QID

as_quot

Add quotations marks

as_sid

Convert an input to a source property SID

check_input

Generic input checker

createrows

"CREATE" rows

createrows.tidy

"CREATE" rows from tidy format

disambiguate_QIDs

Disambiguate QIDs

extract_claims

Extract Claims from Returned Item Data

extract_para

Extract a paragraph of text

filter_qids

Filter QIDs

find_item

Search for Wikidata items or properties that match a search term

get_example

Get an example SPARQL query from Wikidata

get_geo_box

Get geographic entities based on a bounding box

get_geo_entity

Retrieve geographic information from Wikidata

get_item

Retrieve specific Wikidata items or properties

get_names_from_properties

Get names of properties

get_random

Retrieve randomly-selected Wikidata items or properties

identifier_from_identifier

identifier from identifier

initials

Format short form person names

list_properties

List properties of a Wikidata item

print.find_item

Print method for find_item

print.find_property

Print method for find_property

print.wikidata

Print method for Wikidata objects

qid_from_DOI

QID from DOI

qid_from_identifier

QID from identifier

qid_from_name

QID from label name

qid_from_ORCID

QID from ORCID

query_wikidata

Send one or more SPARQL queries to WDQS

searcher

Convert an input to a item QID

sparql_query

Download full Wikidata items matching a sparql query

unspecial

Remove special characters

url_to_id

Extract an identifier from a wikidata URL

WD.globalvar

Global variables for Wikidata properties

wd_query

Download a Wikidata item

wd_rand_query

Download random Wikidata items

WikidataR

API client library for Wikidata

write_wikidata

Write statements to Wikidata

Read from, interogate, and write to Wikidata <https://www.wikidata.org> - the multilingual, interdisciplinary, semantic knowledgebase. Includes functions to: read from wikidata (single items, properties, or properties); query wikidata (retrieving all items that match a set of criterial via Wikidata SPARQL query service); write to Wikidata (adding new items or statements via QuickStatements); and handle and manipulate Wikidata objects (as lists and tibbles). Uses the Wikidata and Quickstatements APIs.

  • Maintainer: Thomas Shafee
  • License: MIT + file LICENSE
  • Last published: 2021-11-16