Regarding the following query: https://www.wikidata.org/w/api.php?action=wbgetentities&sites=enwiki&titles=Multicellular&redirects=yes&props=
The desired effect is for it to be redirected to "Multicellular organism", but the redirects doesn't seem to be working, even when putting it explicitly in the URL. Is there a way to cause a redirect with wbgetentities when used with the www.wikidata.org host? Please advise, James Weaver On Fri, Nov 20, 2015, at 04:01 PM, Daniel Kinzler 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
