The easiest way is to merge your XML files into one large XML, then
put this through the GWT. Though I can imagine ways of automating the
front end of GWT, it would be a clumsy way of going about it.
If your concern is that you want to create separate book categories,
then add a category field in the XML that can vary by book. You can
add several variable categories as an option on the mappings page. For
example
<https://commons.wikimedia.org/wiki/File:DAILY_MENU_%28held_by%29_REVERE_HOUSE_%28at%29_%22BOSTON,_MA%22_%28%28HOTEL%3F%29%29_%28NYPL_Hades-269316-476896%29.tiff>
was uploaded with the category "NYPL Rare Book Division" automatically
generated from the NYPL metadata. (To be fair, I'm not using the GWT
for most of the NYPL material for reasons mentioned on the related
project page.)
Responding to J Hayes comment in this thread, you can mass upload to
IA with off-the shelf Python modules. However just as much care should
be taken to map out the metadata using IA's metadata options, as they
are incredibly open/flexible, the archives tend to be confusingly
inconsistent. This would still leave a challenge of finding a good
mapping for Commons templates if you then wanted to upload from IA to
Commons rather than from somewhere else.
Fae
On 15 February 2016 at 12:18, Olaf Janssen <Olaf.Janssen(a)kb.nl> wrote:
Hi,
I’m preparing an image donation of some 350 picture books from 1810 to 1880 (taken from
the collection
http://www.geheugenvannederland.nl/?/en/collecties/prentenboeken_van_1810_t…)
For every book I’ve constructed an XML file describing the pages (metadata). So eg. for a
book of 20 pages I’ve an XML with 20 records. I can upload these in the normal way via the
GWToolset webinterface, also assigning a Commons category to the book.
For 1 book that’s doable, but for 350 books I would need to upload 350 XML files, 1 by 1,
using the GWT-webinterface (using the same json mapping file for all uploads). But this
would take me a lot of time (and it’s rather boring)…
So I’m wondering if / how I could automate this. Is there a more direct/efficient way?
I can image that I could do some command line interfacing (Pywiki??), with the XML, the
json-mapping and the target Commonscat-name as input parameters. Would that be an option?
Any tricks, tips & directions are very welcome
Met vriendelijke groet / With kind regards
Olaf Janssen
Wikipedia & open data coordinator
Koninklijke Bibliotheek - National Library of the Netherlands
olaf.janssen(a)kb.nl
+31 (0)70 3140 388
@ookgezellig
www.slideshare.net/OlafJanssenNL --
faewik(a)gmail.com
https://commons.wikimedia.org/wiki/User:Fae