User talk:Liné1
Bot for creating Taxonavigations where information exists on WikiSpecies
← Older revision
Revision as of 15:06, 17 March 2013
Line 553:
Line 553:
:: Thanks for the quick reply! I think there are three things going on here, and I'm getting mixed up between the various terminologies, so let me summarize for my own benefit:
:: Thanks for the quick reply! I think there are three things going on here, and I'm getting mixed up between the various terminologies, so let me summarize for my own benefit:
::* On Wikimedia Commons - the {{m|Taxonavigation}} template is used both for species and for higher-level taxa, but it is not intended to be a scientifically precise classification, merely a set of helpful links (however, this is the metadata which is mined by Encyclopedia of Life to check if an image is suitable for import as a picture of a species).
::* On Wikimedia Commons - the {{m|Taxonavigation}} template is used both for species and for higher-level taxa, but it is not intended to be a scientifically precise classification, merely a set of helpful links (however, this is the metadata which is mined by Encyclopedia of Life to check if an image is suitable for import as a picture of a species).
−
::* On Wikipedia page, a more detailed [http://en.wikipedia.org/wiki/Template:Taxobox \{\{Taxobox\}\}] template is used instead, which is more scientifically precise.
+
::* On Wikipedia page, a more detailed [http://en.wikipedia.org/wiki/Template:Taxobox {
−
::* On ''WikiSpecies'' pages (which I don't think you've mentioned), the taxonomic hierarchy is done through a long list of transcluded templates, e.g. [http://species.wikimedia.org/wiki/Template:Allactaga \{\{Allactaga\}\}] transcludes [http://species.wikimedia.org/wiki/Template:Allactaginae \{\{Allactaginae\}\}], which itself transcludes [http://species.wikimedia.org/wiki/Template:Dipodidae \{\{\Dipodidae}\}] etc. This allows easy changing of the classification, if necessary, by just changing the parent template transcluded into a lower-level template - any such change automatically changes all relevant pages.
+
::* On ''WikiSpecies'' pages (which I don't think you've mentioned), the taxonomic hierarchy is done through a long list of transcluded templates, e.g. [http://species.wikimedia.org/wiki/Template:Allactaga {
::* There are problems converting between these three separate classifications. For example, it is not easy to create a Taxonavigation from a Taxobox because (1) it is unclear which names & levels to include and (2) names which do not exist as pages, or which refer synonyms, are used in Taxoboxes, but are not acceptable in a Taxonavigation.
::* There are problems converting between these three separate classifications. For example, it is not easy to create a Taxonavigation from a Taxobox because (1) it is unclear which names & levels to include and (2) names which do not exist as pages, or which refer synonyms, are used in Taxoboxes, but are not acceptable in a Taxonavigation.
::Your method basically stays entirely within Commons. You are thinking of taking an existing, filled-out Taxonavigation template at the genus level, and look for subtaxa (hopefully species), append each subtaxon name as the last level to the Taxonavigation template, and insert this template onto the category page for that subtaxon, if there is no template there already. That seems like a nice thing to do.
::Your method basically stays entirely within Commons. You are thinking of taking an existing, filled-out Taxonavigation template at the genus level, and look for subtaxa (hopefully species), append each subtaxon name as the last level to the Taxonavigation template, and insert this template onto the category page for that subtaxon, if there is no template there already. That seems like a nice thing to do.
::A few thoughts:
::A few thoughts:
::* One might hope that all 3 hierarchies should be maintained in sync somehow. This might be easier than it appears. Although it's tough to make a Taxonavigation from a Taxobox, it should be relatively easy to check that an existing Taxonavigation is compatible with an existing Taxobox: simply follow the redirects for all the links in both the Taxobox and the Taxonavigation, then check that final targets in the Taxonavigation are a subset of those in the Taxobox. Perhaps this could serve as a check that the heirarchies in the two are congruent?
::* One might hope that all 3 hierarchies should be maintained in sync somehow. This might be easier than it appears. Although it's tough to make a Taxonavigation from a Taxobox, it should be relatively easy to check that an existing Taxonavigation is compatible with an existing Taxobox: simply follow the redirects for all the links in both the Taxobox and the Taxonavigation, then check that final targets in the Taxonavigation are a subset of those in the Taxobox. Perhaps this could serve as a check that the heirarchies in the two are congruent?
−
::* If you trust the ''WikiSpecies'' classification, it might be possible to insert some invisible markup into, say the [http://species.wikimedia.org/wiki/Template:Allactaga \{\{Allactaga\}\}] template which flags it up as a level to be inserted into a WikiCommons Taxonavigation box. Then all that needs to be done to create a missing Taxonavigation in Commons is to locate the species page on WikiSpecies, parse the taxonomic hierarchy at the top of the page to find the flagged classification levels, follow any redirects, and construct a Taxonavigation. This has the advantage that it maintains WikiSpecies and WikiCommons classifications in sync. But obviously that's also rather constraining - you want them to have different classifications, or there may be a lot of Commons species that are absent or unclassified on WikiSpecies.
+
::* If you trust the ''WikiSpecies'' classification, it might be possible to insert some invisible markup into, say the [http://species.wikimedia.org/wiki/Template:Allactaga {
::* It might also be possible to check which taxa categories are missing Taxonavigation templates by following the linked images from WikiSpecies. If they are being missed by your bot, it (presumably) means that they have not correctly been assigned as a subtaxon of an appropriate genus. These can then be flagged up for correction by hand (or I guess it could be automated, since the correct genus is known).
::* It might also be possible to check which taxa categories are missing Taxonavigation templates by following the linked images from WikiSpecies. If they are being missed by your bot, it (presumably) means that they have not correctly been assigned as a subtaxon of an appropriate genus. These can then be flagged up for correction by hand (or I guess it could be automated, since the correct genus is known).
::Of course, it's probably more difficult than that, because names are changed or misspelt, taxonomies change over time, and so on. But something along these lines might be possible.
::Of course, it's probably more difficult than that, because names are changed or misspelt, taxonomies change over time, and so on. But something along these lines might be possible.
http://commons.wikimedia.org/w/index.php?title=User_talk:Lin%C3%A91&diff=92759261&oldid=92758787