Package: WikidataR 2.3.3

Thomas Shafee

WikidataR: Read-Write API Client Library for Wikidata

Read from, interrogate, 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 criteria 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.

Authors:Thomas Shafee [aut, cre], Os Keyes [aut], Serena Signorelli [aut], Alex Lum [ctb], Christian Graul [ctb], Mikhail Popov [ctb]

WikidataR_2.3.3.tar.gz
WikidataR_2.3.3.zip(r-4.5)WikidataR_2.3.3.zip(r-4.4)WikidataR_2.3.3.zip(r-4.3)
WikidataR_2.3.3.tgz(r-4.4-any)WikidataR_2.3.3.tgz(r-4.3-any)
WikidataR_2.3.3.tar.gz(r-4.5-noble)WikidataR_2.3.3.tar.gz(r-4.4-noble)
WikidataR_2.3.3.tgz(r-4.4-emscripten)WikidataR_2.3.3.tgz(r-4.3-emscripten)
WikidataR.pdf |WikidataR.html
WikidataR/json (API)
NEWS

# Install 'WikidataR' in R:
install.packages('WikidataR', repos = c('https://ts404.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/ts404/wikidatar/issues

On CRAN:

9.07 score 22 stars 34 packages 109 scripts 11k downloads 37 exports 92 dependencies

Last updated 2 years agofrom:c97943349f. Checks:OK: 1 WARNING: 6. Indexed: yes.

TargetResultDate
Doc / VignettesOKOct 10 2024
R-4.5-winWARNINGOct 10 2024
R-4.5-linuxWARNINGOct 10 2024
R-4.4-winWARNINGOct 10 2024
R-4.4-macWARNINGOct 10 2024
R-4.3-winWARNINGOct 10 2024
R-4.3-macWARNINGOct 10 2024

Exports:as_pidas_qidas_quotas_sidcheck_inputcreaterowscreaterows.tidydisambiguate_QIDsextract_claimsextract_parafilter_qidsfind_itemfind_propertyget_exampleget_geo_boxget_geo_entityget_itemget_names_from_propertiesget_propertyget_random_itemget_random_propertyidentifier_from_identifierinitialslist_propertiesqid_from_DOIqid_from_identifierqid_from_nameqid_from_ORCIDquery_wikidatasearchersparql_queryunspecialurl_to_idwd_querywd_rand_querywrite_wikibasewrite_wikidata

Dependencies:askpassassertthatbackportsbase64encbitbit64bslibcachemcheckmateclicliprclustercolorspacecpp11crayoncurldata.tabledigestdplyrevaluatefansifarverfastmapfontawesomeforeignFormulafsgenericsggplot2gluegridExtragtablehighrHmischmshtmlTablehtmltoolshtmlwidgetshttrisobandjquerylibjsonliteknitrlabelinglatticelazyevallifecyclemagrittrMASSMatrixmemoisemgcvmimemunsellnlmennetopensslpbapplypillarpkgconfigprettyunitsprogresspurrrR6rappdirsratelimitrRColorBrewerreadrrexrlangrmarkdownrpartrstudioapisassscalesstringistringrsystibbletidyselecttinytextzdbutf8vctrsviridisviridisLitevroomWikidataQueryServiceRWikipediRwithrxfunyaml

Readme and manuals

Help Manual

Help pageTopics
Convert an input to a property PIDas_pid
Convert an input to a item QIDas_qid
Add quotations marksas_quot
Convert an input to a source property SIDas_sid
Generic input checkercheck_input
"CREATE" rowscreaterows
"CREATE" rows from tidy formatcreaterows.tidy
Disambiguate QIDsdisambiguate_QIDs
Extract Claims from Returned Item Dataextract_claims
Extract a paragraph of textextract_para
Filter QIDsfilter_qids
Search for Wikidata items or properties that match a search termfind_item find_property
Get an example SPARQL query from Wikidataget_example
Get geographic entities based on a bounding boxget_geo_box
Retrieve geographic information from Wikidataget_geo_entity
Retrieve specific Wikidata items or propertiesget_item get_property
Get names of propertiesget_names_from_properties
Retrieve randomly-selected Wikidata items or propertiesget_random get_random_item get_random_property
identifier from identifieridentifier_from_identifier
Format short form person namesinitials
List properties of a Wikidata itemlist_properties
Print method for find_itemprint.find_item
Print method for find_propertyprint.find_property
Print method for Wikidata objectsprint.wikidata
QID from DOIqid_from_DOI
QID from identifierqid_from_identifier
QID from label nameqid_from_name
QID from ORCIDqid_from_ORCID
Send one or more SPARQL queries to WDQSquery_wikidata
Convert an input to a item QIDsearcher
Download full Wikidata items matching a sparql querysparql_query
Remove special charactersunspecial
Extract an identifier from a wikidata URLurl_to_id
Download a Wikidata itemwd_query
Download random Wikidata itemswd_rand_query
Global variables for Wikidata propertiesWD.globalvar
API client library for WikidataWikidataR-package WikidataR
Write statements to any Wikibase instancewrite_wikibase
Write statements to Wikidatawrite_wikidata