Re: [Wikidata] Deleting properties / items in test.wikidata.org
Hi, On 09/08/2016 08:54 AM, Loic Dachary wrote: > Hi, > > But I was not able to figure out how to remove them afterwards, to not > clutter test.wikidata.org. You would just use the normal MediaWiki API delete feature[1]. Pywikibot abstracts it as Page.delete(...). [1] https://www.mediawiki.org/wiki/API:Delete -- Legoktm ___ Wikidata mailing list Wikidata@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata
Re: [Wikidata] Does a REST services exist that converts Wikipedia url to Wikidata Q id, and the converse?
Hi, On 11/20/2015 08:16 AM, ja...@j1w.xyz wrote: > Much of the app will be implemented as REST services in the cloud, and > one item of functionality required will be a REST service that returns > the Q id given a Wikipedia URL (in any language). Another REST service > required will return a Wikipedia URL given a Wikidata Q id and language > code (e.g. "en" or "pt-br"). > > Does anything like this currently exist? 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. <https://www.wikidata.org/w/api.php?action=wbgetentities&ids=Q42&props=sitelinks> will do the reverse. I'm not aware of anything that converts direct URLs, you'll have to modify the output a little. -- Legoktm ___ Wikidata mailing list Wikidata@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata