Question

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
  }]    }]
Was it helpful?

Solution

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"
        }
      }
    }
  }]
}]

OTHER TIPS

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top