Sha256: 1fbb2c4dc7ab899b8499edb2f5a0185ceb37810a94afaf3201069d2d6adfe6a8

Contents?: true

Size: 1.09 KB

Versions: 1

Compression:

Stored size: 1.09 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 TV program or a segment/part of a TV program.
    class TVClip < Mida::Vocabulary
      itemtype %r{http://schema.org/TVClip}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/tvclip.rb