Requests for comment/Wikidata API

Introduction
This RFC proposes a slightly altered Wikidata API structure to make it more in line with the core API, as well as more feature rich and compact.

The goals of the RFC are
 * Minimalistic results - only retrieve the data that has been asked for, nothing else. This reduces server load, bandwidth costs, and improves speed.
 * Seamless integration - Wikidata extensions should be extending action=query when appropriate. This way all the other features of the query action becomes available, such as combining multiple pieces of information in one query (ask for aliases and what links here together), as well as query continuation.

list=wdsearch (wds)

 * : A list of site links in the site+language format, e.g. enwiki:API. Multiple sites and languages are allowed. Please note that multiple site links may resolve into the same entity page.
 * : A list of aliases to search in the language title format, e.g. API. Multiple languages are allowed. Please note that multiple aliases may resolve into the same entity page.
 * : (Optional) Adds an extra result section wdsmap that contains a mapping of all searched terms to pageids. If this module is used as a generator, the section name will be gwdsmap.

prop=wikidata (wdt)
This section is under development


 * : Which data to get from the Qnnn page (will ignore any non-wikidata pages). Available values are:
 * : Get the description given to the page in a specific language (per wdtlang)
 * : Get the list of aliases given to the page in a specific language (per wdtlang)
 * : One or more languages for wdtprop
 * : List of global site ids (e.g. hewiki) to get the language links for