Sha256: de108147f1f9825352ab6e731b2e6cc839fb76d2cde33dcdc4576562ee83c789
Contents?: true
Size: 1.11 KB
Versions: 1
Compression:
Stored size: 1.11 KB
Contents
require 'mida_vocabulary/vocabulary' module Mida module SchemaOrg autoload :MediaObject, 'mida_vocabulary/vocabularies/schemaorg/mediaobject' autoload :CreativeWork, 'mida_vocabulary/vocabularies/schemaorg/creativework' autoload :Thing, 'mida_vocabulary/vocabularies/schemaorg/thing' 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::MediaObject include_vocabulary Mida::SchemaOrg::CreativeWork include_vocabulary Mida::SchemaOrg::Thing # 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mida_vocabulary-0.2.2 | lib/mida_vocabulary/vocabularies/schemaorg/imageobject.rb |