问题
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?
回答1:
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.
来源:https://stackoverflow.com/questions/4143713/retrieve-another-language-of-a-wikipedia-page