Microformats – Part 3: Introducing Operator

Previously
Part 0: Introduction to Microformats
Part 1: Structured Data Chaos
Part 2: The Fundamental Types

Introducing Operator, a Microformat Detection Extension for Firefox 2

Today Mozilla Labs is releasing Operator, a microformat detection extension developed by Michael Kaply at IBM. Operator demonstrates the usefulness of semantic information on the Web, in real world scenarios.

Operator

Here are some examples of things you can do with this release of Operator, and with the Web as it exists today.

Yahoo! Local Plusoperator Your Address Book

With Operator you can send the phone number of your favorite pizza place from Yahoo! Local to your address book, without having to type anything. Click through for the full image:

Yahoolocal+Addressbook

Upcoming.org
Plusoperator Calendar Plusoperator Maps

If you view an event at Upcoming.org you can easily add the event to your calendar to see if you are free, or map the location of the event to see where it will take place.

Upcoming+Calendar+Map

Blog Post Tag
Plusoperator Flickr

Let’s say you are viewing Fred’s post about the Mozilla lanyards given out at the Firefox Summit, and you decide you want to view more photos of the Firefox Summit. With Operator, you can easily navigate from Fred’s post to the “Firefox Summit” tag on Flickr.

Summit1

Summit2

Flickr
Plusoperator Maps

Now let’s say you want to know where the above picture was taken. Because the photograph is geotagged, you can use Operator to quickly push its’ coordinates to Google maps.

Summit3

This works for any of the millions of geotagged pictures on Flickr.

Flickr+Maps2

Operator requires information on the Web to be encoded using microformats, and since this method for semantically encoding information is relatively new, not all sites are using microformats yet. However, Operator works great with any blog that uses rel-tag, and the sites Yahoo! Local, Flickr, and Upcoming.org, all of which contain millions of pieces of information expressed using microformats. As more sites begin to semantically encode data with microformats, Operator will automatically work with them as well.

Operator isn’t the first microformat detection extension for Firefox, previously microformat detection in Firefox was possible with the Tails Export extension by Robert de Bruin. Operator builds on Tails Export by having a user interface that is based around actions the user can take, instead of data types. Operator also includes support for the microformats geo and rel-tag, and is compatible with Firefox 2.

After using Operator for awhile, you will find yourself quickly transferring structured data to your favorite applications without typing a single letter, you will be hoping around the Web without navigating on hyperlinks, and you will be remixing services in ways that are really useful.

The combination of microformated content on the Web and the Operator extension for Firefox results in a kind of data cross pollination that we think is very exciting.

Operator as Tool for Adding Microformated Content to Your Web Site

[Update: Additional technical information about Operator can be found on Michael Kaply’s blog]

In addition to demonstrating why microformats are important to end users, Operator can also be used as a tool for testing microformated content you have added to your Web site. Operator’s creator Michael Kaply explains:

In creating Operator my goals were to create something that was useful to microformat developers as well as users looking to explore microformats. As such, the Operator Toolbar can be displayed in two modes: Microformats mode and Actions mode.

In Microformats mode, each button on the toolbar represents a microformat. When you select an individual entry from the submenu on the button all the handlers available for that microformat are displayed. You can also change the options so that the default handler for that microformat is invoked when an individual entry is selected, as opposed to displaying all the handlers. In addition, you can choose to use a more descriptive name (for instance Contact(s) instead of hCard).

Microformatmode

I have added some other useful features for developers. When you hold down the Shift key and select an entry in a microformats submenu, it displays the internal representation of the selected microformat item. When you hold down the Ctrl key and select an entry in a microformats submenu, it displays the source of the selected microformat item. Also, if debug mode is turned on in options, when an invalid microformat is detected, the menu text is changed to “Invalid – select for more details.” If you select the menu item, it will give you a message indicating what we believe is incorrect about the entry.

The Operator extension is also very extensible, allowing for not only the creation of additional microformats, but also the addition of handlers to existing microformats. There are sample files provided in the directory where the extension is installed for both of these cases. To use the new microformat or handler, place it in a directory called “microformats” in your profile directory.

I know I will get a few questions about some things, so I thought I’d handle them here as well.

Q: Why didn’t you use the XSLT transforms from Brian Suda to export to iCal and vCard?

A: Brian has done some great work, and I did take a look at those in the beginning but decided against them mainly because I needed more flexibility in my code to access the individual items in the microformats. Because of this, I parse the microformats myself and store the data in Javascript. Also, I wanted all the code in the extension to be original. I realize my export is not anywhere near as complete as Brian’s – that’s being worked on.

Q: Aren’t the Tails and Tails Export extensions good enough? Why do we need more extensions in the microformat space?

A: The Tails and Tails Export extensions are great and they provided my first glimpse at using microformats in the browser. I quickly discovered though that the interfaces they provided (sidebar and status bar) were not what I was looking for and it was not easy to add custom handlers and microformats. My goal with this new work was to make it easy to tailor the microformat concept for the end user as well as provide more options for developers working on microformats.

Get Operator

You can download Operator at addons.mozilla.org.

Next: The User Interface of Microformat Detection

Technorati Tags: , ,

8 comments

  1. Note that comments were previously closed on this post due to overzealous spam blocking on the server.

    Some comments appear in this thread: http://groups.google.com/group/mozilla.dev.apps.firefox/browse_frm/thread/bca5a231d634f87a/4361d223cc01b53f#4361d223cc01b53f

    Please feel free to comment there, or below.

  2. Great series of posts on microformats… I think it’s fitting that Firefox 3.0 is going to introduce microformats to the masses. I feel that web 3.0 will be about the semantic web. Having firefox bring this data to the forefront will expose the masses to meaningful information that would otherwise go unnoticed.

  3. Alex, I know you are working on Firefox. Are you aware that similar support to MicroFormats can be available on IE? I myself use both web browsers.

  4. Andy Wong, I’m not even sure what you mean by “similar support to MicroFormats can be available on IE” – as I understand it, the point is that you can add semantics to HTML without NEEDING browser support.

  5. Leave IE for security reasons.
    Moreover, Firefox is more intuitive!

  6. I’m curious, how do I structure markup for the resources and bookmarks menus?

    I couldn’t find those on the micro-formats site and the words bring up too much unrelated things when google’ing.

    thanks

  7. Having firefox bring this data to the forefront will expose the masses to meaningful information that would otherwise go unnoticed.
    And ı am following frequently.I hope that you will be with us together with much more scharings.
    I hope that your success will go on.

  8. Is this a bit like Ubiquity?