I am now trying to query the aliases of specific person names (which correspond to the article title in Wikipedia) using Wikidata API.
I am using R and there is a WikidataR package for Wikidata query. E.g., the person name "Martin Luther", I use the "find_item" and the returned ID is as follows:
Results: 1 Martin Luther (Q9554) - German monk, priest, and professor of theology, seminal figure in Protestant Reformation 2 Martin Luther (Q342938) - Wikipedia disambiguation page 3 Martin Luther (Q62290) - German diplomat 4 Martin Luther (Q328096) - 1953 film biography 5 Martin Luther (Q989866) - 1923 silent movie about Martin Luther 6 Martin Luther (Q13479610) 7 Martin Luther (Q1904488) - planned 1983 movie 8 Martin Luther (Q6776037) - artwork by Ernst Friedrich August Rietschel 9 Martin Luther King, Jr. (Q8027) - American clergyman, activist, and leader in the American Civil Rights Movement 10 Martin Luther King, Jr. Day (Q751738) - United States holiday
In the returned result, only 1, 3,9 point to the human beings. And if I use the first ID Q9554 and get_item function, I can get the following output:
Wikidata item Q9554 Label: Martin Luther [150 other languages available] Aliases: Martin Luther, Luther, Junker Jörg, 路德马丁,, לוטהער, מארטין, לותר, Лютер Мартин, Martin LUTHER, chevalier Georges, frère Martin, Martin Luder Description: German monk, priest, and professor of theology, seminal figure in Protestant Reformation [15 other languages available] Claims: 72 Sitelinks: 189
So if I want to get the aliases of "Martin Luther", I need the ID of him in Wikidata instead of the direct query. As it is possible to query wikipedia using person name directly, is there any possible way to query wikidata using person name ? If it is not possible, how can I set the condition to query the wikidata API only to return the IDs of persons (such as 1, 3,9 in the example)? Thx.