Sha256: 3a8fee002c76bbd8be27c34ac19fd392716563a95ffce92aa1f30caf8709fcdd

Contents?: true

Size: 1.1 KB

Versions: 1

Compression:

Stored size: 1.1 KB

Contents

require 'mida_vocabulary/vocabulary'

module Mida
  module SchemaOrg

    autoload :Clip, 'mida_vocabulary/vocabularies/schemaorg/clip'
    autoload :CreativeWork, 'mida_vocabulary/vocabularies/schemaorg/creativework'
    autoload :Thing, 'mida_vocabulary/vocabularies/schemaorg/thing'
    autoload :Season, 'mida_vocabulary/vocabularies/schemaorg/season'
    autoload :Series, 'mida_vocabulary/vocabularies/schemaorg/series'

    # A short radio program or a segment/part of a radio program.
    class RadioClip < Mida::Vocabulary
      itemtype %r{http://schema.org/RadioClip}i
      include_vocabulary Mida::SchemaOrg::Clip
      include_vocabulary Mida::SchemaOrg::CreativeWork
      include_vocabulary Mida::SchemaOrg::Thing

      # The season to which this episode belongs.
      has_many 'partOfSeason' do
        extract Mida::SchemaOrg::Season
        extract Mida::DataType::Text
      end

      # The series to which this episode or season belongs. Supercedes partOfTVSeries.
      has_many 'partOfSeries' do
        extract Mida::SchemaOrg::Series
        extract Mida::DataType::Text
      end
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mida_vocabulary-0.2.2 lib/mida_vocabulary/vocabularies/schemaorg/radioclip.rb