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(a)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&…
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&am…
<
https://www.wikidata.org/w/api.php?action=wbgetentities&ids=Q42&pro…
> 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&pro…
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(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata