Hi!
I am developing functionality that will allow WDQS query to get data
from Mediawiki API [1].
Currently, the design is as follows:
- The API should have a pre-defined template
- The template also specifies which results are available from the API
The need for template is currently because we need to convert data from
API's treelike format to tabular format that SPARQL needs, and the
template allows to specify how the conversion is done.
See
https://www.wikidata.org/wiki/Wikidata:WDQS_and_Mediawiki_API for
detailed description of how it works.
The prototype implementation is running on
http://wdqs-test.wmflabs.org/
(only Categories API described in the page above is configured now, but
more will be soon). I'd like to hear feedback about this:
- does template model make sense at all? Is it enough?
- what APIs would we want to expose?
- any other features that would be useful?
Other comments and ideas on the matter are of course always welcome.
Please comment on the talk page[2] or reply to this message.
[1]
https://phabricator.wikimedia.org/T148245
[2]
https://www.wikidata.org/w/index.php?title=Wikidata_talk:WDQS_and_Mediawiki…
Thanks,
--
Stas Malyshev
smalyshev(a)wikimedia.org