The main change for this release is that you can now describe vocabularies to
conform to. These are set out by subclassing VocabularyDesc
as in the following:
class Rating < Mida::VocabularyDesc
itemtype %r{http://example\.com.*?rating$}i
has_one 'best', 'value'
end
class Comment < Mida::VocabularyDesc
itemtype %r{http://example\.com.*?comment$}i
has_one 'commentor', 'comment'
end
class Review < Mida::VocabularyDesc
itemtype %r{http://example\.com.*?review$}i
has_one 'itemreviewed'
has_one 'rating' do
types Rating, String
end
has_many 'comments' do
types Comment
end
end
There were also a few implementation changes. To see the complete list of changes, please have a look at the CHANGELOG.