Wikibase/EntityData

This is a help page for d:Special:EntityData that is being used in Wikibase repo setups (like Wikidata).

Usage
In order to use it, you need to apply entity id as a subpage (like d:Special:EntityData/Q7251) or as "id=" argument (like Special:EntityData?id=Q7251)

In order to determine to output format, there are several ways to do so:
 * Content negotiation: If "ACCEPT: MIME type(s)" is present in request headers, the special page, tries to find the most suitable format it can support. For more information read Content negotiation article in English Wikipedia. Default supported content types are:
 * "application/vnd.php.serialized"
 * "text/plain" and "text/text"
 * "text/html" (Will redirect to the entity page)
 * "application/json"
 * "application/rdf"
 * "application/n3"
 * "application/ttl"
 * "application/nt"
 * Using "format" argument. So for example Special:EntityData?id=Q7251&format=json. Supported formats are: json, php, n3, ttl, nt, rdf, html.
 * Using format suffix: For example d:Special:EntityData/Q7251.json. Supported format suffixes are: json, php, n3, ttl, nt, rdf, html.

You can also determine a fixed revision id using "oldid" or "revision" argument (for example Special:EntityData?id=Q7251&revision=123456)

If argument "redirect=force" is present, it forces a redirect regardless of the outcome.