Hi Fae,

Thanks for this insight, this is very helpful! I was not yet aware enough of 
that option in the regular GTW-interface . I'll modify my code to create 1 
large XML-dump....

Best,
Olaf  

-----Original Message-----
From: Glamtools [mailto:[email protected]] On Behalf Of 
[email protected]
Sent: dinsdag 16 februari 2016 13:00
To: [email protected]
Subject: Glamtools Digest, Vol 35, Issue 5

Send Glamtools mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.wikimedia.org/mailman/listinfo/glamtools
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific than "Re: 
Contents of Glamtools digest..."


Today's Topics:

   1. Re: [GWToolset] Uploading 350 books - via command line    or
      API? (Fæ)


----------------------------------------------------------------------

Message: 1
Date: Mon, 15 Feb 2016 12:53:18 +0000
From: Fæ <[email protected]>
To: Conversations revolving around the development of GLAM Digital
        Tools <[email protected]>
Subject: Re: [Glamtools] [GWToolset] Uploading 350 books - via command
        line    or API?
Message-ID:
        <cah7nnd2mru0gra93j5ojcgfsfmn3288zjnedqiyeqdfo1vr...@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8

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 <[email protected]> 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_1
> 810_tot_1950)
>
> 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 
> [email protected]
>
> +31 (0)70 3140 388
> @ookgezellig
>
> www.slideshare.net/OlafJanssenNL
--
[email protected] https://commons.wikimedia.org/wiki/User:Fae



------------------------------

Subject: Digest Footer

_______________________________________________
Glamtools mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/glamtools


------------------------------

End of Glamtools Digest, Vol 35, Issue 5
****************************************
_______________________________________________
Glamtools mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/glamtools

Reply via email to