2008/4/29 Johannes Beigel <johannes.beigel(a)brainbot.com>om>:
2. Is it possible to get the licenses (or at least
license names) for
images?
The image descriptions (or "comments" from
action=query&prop=imageinfo&iiprop=comment) only include templates
("license boxes") whose names differ from one MediaWiki installation
to the other; needless to say, that not every included template needs
to be used for licensing information. Another problem with
iiprop=comment is, that sometimes not the full description text is
returned.
Given that any MW install can set up their licenses however they wish,
I don't see how the API will be able to extract such information - it
would be like asking for the API to be able to extract a user's native
language from their user page. Free-form wiki content and all.
However...
<plug>
If you are interested in extracting such information from Wikimedia
wikis, specifically Wikimedia Commons, let me interest you in the
Commons API:
<http://tools.wikimedia.de/~magnus/commonsapi.php>
in SVN: trunk/tools/commonsapi/commonsapi.php
Some background about it
<http://brianna.modernthings.org/article/99/apis-ask-and-ye-shall-receive>
It's like, extremely pre-alpha, but I hope we can develop it into
something fairly robust and reliable.
</plug>
cheers :)
Brianna
--
They've just been waiting in a mountain for the right moment:
http://modernthings.org/