Reputation:
Is there a way to access wikidata revision history page using SPARQL or wikimedia-API for the Item Eden Hazard (Q214204) as an example, to get the latest and oldest timestamps values?
Upvotes: 0
Views: 741
Reputation: 394
Answers above have described how to get the timestamps of older versions of a Wikidata object. To get the contents of an older version of the wikidata-object you can use the MediaWiki Revisions API.
The following query gives you the contents of two named revisions of Q42175289
whereas the following gives you the first 3 revisions of the same item (with contents)
Upvotes: 0
Reputation: 16394
There’s a fun way to access mediawiki data that happens to be excellent for such metadata: https://quarry.wmflabs.org
Set the database to wikidatawiki_p
. Here‘s the SQL:
SELECT MAX(rev_timestamp), MIN(rev_timestamp)
FROM page JOIN revision
ON page.page_id = revision.rev_page
WHERE page_title = "Q214204";
I’ve published the query here: https://quarry.wmflabs.org/query/57342
Upvotes: 0