lib/mida_vocabulary/vocabularies/schemaorg/series.rb in mida_vocabulary-0.2 vs lib/mida_vocabulary/vocabularies/schemaorg/series.rb in mida_vocabulary-0.2.2
- old
+ new
@@ -3,15 +3,90 @@
module Mida
module SchemaOrg
autoload :CreativeWork, 'mida_vocabulary/vocabularies/schemaorg/creativework'
autoload :Thing, 'mida_vocabulary/vocabularies/schemaorg/thing'
+ autoload :Person, 'mida_vocabulary/vocabularies/schemaorg/person'
+ autoload :Episode, 'mida_vocabulary/vocabularies/schemaorg/episode'
+ autoload :MusicGroup, 'mida_vocabulary/vocabularies/schemaorg/musicgroup'
+ autoload :Organization, 'mida_vocabulary/vocabularies/schemaorg/organization'
+ autoload :Season, 'mida_vocabulary/vocabularies/schemaorg/season'
+ autoload :VideoObject, 'mida_vocabulary/vocabularies/schemaorg/videoobject'
# A TV or radio series.
class Series < Mida::Vocabulary
itemtype %r{http://schema.org/Series}i
include_vocabulary Mida::SchemaOrg::CreativeWork
include_vocabulary Mida::SchemaOrg::Thing
+
+ # A cast member of the movie, tv/radio series, season, episode, or video. Supercedes actors.
+ has_many 'actor' do
+ extract Mida::SchemaOrg::Person
+ extract Mida::DataType::Text
+ end
+
+ # The director of the movie, tv/radio episode or series. Supercedes directors.
+ has_many 'director' do
+ extract Mida::SchemaOrg::Person
+ extract Mida::DataType::Text
+ end
+
+ # 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 composer of the movie or TV/radio soundtrack.
+ has_many 'musicBy' do
+ extract Mida::SchemaOrg::MusicGroup
+ extract Mida::SchemaOrg::Person
+ extract Mida::DataType::Text
+ end
+
+ # The number of episodes in this season or series.
+ has_many 'numberOfEpisodes' do
+ extract Mida::DataType::Number
+ end
+
+ # The number of seasons in this series.
+ has_many 'numberOfSeasons' do
+ extract Mida::DataType::Number
+ end
+
+ # The producer of the movie, tv/radio series, season, or episode, or video.
+ has_many 'producer' do
+ extract Mida::SchemaOrg::Person
+ extract Mida::DataType::Text
+ end
+
+ # The production company or studio that made the movie, tv/radio series, season, or episode, or media object.
+ has_many 'productionCompany' do
+ extract Mida::SchemaOrg::Organization
+ extract Mida::DataType::Text
+ end
+
+ # A season in a tv/radio series. Supercedes seasons.
+ has_many 'season' do
+ extract Mida::SchemaOrg::Season
+ 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