Advanced Tag Searching in Blosxonomy

Posted 911 days ago

I revisted my tagsearch implementation this evening and realized I could make it both much simpler and much more powerful. I now support queries with mixed and/or syntax. "and" has higher precedence - so:

http://www.timfanelli.com/tags/python/folksonomy+ruby/blosxonomy

Will return all posts the are tagged ( "python" and "folksonomy" ) or ( "ruby" and "blosxonomy" )

This is accomplished by taking the request string that matches /^\/tags/(.*)/ and splitting it first on +. I then take each element in the resulting array, split on / and find entries that match all the tags. The results are appended together to build the final response.

This is all accomplished in a few simple lines:

m = Regexp::compile( config['tags_path'] + "/(.*)", Regexp::IGNORECASE ).match( pathinfo )
if m
	ortags = m[1].split('+')		
	ortags.each { |andtags| app['entries'] |= fel.getEntriesWithAllTags( andtags.split('/') ) }
end

Where fel is my File Entry Locator. I envision this changing a little bit when I design the SQL Entry Locator, and supporting queries directly in the locator API.

Again, this feature will be released with Blosxonomy 0.6.

Multi Tag Searches in Blosxonomy

Posted 911 days ago

I enabled multi tag searching today in Blosxonomy. This is a feature that was already in place, but my URL processing didn't account for. Multi tag searching allows you to lookup entries that match any or all tags specified in the query string - for instance:

http://www.timfanelli.com/tags/svn/apple

Will lookup all entries that are tagged "svn" and "apple".

http://www.timfanelli.com/tags/svn+apple

Will lookup all entries that are tagged "svn" or "apple".

This opens up the possibility to do some cool things, such as showing a "related tag cloud" instead of the full tagcloud when you're searching on a tag. Clicking on a tag in the related tag cloud could append the new tag as an and or an or, allowing to your refine your results with a dynamic view of available relationships.

This feature will be relesed with blosxonomy 0.6.

Related Amazon Items pyBlosxom Plugin

Posted 926 days ago

I wrote a quick plugin this morning to generate links to related books (or other items) at Amazon.com using Amazon's Web Services (AWS), based on your entry's tags.

The plugin queries AWS's ItemSearch for each tag in an entry, and then sorts out the results in decreasing order of how many tags a product was returned in. Links are then generated using Amazon's product images for the top N results, where N is some configurable number of products. All the links are generated using your own Amazon Associates ID as well.

You can download it here

(read more)

Folksonomy Update

Posted 927 days ago

Folksonomy 1.2 is avaialble for download

Folksonomy is a pyBlosxom plugin that infers relationships between your blog entries based on tags; providing links to related stories, links to related tags, a tag cloud, and the ability to search for entries by tag.

What's New: As of Folksonomy 1.2, there are no longer any dependencies on other plugins. Folksonomy is now a complete tagging solution for pyBlosxom. If you're already using Tags or Tag Cloud, simple replace those plugins with Folksonomy, and you'll still have all the same functionality you had before!

(read more)

Folksonomy in pyBlosxom

Posted 930 days ago

I published the first release of my Folksonomy plugin tonight. Folksonomy infers relationships between your pyBlosxom entries based on their tags, allowing you to generate lists of related stories for each entry.

I still have a couple items to polish up, and I want to merge my tag_cloud plugin into Folksonomy before I submit it to the pyBlosxom registy, but you can get this first pass here.

Switchin to Tags in pyblosxom

Posted 932 days ago

Inspired by Pete, and intrigued by the word Folksonomy, I decided to switch my blog to use tags for organization rather than categories.

The birds-eye difference is minimal, I can have multiple tags per entry, whereas each entry belongs to only a single category. While that doesn't sound very powerful in and of itself, using tags extends your ability to relate posts to each other, creating a more meaningful reading experience for your blog.

(read more)

Creating a Tag Cloud in pyBlosxom

Posted 934 days ago

I installed the tags plugin tonight, and tagged most of the entries on my site. I decided to replace categories all together, and as such, you'll notice a tag cloud on the left side of my site.

I wrote a simple pyBlosxom plugin to generate the tag cloud, to be used in conjunction with the tags plugin. You can download it here: tag cloud plugin.

(read more)