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

- old
+ new

@@ -4,16 +4,58 @@ module SchemaOrg autoload :Season, 'mida_vocabulary/vocabularies/schemaorg/season' autoload :CreativeWork, 'mida_vocabulary/vocabularies/schemaorg/creativework' autoload :Thing, 'mida_vocabulary/vocabularies/schemaorg/thing' + autoload :Episode, 'mida_vocabulary/vocabularies/schemaorg/episode' + autoload :Series, 'mida_vocabulary/vocabularies/schemaorg/series' + autoload :VideoObject, 'mida_vocabulary/vocabularies/schemaorg/videoobject' # Season dedicated to TV broadcast and associated online delivery. class TVSeason < Mida::Vocabulary itemtype %r{http://schema.org/TVSeason}i include_vocabulary Mida::SchemaOrg::Season include_vocabulary Mida::SchemaOrg::CreativeWork include_vocabulary Mida::SchemaOrg::Thing + + # The end date and time of the role, event or item (in ISO 8601 date format). + has_many 'endDate' do + extract Mida::DataType::ISO8601Date + end + + # An episode of a TV/radio series or season Supercedes episodes. + has_many 'episode' do + extract Mida::SchemaOrg::Episode + extract Mida::DataType::Text + end + + # The number of episodes in this season or series. + has_many 'numberOfEpisodes' do + extract Mida::DataType::Number + 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 + + # Position of the season within an ordered group of seasons. + has_many 'seasonNumber' do + extract Mida::DataType::Integer + extract Mida::DataType::Text + end + + # The start date and time of the event, role or item (in ISO 8601 date format). + has_many 'startDate' do + extract Mida::DataType::ISO8601Date + end + + # The trailer of a movie or tv/radio series, season, or episode. + has_many 'trailer' do + extract Mida::SchemaOrg::VideoObject + extract Mida::DataType::Text + end end end end