RDFa on Rails
Cédric Mesnage has just announced a plug-in that provides Ruby on Rails programmers with an API that enables them to easily publish RDFa. More details are in his log post RDFa on Rails, the Semantic Web made simple. The RDFa on Rails project itself, is hosted at RubyForge.
A typical use would be:
<% rdfa_post url_for(post) do %>
<% rdfa_title post.title do %>
<h1><%= link_to post.title, {:controller => :posts, :action => :show,
:id => post.id} %></h1>
<% end %>
<h4><%= rdfa_creator post.author %> the <%= rdfa_date post.created_at %></h4>
<div><%= rdfa_post_content post.content %></div>
<h5>Tags :
<% for tag in post.tags %>
<%= rdfa_link_to_tag tag.term, url_for(tag) %>
<% end %>
</h5>
<% end %>
Following on from the announcements that Jena supports RDFa and Firefox Plugin Operator supports RDFa this is great news, showing a rapid growth in awareness of RDFa amongst some key development communities.
July 22nd, 2007 at 11:32 pm
[...] A note on a new RDFa plug-in for Ruby on Rails. It seems like it should provide a convenient way to expose data in a Rails app to the semantic web. [...]