Tagging pages or items is a big part of the Web2.0 movement.  After doing some mild searching I didn’t find a prebuilt API for working with tags for Java (found some PHP stuff).  So I created one to be used in the next release of our site (www.myfriendsuggests.com).  As we’ve done in the past we decided to make the API available for anyone who wants to use it.  We don’t have a ton of working examples or documentation but the API handles all the DB communication and allows for:

  • Adding tags to items
  • Finding items with a tag (or tags)
  • Finding items tagged by a certain user
  • Generating a tag cloud for a user
  • Generating a tag cloud for an item
  • Other tag queries.

So far this has only been tested with MySQL but if there is interest out there please leave us a comment and we’ll work to verify it for other databases.

 To learn more and download the APTags API click here.

api java tagging tags Web 2.0