Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Retrieving the Interlanguage links from an exported Wikipedia article?

I used to retrieve the interlanguage links from an exported Wikipedia article by parsing the export with some regular expressions.

In phase 1 of the WikiData project these links have been moved to a separate page on Wikidata.

For example the article Ore Mountains has no language links anymore in the export. The language links are now on Q4198.

How can I export the language links?

like image 732
Dawied Avatar asked May 18 '13 23:05

Dawied


1 Answers

You are now encouraged to use the Wikidata aPI : http://wikidata.org/w/api.php

For your case, use props=labels. This url is self explicative :

http://www.wikidata.org/w/api.php?action=wbgetentities&sites=enwiki&titles=Ore%20Mountains&languages=cs|de|es|fr|it|pl|pt|ru&props=labels&format=xml
like image 98
Hugolpz Avatar answered Sep 28 '22 12:09

Hugolpz