MachineTags aka TripleTags in Flickr

It used to be just about sharing photos with friends, but now its so, so much more than that.

Flickr announces Machine Tags, (via Mikel) which is formal support within Flickr's database and API for what are also known as TripleTags, namespace:predicate=value.

Example:

geotagged
geo:lat=43.245
geo:lon=-83.211

The idea was to add some specific meaning to a set of data (photo) in a way that was accessible to the user through the user interface. Savvy types would add keywords to the EXIF Metadata, but this is tedious, and this metadata is often stripped out when using some image conversion utilities for resizing/cropping/etc. Therefore, soon after the popularization of folksonomy, users found a way to also add 'semantic' data.

However, this usage, while working, was not inherently supported. People used it as a way to find all their 'geotagged' photos, or photos of forests, and so on. But parsing them and dealing with them was sometimes a pain from the developer perspective, and it also made a mess of your tag clouds or tag listings as you had all these one-time-use tags for the specific lat/lon point.

Now that Flickr internally supports machine tags in a good way, developers can really start using this as a way to attach arbitrary metadata to any data item (photo, etc.) Dan Catt gives a good discussion on what it all means and how it can be used.

I wonder if a Microformats-like impromptu standards body will pop-up to help formalize the namespaces and predicates. Why 'geotagged' and not 'geolocated', 'geo', 'geomarked', etc? While free-form naming is nice - so very extensible, being able to use a common vocabulary would also be nice.

Perhaps just accomodating current standards and applying them to the machine tags would be good without requiring any additional work. I'm thinking like hcard:fn=andrewturner, hcard:url=http://highearthorbit.com, hcard:phone=555-1212, etc.

You the developer


So, the end result to the developer is to check out the additional parameters to the Flickr search method in the API. There is now a machine_tags optional parameter that allows you to search by namespace, predicate, or value and use boolean constructions for these parameters.

Dan Catt even references Spimes as an excellent example of why machine tags can really empower devices, especially sensored/automated ones. And now that Flickr has no limits on uploads, you can create frequent update-rate sensored images.

About this article

written on
posted in ProgrammingPhotography Back to Top

About the Author

Andrew Turner is an advocate of open standards and open data. He is actively involved in many organizations developing and supporting open standards, including OpenStreetMap, Open Geospatial Consortium, Open Web Foundation, OSGeo, and the World Wide Web Consortium. He co-founded CrisisCommons, a community of volunteers that, in coordination with government agencies and disaster response groups, build technology tools to help people in need during and after a crisis such as an earthquake, tsunami, tornado, hurricane, flood, or wildfire.