Sha256: 64d86827d765cae41e49a3c626d1707072d093de521d7f570940836d2666dd1c

Contents?: true

Size: 1.44 KB

Versions: 4

Compression:

Stored size: 1.44 KB

Contents

require 'mida_vocabulary/vocabulary'

module Mida
  module SchemaOrg

    autoload :Thing, 'mida_vocabulary/vocabularies/schemaorg/thing'
    autoload :CreativeWork, 'mida_vocabulary/vocabularies/schemaorg/creativework'
    autoload :MediaObject, 'mida_vocabulary/vocabularies/schemaorg/mediaobject'
    autoload :Organization, 'mida_vocabulary/vocabularies/schemaorg/organization'
    autoload :ImageObject, 'mida_vocabulary/vocabularies/schemaorg/imageobject'

    # A video file.
    class VideoObject < Mida::Vocabulary
      itemtype %r{http://schema.org/VideoObject}i
      include_vocabulary Mida::SchemaOrg::Thing
      include_vocabulary Mida::SchemaOrg::CreativeWork
      include_vocabulary Mida::SchemaOrg::MediaObject

      # The caption for this object.
      has_many 'caption'

      # The production company or studio that made the movie, TV series, season, or episode, or video.
      has_many 'productionCompany' do
        extract Mida::SchemaOrg::Organization
        extract Mida::DataType::Text
      end

      # Thumbnail image for an image or video.
      has_many 'thumbnail' do
        extract Mida::SchemaOrg::ImageObject
        extract Mida::DataType::Text
      end

      # If this MediaObject is an AudioObject or VideoObject, the transcript of that object.
      has_many 'transcript'

      # The frame size of the video.
      has_many 'videoFrameSize'

      # The quality of the video.
      has_many 'videoQuality'
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mida_vocabulary-0.1.3 lib/mida_vocabulary/vocabularies/schemaorg/videoobject.rb
mida_vocabulary-0.1.2 lib/mida_vocabulary/vocabularies/schemaorg/videoobject.rb
mida_vocabulary-0.1.1 lib/mida_vocabulary/vocabularies/schemaorg/videoobject.rb
mida_vocabulary-0.1 lib/mida_vocabulary/vocabularies/schemaorg/videoobject.rb