ANNOUNCED: Joshua | Tech Insider
Hi, My Name Is Aaron
In June 2007 I traveled to London to speak at the Yahoo! Hack Day UK developer event about machine tags at Flickr.
Search
Syntax : Namespaces
/^([a-z](?:[a-z0-9_]+))$/i
dalek:cake=
Syntax : Predicates
/^([a-z](?:[a-z0-9_]+))$/i
dalek:exterminate=bunnyfish
Syntax : Value
.+
rdf:less=mor
thisisthelessonofdelicious
mt:search=“flickr.photos.search”
Photos using the 'dc' namespace
$search_args["machine_tags"] = "dc:"; Photos with a title in the “dc” namespace
$search_args["machine_tags"] = "dc:title="; Photos titled “mr. camera” in the 'dc' namespace
$search_args["machine_tags"] = "dc:title=\"mr. camera\""; Photos whose value is “mr. camera”
$search_args["machine_tags"] = "*:*=\"mr. camera\""; Photos in any namespace with “title” predicate.
$search_args["machine_tags"] = "*:title="; Photos titled “mr. camera” in any namespace.
$search_args["machine_tags"] = "*:title=\"mr. camera\""; Photos whose value is “mr. camera” in the “dc” namespace.
$search_args["machine_tags"] = "dc:*=\"mr. camera\""; Like, totally
Caveats
- You can not do range queries
AND
queries are limited to a maximum of 16 machine tagsOR
queries are limited to a maximum of 8 machine tags- Wildcard search syntax is not available on the website
- There is nothing sacred about namespaces
Appendix A: API Methods
This blog post is full of links.
#hackday




















