Sha256: 245ccae4d4ebb4f1466f60a2a18aaeaed8d04ff607dea80a823c7afe7d44a4ab

Contents?: true

Size: 823 Bytes

Versions: 1

Compression:

Stored size: 823 Bytes

Contents

require 'mida_vocabulary/vocabulary'
require 'mida_vocabulary/vocabularies/data_vocabulary/item'

module Mida
  module DataVocabulary
    autoload :Organization, 'mida_vocabulary/vocabularies/data_vocabulary/organization'
    
    class Review < Mida::Vocabulary
      itemtype %r{http://data-vocabulary.org/Review}i
      include_vocabulary Mida::DataVocabulary::Item

      has_one('rating') { extract Mida::DataType::Number }

      has_one 'reviewer' do
        extract Mida::DataVocabulary::Person
        extract Mida::DataType::Text
      end

      has_many('dtreviewed') { extract Mida::DataType::ISO8601Date }

      has_many 'description'
      has_many 'summary'
      
      has_many 'itemreviewed' do
        extract Mida::DataVocabulary::Item
        extract Mida::DataType::Text
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mida_vocabulary-0.1.2 lib/mida_vocabulary/vocabularies/data_vocabulary/review.rb