User:HYanWong
R plots
← Older revision
Revision as of 05:06, 16 March 2013
Line 1:
Line 1:
−
== R plots ==
+
== Automatic credit (attribution) lines ==
−
I'm currently uploading a large number of plots [http://commons.wikimedia.org/wiki/Category:Created_with_R generated by R] for use in the wikibook [http://en.wikibooks.org/w/index.php?title=Statistical_Analysis:_an_Introduction_using_R Statistical Analysis: an Introduction using R]. If you wish to alter these images, please take into account that they are used in this book. Thanks! [[User:HYanWong|HYanWong]] ([[User talk:HYanWong|talk]]) 22:46, 6 March 2009 (UTC)
+
I've written some code to generate [[Commons:Credit_line | credit lines]] for any image on Commons. It's a bit like [[Help:Gadget-Stockphoto | Gadget-Stockphoto]] but is designed for batch processing large numbers of images, so instead of scraping Commons directly, it goes through the [http://dumps.wikimedia.org/commonswiki/latest/ xml and sql data dump files].
+
+
You give the script a list of image names, or a search pattern, and it slurps through the entire commons-pages-articles xml dump looking for matching pages, tries to recognise authors from those pages, then grabs the licences by looking through a (parsed) copy of the commonswiki categorylinks sql table.
http://commons.wikimedia.org/w/index.php?title=User:HYanWong&diff=92660175&oldid=19002705