Johannes Beigel schreef:
1. Is it possible to programatically get the full text
of the license
for the articles of a MediaWiki (ideally in form of an article in the
same MediaWiki installation)?
No, because it's not guaranteed to be stored anywhere. The fact that the
GPL text is on Wikipedia is more of a coincidence than a convention.
2. Is it possible to get the licenses (or at least
license names) for
images?
No, because, again, this isn't really stored anywhere. Image licensing
is not a built-in MediaWiki feature, but is accomplished using
templates. Your best bet would probably be to run prop=templates on the
image description page and see if it turns up a license template. Other
wikis may not even provide license information for their images, or may
not use templates for that.
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.
You can always get the full description by running
prop=revisions&rvprop=content on the image description page (which could
be remote).
Roan Kattouw (Catrope)