February 26, 2007 02:28 | WebTech

Machine Tags

super quick little PHP function to parse machine tags into an array. Barely useful. What I'd really like to see is code for querying them in a database. Flickr should share that... ;)


I think your code's pretty straightforward, but I wonder if you've got the names of the parts a little messed up. I'd probably call the parts of a machine tag, in order, "namespace", "predicate", "object". I think the tagged resource is always the subject.

yeah i was scratching my chin there too. I coded it up as I was running ou the door and forgot the terms hahaha so I reverted to grammar.

You are of course right. Fixing now.