I am trying to extract birth and death data from Wikipedia. I have used DBpedia and Wikidata but in this particular instance the dates do not match Wikipedia.

This query `https://www.wikidata.org/w/api.php?action=wbgetentities&format=json&titles=Thomas_MacDermot&sites=enwiki` returns a P569 with a date of 1870-01-01. DBpedia shows the same date.

The Wikipedia page `https://en.wikipedia.org/wiki/Thomas_MacDermot` shows a date of 26 June 1870.

Why this discrepancy? And can this date information be retrieved programmatically (i.e. not screen scraping) from Wikipedia itself?

Thank you!