Collection image

Retag as map type

Last updated 6 days ago

EOL would like to display all maps that we have on our Maps tab. However, some maps come to EOL as general images (such as from Wikipedia, where they may not be reliably marked as maps). This collection will gather together the maps that need to be re-processed from images to maps. We don't have a tool yet but we plan to develop one. Please leave a message in the newsfeed if you want to be able to add to this collection.

 

Note that if the image is from a wikimedia site, you can allow EoL to automatically recognise it as a map during the next wikimedia harvest. To do this, you must add a suitable category to its page on Wikimedia Commons. Any category descended from 'Distributional maps of organisms' is suitable, as described at http://eol.org/info/curate_wiki (in the "Category use" section).

Add a new comment

Newsfeed

  • Profile picture of Cyndy Parr who took this action.
    Cyndy Parr added an unknown item to the collection "Retag as map type".

    12 months ago

  • Profile picture of Cyndy Parr who took this action.
    Cyndy Parr added an unknown item to the collection "Retag as map type".

    12 months ago

  • Profile picture of Michаel Frаnkis who took this action.
    Michаel Frаnkis added an unknown item to the collection "Retag as map type".

    about 1 year ago

  • Profile picture of Michаel Frаnkis who took this action.
    Michаel Frаnkis added an unknown item to the collection "Retag as map type".

    about 1 year ago

  • Profile picture of Deniz Martinez who took this action.
    Deniz Martinez added an unknown item to the collection "Retag as map type".

    about 1 year ago

  • Profile picture of Deniz Martinez who took this action.
    Deniz Martinez added an unknown item to the collection "Retag as map type".

    about 1 year ago

  • Profile picture of Deniz Martinez who took this action.
    Deniz Martinez added an unknown item to the collection "Retag as map type".

    about 1 year ago

  • Profile picture of Deniz Martinez who took this action.
    Deniz Martinez added an unknown item to the collection "Retag as map type".

    about 1 year ago

  • Profile picture of Deniz Martinez who took this action.
    Deniz Martinez added an unknown item to the collection "Retag as map type".

    about 1 year ago

  • Profile picture of Deniz Martinez who took this action.
  • Profile picture of Deniz Martinez who took this action.
  • Profile picture of Deniz Martinez who took this action.
    Deniz Martinez added an unknown item to the collection "Retag as map type".

    about 1 year ago

  • Profile picture of Yan Wong who took this action.

    Yan Wong commented on "Retag as map type":

    OK. Done. Here's the crude code for mechanising the deletion of a set of known dataObject IDs from a collection (there's an extra step because I authenticate to EoL via google). I think we'll need the script again because a recent change to the wikimedia harvester should catch more of these maps (I estimate about another 50). Note that I used a different script to query the API to find which dataObjects in the collection are now tagged as maps. I can post this too if you like, or email it somewhere.

    #!/usr/bin/perl -ws
    use WWW::Mechanize;
    my $mech = WWW::Mechanize->new();
    my @data_objects_to_remove = (26791217,26839973,26839982);

    #log in to google
    $mech->get("https://accounts.google.com/ServiceLogin?hl=en&continue=https://www.google.com/");
    $mech->submit_form(form_id => 'gaia_loginform',fields => {Email => 'myemail@googlemail.com', Passwd => '*****'});

    #log in to EoL
    $mech->get("http://eol.org/login");
    $mech->submit_form(form_id => 'new_session_google');
    $mech->get("http://eol.org/collections/23389?view_as=1"); #might need to look on pages 2, 3, 4 etc too

    # finding the checkbox is a pain because the checkbox values don't correspond to the dataobject IDs. The source looks something like
    #<div class='checkbox'>
    #<input id="collection_job_collection_item_ids_" name="collection_job[collection_item_ids][]" type="checkbox" value="296755731" />
    #</div>
    #<h4>
    #<a href="/data_objects/21075962">Image of <i>Shirozuella unciforma</i></a>
    my %data_obj_to_formval=();
    my $html = $mech->content();
    while ($html =~ m|<input id="collection_job_collection_item_ids_" name="collection_job\[collection_item_ids\]\[\]" type="checkbox" value="(\d+)" />\s*</div>\s*<h4>\s*<a href="/data_objects/(\d+)">|gs) {
    $data_obj_to_formval{$2}=$1;
    };
    $mech->form_id('new_collection_job');
    $mech->select('scope', 'selected_items'); #make sure we don't remove all!
    foreach my $id (@data_objects_to_remove) {
    if (exists($data_obj_to_formval{$id})) {
    print "removing data object $id, which corresponds to checkbox value $data_obj_to_formval{$id}\n";
    $mech->tick('collection_job[collection_item_ids][]', $data_obj_to_formval{$id});
    }
    }
    $mech->click("remove")

    about 1 year ago • edited: about 1 year ago

  • Profile picture of Cyndy Parr who took this action.

    Cyndy Parr commented on "Retag as map type":

    @Yan Wong: Sure! I'm not sure how you will mechanize it but I'm curious.

    about 1 year ago

  • Profile picture of Michаel Frаnkis who took this action.

    Michаel Frаnkis marked "File:Araucana ubicacion.jpg" as trusted on the "Araucaria araucana (Molina) K. Koch" page.

    about 1 year ago

  • Profile picture of Michаel Frаnkis who took this action.
    Michаel Frаnkis added an unknown item to the collection "Retag as map type".

    about 1 year ago

  • Profile picture of Yan Wong who took this action.

    Yan Wong commented on "Retag as map type":

    OK - a bit more faff than I thought, but I can do this programmatically now. I've identified the following 179 data object IDs in the collection as now correctly tagged as maps. Do you want me to bulk remove them from the collection? I guess the code might be useful in the future too. 26797464 26839986 26839968 26839979 26791217 26839973 26839982 26839971 26839992 26839789 26839810 26839977 26780243 26845864 26874412 26864154 26789602 26802286 26871475 26879750 26839583 26880200 26792807 26791152 26791151 26791150 26791061 26841143 26869447 26880279 26880047 26871409 26871414 26860467 26780392 26880240 26869444 26868247 26872011 26848096 26818269 26794323 26869651 26788430 26801324 26785603 26810935 26783975 26817506 26854839 26803011 26797952 26780732 26862938 26864104 26854436 26850524 26880086 26814988 26815080 26780080 26784107 26839267 26786417 26806468 26789528 26841107 26794945 26880473 26880472 26880471 26880470 26785214 26782377 26788429 26789242 26779148 26860340 26880239 26880238 26861498 26796440 26874389 26860971 26805846 26814404 26798757 26814387 26814391 26815830 26851457 26791982 26811138 26788707 26813487 26858498 26879760 26781730 26780912 26780668 26878866 26839972 26789716 26855102 26879786 26790103 26797492 26879584 26812657 26878942 26847612 26792817 26815269 26854112 26857581 26871708 26780537 26871291 26786747 26816338 26811827 26817594 26795318 26780062 26780340 26807190 26780563 26803549 26786441 26864460 26787219 26838666 26850784 26843048 26779324 26784677 26850819 26799607 26815647 26871715 26794774 26820469 26835424 26779317 26781108 26811064 26795286 26808086 26865038 26808650 26784354 26859422 26857334 26848451 26836961 26857843 26794893 26839989 26780357 26821240 26795145 26841870 26816559 26880607 26812355 26779328 26839975 26811026 17435382 26789053 26780767 26780765 26780768 26814874 26812504 26805877 26805876 26780286 26780298 26787449 26842205 26816167 26869624

    about 1 year ago

  • Profile picture of Yan Wong who took this action.

    Yan Wong commented on "Retag as map type":

    I've got the script written now. We don't need to remove them from this collection using an API, we can just do it by mechanizing the normal way you would do it by hand. It won't be many.

    about 1 year ago • edited: about 1 year ago

  • Profile picture of Cyndy Parr who took this action.

    Cyndy Parr commented on "Retag as map type":

    @Yan Wong: Except that we don't have a write API for collections, so if you identify which images need to come out we still have to manually remove them.

    about 1 year ago • edited: about 1 year ago

  • Profile picture of Yan Wong who took this action.

    Yan Wong commented on "Retag as map type":

    I can probably work up a script to automate this, Cyndy, which will come in useful if we get other ways of correctly classifying these images. So hold off retagging for now and I'll see what I can come up with.

    about 1 year ago