Sha256: 5b6c0dbc40207ef2cd83b454f04df5b5ab7050b3f04d1e50d936e1811fb152a3

Contents?: true

Size: 866 Bytes

Versions: 4

Compression:

Stored size: 866 Bytes

Contents

require 'mida_vocabulary/vocabulary'

module Mida
  module SchemaOrg

    autoload :Thing, 'mida_vocabulary/vocabularies/schemaorg/thing'
    autoload :CreativeWork, 'mida_vocabulary/vocabularies/schemaorg/creativework'
    autoload :MusicPlaylist, 'mida_vocabulary/vocabularies/schemaorg/musicplaylist'
    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::Thing
      include_vocabulary Mida::SchemaOrg::CreativeWork
      include_vocabulary Mida::SchemaOrg::MusicPlaylist

      # 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

4 entries across 4 versions & 1 rubygems

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