Sha256: db6b6882e54f905d7abc805054830bba1b68b65c50031bab51aed484b284e3ed

Contents?: true

Size: 866 Bytes

Versions: 1

Compression:

Stored size: 866 Bytes

Contents

require 'mida_vocabulary/vocabulary'

module Mida
  module SchemaOrg

    autoload :MusicPlaylist, 'mida_vocabulary/vocabularies/schemaorg/musicplaylist'
    autoload :CreativeWork, 'mida_vocabulary/vocabularies/schemaorg/creativework'
    autoload :Thing, 'mida_vocabulary/vocabularies/schemaorg/thing'
    autoload :MusicGroup, 'mida_vocabulary/vocabularies/schemaorg/musicgroup'

    # A collection of music tracks.
    class MusicAlbum < Mida::Vocabulary
      itemtype %r{http://schema.org/MusicAlbum}i
      include_vocabulary Mida::SchemaOrg::MusicPlaylist
      include_vocabulary Mida::SchemaOrg::CreativeWork
      include_vocabulary Mida::SchemaOrg::Thing

      # The artist that performed this album or recording.
      has_many 'byArtist' do
        extract Mida::SchemaOrg::MusicGroup
        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/musicalbum.rb