[Clipart] clipart Digest, Vol 47, Issue 16
Greg Bulmash
oneminuteinspirations at gmail.com
Tue Feb 12 13:43:30 PST 2008
If it's agreed that all instances where "birds" occurs should be
"bird", then the most efficient method is to do an SQL query to remove
"birds" from any image where the author submitted both "bird" and
"birds" (this may require a script depending on how things are laid
out), then another to change all instances of "birds" to "bird".
But this doesn't stop users from entering birds on future uploads.
There needs to be a remap function in the tag registration module that
compares each new tag to a list and "adjusts" it if it's a mapped
term.
For example...
$tag = "birds";
$newtag = remaptags($tag);
// insert $newtag into database
.....
function remaptags($tag){
$mapped = array( "birds" => "bird",
"clowns"=> "clown"
"Father Christmas" => "Santa Claus");
if(isset($mapped["$tag"])) $tag = $mapped["$tag"];
return $tag;
}
If you want to update the mapping, just add to or change that array.
This way an editor doesn't have to go through and run the remapping
processes every so often to combat tag drift. You could also use a
similar function to broaden tags. For example you might want to make
sure that every image that gets tagged "Father Christmas" also gets
tagged "Santa Claus" and vice versa.
- Greg
On Feb 12, 2008 12:38 PM, John Olsen <johnny_automatic at mac.com> wrote:
> >
>
> I like the idea of shortening that tags list. Maybe we can add a
> quick line of instruction over the right hand sidebar with the subset
> names (+) for those who don't get it. I try to tag things into
> classes and subclasses like animal,mammal,feline,tiger but a lot of
> people are very bad about their tagging. So it is an area we
> librarians can help in.
>
> I wondered about an automated way to clean up tags. I've done some of
> it where a tag has been generated by a typo, but it would be good to
> merge larger groups - how does it work Jon?
>
> Seems an obvious place to start is merging single and plural version
> of a tag together like bird and birds. I think the singular is better
> and all encompassing. Do we agree?
>
>
> John Olsen
>
> > Message: 2
> > Date: Tue, 12 Feb 2008 19:49:08 +0800
> > From: Jon Phillips <jon at rejon.org>
> > Subject: Re: [Clipart] Minimum number of tags
> > To: momo at lumenstudio.net
> > Cc: clipart at lists.freedesktop.org
> > Message-ID: <1202816948.6436.105.camel at localhost>
> > Content-Type: text/plain
> >
> > Actually, Joanna, I think great to set the threshold now...the search
> > function is fixed in upcoming release and that tags page is a massive
> > overload on our webserver at present...could you try to set the min
> > visible at like 100 and then we can test that out...
> >
> > Also, there is a way to automatically clean up tags as an admin as
> > well,
> > which might be a nice thing to do...it takes a while, but there are
> > several tags which are similar and should be corrected....
> >
> > Would you like to look into this more?
> >
> > Cheers!
> >
> > Jon
>
>
>
>
> _______________________________________________
> clipart mailing list
> clipart at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/clipart
>
More information about the clipart
mailing list