Daniel,
Ideally, this should be documented somewhere for the wbgetentities. (instead of this email thread)
Thad +ThadGuidry https://www.google.com/+ThadGuidry
On Fri, Nov 20, 2015 at 3:01 PM, Daniel Kinzler <daniel.kinzler@wikimedia.de
wrote:
Am 20.11.2015 um 18:22 schrieb Legoktm:
Kind of.
<
https://en.wikipedia.org/w/api.php?action=query&titles=Douglas%20Adams&a...
maps a page title on the English Wikipedia to its Wikidata Q id.
You can also look this up directly on wikidata: < https://www.wikidata.org/w/api.php?action=wbgetentities&sites=enwiki&...
<
https://www.wikidata.org/w/api.php?action=wbgetentities&ids=Q42&prop...
will do the reverse.
A bit more terse, and with full URLs in the output: < https://www.wikidata.org/w/api.php?action=wbgetentities&ids=Q42&prop...
You can also let yourself be redirected directly: https://www.wikidata.org/wiki/Special:GoToLinkedPage/enwiki/Q42
Or the the reverse redirect: https://www.wikidata.org/wiki/Special:ItemByTitle/enwiki/Douglas_Adams
HTH
-- Daniel Kinzler Senior Software Developer
Wikimedia Deutschland Gesellschaft zur Förderung Freien Wissens e.V.
Wikidata mailing list Wikidata@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata