The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
What Are Machine Tags?

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
Gabriel Horner

Posts: 62
Nickname: cldwaker
Registered: Feb, 2009

Gabriel Horner is an independent consultant who can't get enough of Ruby
What Are Machine Tags? Posted: Apr 5, 2009 11:58 AM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by Gabriel Horner.
Original Post: What Are Machine Tags?
Feed Title: Tagaholic
Feed URL: http://feeds2.feedburner.com/tagaholic
Feed Description: My ruby/rails/knowledge management thoughts
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Gabriel Horner
Latest Posts From Tagaholic

Advertisement

Have you heard of machine tags? Unless you use Flickr actively, probably not. A machine tag, Flickr’s name for a triple tag, is a tag with meta information i.e. how it’s related to other tags. What difference can that make? A world of a difference.

As was explained in a Flickr group post, a machine tag is a tag consisting of a namespace, predicate and value in the format:

[namespace]:[predicate]=[value]

The namespace and predicate are the meta information of a tag and the value is the conventional tag we’re used to. Depending on the nomenclature you’re used to, think of a namespace as a tag’s class or type and the predicate as its property, attribute or facet. Aside from some reasonable character restrictions Flickr sets on namespace and predicate, machine tags are just tags.

So how about an example? Here are some machine tags from a flickr photo

  • astro:name=NGC 4565
  • astro:orientation=11.73
  • astro:RA=189.083922302

For these machine tags, astro is the namespace; name, orientation and RA are the predicates; and you can guess the values (everything after ‘=’). So aside from seeing that the photo has some astronomy-specific metadata associated with it, what’s the big deal?

  1. The metadata is structured. So structured that we can represent the example machine tags in a table:
    +-----------+-------------+---------------+
    | namespace | predicate   | value         |
    +-----------+-------------+---------------+
    | astro     | name        | NGC 4565      |
    | astro     | orientation | 11.73         |
    | astro     | RA          | 189.083922302 |
    +-----------+-------------+---------------+
    

    Or in a tree:
      astro
      |-- name
      |   `-- NGC 4565
      |-- orientation
      |   `-- 11.73
      `-- RA
          `-- 189.083922302
    

    Another testament to this structure is an astrophotography group that uses the example machine tags to make photos viewable with Google Sky.
  2. The effort required to add structured metadata opens this up to everyone. A user doesn’t have to be a developer who knows about rdf, owl or yet another metadata language. They simply have to know how a colon and equal sign delimit their metadata and they are able to metadata away. Flickr is a great example of this. Browse the 100+ machine tag namespaces that Flickr users have created.
  3. Since machine tag syntax is simple and structured, it’s easy for developers to make powerful queries into your structured metadata. Take for example flickr’s machine tag searches:
    1. Flickr photos with an astro namespace: astro:*=
    2. Flickr photos with an astro namespace and name predicate: astro:name=
    3. Flickr photos with a name predicate: *:name=
    4. Flickr photos with a value bob: *:=bob
  4. For programmers/developers: If you look at the example machine tags as one unit, you basically have an astro object with three attributes. How much easier can it be to have users create data you can use? If a group of machine tags can represent an object, then aren’t the aforementioned machine tag queries approximating SQL-like searches in the form of urls?

So aside from Flickr, who uses machine tags?:

If you know of additional machine tag projects or metadata alternatives that provide the flexibility and structure that machine tags do, feel free to comment them.

Read: What Are Machine Tags?

Topic: Click to Call on stage with Sinatra, Rack and Passenger Previous Topic   Next Topic Topic: Refactoring ActionScript #1

Sponsored Links



Google
  Web Artima.com   

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