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 <[email protected] > wrote: > Am 20.11.2015 um 18:22 schrieb Legoktm: > > Kind of. > > > > < > https://en.wikipedia.org/w/api.php?action=query&titles=Douglas%20Adams&prop=pageprops&formatversion=2 > > > > 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&titles=Douglas_Adams&props= > > > > > < > https://www.wikidata.org/w/api.php?action=wbgetentities&ids=Q42&props=sitelinks > > > > 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&props=sitelinks|sitelinks/urls&sitefilter=enwiki > > > > 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 > [email protected] > https://lists.wikimedia.org/mailman/listinfo/wikidata >
_______________________________________________ Wikidata mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikidata
