Showing posts with label machine tags. Show all posts
Showing posts with label machine tags. Show all posts

Tuesday, January 27, 2009

Flickr API improvements could yield more collections like accessCeramics

Last month Aaron Straup from Flickr announced four new API methods for machine tags (and also happened to mention our project!). One of these methods in particular, flickr.machinetags.getValues, inches Flickr closer to the idea of 'Flickr as database' for metadata storage.

In the past, if you wanted to find all the unique values of a given field (artist, for example), you had to query Flickr to get all the photos with 'artist' as a field, then make a call for each photo to get tag values...and then use a language like PHP to extract unique values. Once your collection gets past a few images, this sequence of events quickly becomes impractical.

With flickr.machinetags.getValues, you can get all unique values for a given field with just one call. This paves the way for creating UI links for browsing different values for fields. It also lessens the need to store metadata in a MySQL database, like we currently do.

As others have expressed interest in creating collections like accessCeramics, we've begun development on a more generic tool for cataloging Flickr images. We're also working on a companion presentation tool for viewing these catalogued collections. Thanks to the new API methods, the presentation software should run quickly, and shouldn't rely (much) on an external database. We'll post more information about this project as it becomes available.

Tuesday, June 24, 2008

code4lib journal article

Issue 3 of the code4lib online journal was published today, and it contains an article I wrote on the technology surrounding accessCeramics. Some of the main points have already been discussed in this blog, though the article goes into somewhat more depth. If you're interested in some of the design philosophy behind accessCeramics, and perhaps some of the nerdier aspects of the project, it might be worth a look.

Monday, April 21, 2008

Flickr Machine Tags Revisited

Over the weekend we added the ability to browse by different fields in accessCeramics. While this isn't really that hard of a problem, technologically speaking, it became clear that flickr machine tags couldn't handle this very well.


It came down to this. To get a list of the different values the images had for glaze, for example, we would have to do the following:

  • Make an API call to get a list of images in the collection

  • For each image, make an API call to get the list of tags & machine tags

  • Cycle through each set of tags and perform a regular expression match to find the 'glaze' machine tag, and store that value in a PHP array

  • Put the array in order, and print the results.


Or, if the metadata was in a local database like MySQL, we would have to:

  • Make an SQL query to the database, and process & print the results



In addition, the API doesn't support partial or truncated machine tag searches. For example, if I wanted to search for 'sculpture', I wouldn't get 'figurative sculpture' as part of my results set. This would require our users to be overly precise with their searches, which just isn't ideal design.

Because of situations like this, we decided to migrate the metadata to a MySQL database. We'll still include machine tag generation in Flickr as part of the process, in the event that API methods are added in the future. But storing all metadata in a local DB will greatly enhance the site's functionality and speed, especially as it grows to the volume we hope it will.

When this project began, we were hoping Flickr would be the database layer. To a certain extent it still is, but it just doesn't offer the same flexibility as a fairly simple MySQL database. It's still a cool idea, and hopefully Flickr will make some enhancements in the way machine tags are used and queried. With some of the recent chatter about an academic Flickr, hopefully the conversation that will move Flickr in that direction has begun.

Wednesday, March 19, 2008

Flickr machine tags

Much of the Web 2.0 world is flooded with tags to describe all sorts of objects. While tags are great, they are limited in that they are just keywords. In library catalogs and databases, we're used to searching by different fields (title, author, etc.). Tags aren't really equipped to fit this model, unless the search field is always 'keyword'.

Enter Flickr machine tags, which Flickr unveiled in January of 2007. A machine tag has the following syntax:

namespace:field="value"
(example: ceramics:artist="Ted Vogel")

Not only does this allow 'field/value' relationships, but it also lets projects (like ours) group relationships together by using a namespace. In a nutshell, developers can use Flickr machine tags to create interfaces which allow users to search or browse by metadata fields.

When an artist catalogs an image for accessCeramics, machine tags are automatically generated for the image on Flickr, based upon the field values he/she enters. The creation of all these machine tags for each image lays the groundwork for the development of interfaces to search and browse by field.

As of this post, we're still developing our full searching/browsing user interfaces, though we have some elements in place. For example, a user looking at Lisa Conway's Peachy might notice that she used the Electric Oxidation glazing technique. A simple click on Electric Oxidation will reveal other pieces in the collection that used the same glazing technique.

We're hoping that the interfaces we create around images described by machine tags will help to elevate the use of Flickr within the academic and library communities.