Sha256: c860afcced17c7748a592ac033a96055bc1dd89b7d1eb6825cf6040e5172b9c9
Contents?: true
Size: 1.06 KB
Versions: 6
Compression:
Stored size: 1.06 KB
Contents
require 'mida/vocabulary' module Mida module SchemaOrg autoload :Thing, 'mida/vocabularies/schemaorg/thing' autoload :CreativeWork, 'mida/vocabularies/schemaorg/creativework' autoload :MediaObject, 'mida/vocabularies/schemaorg/mediaobject' autoload :ImageObject, 'mida/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
6 entries across 6 versions & 1 rubygems