Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Retrieve another language of a Wikipedia page

Task: We have Wikipedia English page and need to retrieve the same page address in Russian.

I know the Semantic Web solution - use simple query to DbPedia, but I am curious whether there are traditional solutions. I have asked the same question in semanticoverflow.com where Toby Inkster suggested to parse http://en.wikipedia.org/wiki/Colugo?action=raw results (there are other languages links in the bottom), but this way is too inefficient. Are there any other ways or DbPedia is the one real option?

like image 665
SiberianGuy Avatar asked Nov 10 '10 10:11

SiberianGuy


People also ask

How do I find a Wikipedia page in a different language?

Many pages on the English Wikipedia are available in other languages. These pages are accessed via the interlanguage (interwiki) links, usually visible on the bottom left of a page. (Top right on mobile.)

How do you change the language on Wikipedia?

Set/change Wikipedia language To change the Wikipedia language, go to the "More" menu in the main screen, tap "Settings", then select "Wikipedia languages". From there you can add, remove, and rearrange your preferred languages. (Your topmost language will be used by default when searching Wikipedia.)


1 Answers

Wikipedia has an extensive API, which can provide language links information among others. In this particular case, you're looking for api.php?action=query&prop=langlinks&titles=.... See here for example.

like image 168
MaxSem Avatar answered Sep 28 '22 13:09

MaxSem