Sha256: cc5f7d306b17b3578f1c75b42cde05e53229f6b9e4b120dba83681a96a23db01

Contents?: true

Size: 1.11 KB

Versions: 4

Compression:

Stored size: 1.11 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 :ImageObject, 'mida_vocabulary/vocabularies/schemaorg/imageobject'

    # An image file.
    class ImageObject < Mida::Vocabulary
      itemtype %r{http://schema.org/ImageObject}i
      include_vocabulary Mida::SchemaOrg::Thing
      include_vocabulary Mida::SchemaOrg::CreativeWork
      include_vocabulary Mida::SchemaOrg::MediaObject

      # The caption for this object.
      has_many 'caption'

      # exif data for this object.
      has_many 'exifData'

      # Indicates whether this image is representative of the content of the page.
      has_many 'representativeOfPage' do
        extract Mida::DataType::Boolean
      end

      # Thumbnail image for an image or video.
      has_many 'thumbnail' do
        extract Mida::SchemaOrg::ImageObject
        extract Mida::DataType::Text
      end
    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/imageobject.rb
mida_vocabulary-0.1.2 lib/mida_vocabulary/vocabularies/schemaorg/imageobject.rb
mida_vocabulary-0.1.1 lib/mida_vocabulary/vocabularies/schemaorg/imageobject.rb
mida_vocabulary-0.1 lib/mida_vocabulary/vocabularies/schemaorg/imageobject.rb