The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
360° Tagging (or Leveraging Existing Tagging Platforms)

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Premshree Pillai

Posts: 478
Nickname: premshree
Registered: Mar, 2004

Premshree Pillai is a Ruby evangelist, working with Yahoo!.
360° Tagging (or Leveraging Existing Tagging Platforms) Posted: Nov 12, 2005 11:51 AM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by Premshree Pillai.
Original Post: 360° Tagging (or Leveraging Existing Tagging Platforms)
Feed Title: Premshree's Personal Weblog
Feed URL: http://premshree.livejournal.com/data/rss
Feed Description: Premshree's Weblog
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Premshree Pillai
Latest Posts From Premshree's Personal Weblog

Advertisement

Yahoo! 360°, as you know, doesn’t have the ability to tag entries as of now. I was wondering if there’s maybe a way I could add tagging to it. And then it struck me: Social Bookmarking!

Any sane social bookmarking site allows you to add a URL and associate a bunch of tags to it; and also has the capability to return a bunch of tags given a URL.

So, yeah, obviously it’s a Greasemonkey script. You get the idea now, I guess. I thought of using Yahoo!’s My Web 2.0 for this, but then there isn’t a push API. del.icio.us turned out to be my ideal candidate — they have post/get APIs, and they use HTTP authentication (which means no complications).

So this is how it works:

  • The script basically figure out the permalinks and titles of the blog posts, and store then as hidden variables in the forms that you see.
  • When you 'Add Tags', the permalink gets posted (through a PHP script proxy) as the URL to be bookmarked, and the title gets posted as the description (or the equivalent).
  • Now when you want to view posts with any tag, I just append a ?tag=foo to the blog URL, and it displays titles of all those posts, pointing to their permalinks.

Let’s take a look at a couple screenshots:

So to add a tag, you need to go to your My Blog page. Adding tags (space-delimited) is pretty straightforward, as you can see in the screenshot above. Now one problem is that I couldn’t find an API in del.icio.us that lets me add tags to an existing bookmarked URL. (I could maybe figure out tags for an existing URL, then add the new tag to the list, delete the URL, and then bookmark again... but, well, that’s too much of a pain.)

That's the same My Blog page when you pass a tag query to it — ?tag=code, in this case.

One thing — and an important one at that — lacking here is that only the logged-in user can make use of the tags. That’s kinda sad, but del.icio.us doesn’t have an API where I can do a tag lookup without requiring authentication information. Once they have such an API, it’d be pretty cool — all you’ll need to do is install (a modified version of) this script, and you’ll be able to see what others have tagged their posts, and browse their posts using tags.

So as of now what this script does is it makes your life easier if you want to categorize your blog posts... for you.

More interestingly, this script demonstrates how to leverage an existing tagging platform (del.icio.us, in this case), and make use of it in an application (Yahoo! 360°, in this case). Of course, using Greasemonkey is not really a solution but, hey, it works!

The script: 360.user.js.

Read: 360° Tagging (or Leveraging Existing Tagging Platforms)

Topic: Refresh Phoenix, First Meeting Previous Topic   Next Topic Topic: 1000 projects on RubyForge!

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use