Reputation: 93
I am trying to return a list of people in wikipedia that have dates of birth listed. The code below works for English Wikipedia, but will not return persons in non-English wikis. How can I return a list of people who are in any wikipedia?
[{
"id": null,
"name": null,
"type": "/people/person",
"date_of_birth": [{
"optional": "required",
"value": null
}],
"/wikipedia/topic/en_id": [{
"optional": "required",
"value": null
}] }]
Upvotes: 3
Views: 107
Reputation: 5327
Have a look at Wikidata. new project by wikipedia themselves to link all their data. http://www.wikidata.org/wiki/Wikidata:Main_Page
You can also query Wikidata/Wikipedia using Mediawiki API.
http://en.wikipedia.org/w/api.php
Upvotes: 0
Reputation: 10540
Freebase has links to non-English Wikipedias, but only if the topic also appears in English Wikipedia, so the data you want probably isn't available to query, but if it were, you could use something like this:
[{
"id": null,
"name": null,
"type": "/people/person",
"date_of_birth": [{
"optional": "required",
"value": null
}],
"key": [{
"namespace": {
"key": {
"namespace": {
"id": "/wikipedia"
}
}
}
}]
}]
Upvotes: 2