lib/mida_vocabulary/vocabularies/schemaorg/tvclip.rb in mida_vocabulary-0.2 vs lib/mida_vocabulary/vocabularies/schemaorg/tvclip.rb in mida_vocabulary-0.2.2

- old
+ new

@@ -4,16 +4,30 @@ module SchemaOrg autoload :Clip, 'mida_vocabulary/vocabularies/schemaorg/clip' autoload :CreativeWork, 'mida_vocabulary/vocabularies/schemaorg/creativework' autoload :Thing, 'mida_vocabulary/vocabularies/schemaorg/thing' + autoload :Season, 'mida_vocabulary/vocabularies/schemaorg/season' + autoload :Series, 'mida_vocabulary/vocabularies/schemaorg/series' # A short TV program or a segment/part of a TV program. class TVClip < Mida::Vocabulary itemtype %r{http://schema.org/TVClip}i include_vocabulary Mida::SchemaOrg::Clip include_vocabulary Mida::SchemaOrg::CreativeWork include_vocabulary Mida::SchemaOrg::Thing + + # The season to which this episode belongs. + has_many 'partOfSeason' do + extract Mida::SchemaOrg::Season + extract Mida::DataType::Text + end + + # The series to which this episode or season belongs. Supercedes partOfTVSeries. + has_many 'partOfSeries' do + extract Mida::SchemaOrg::Series + extract Mida::DataType::Text + end end end end