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

- old
+ new

@@ -3,15 +3,27 @@ module Mida module SchemaOrg autoload :Event, 'mida_vocabulary/vocabularies/schemaorg/event' autoload :Thing, 'mida_vocabulary/vocabularies/schemaorg/thing' + autoload :BroadcastService, 'mida_vocabulary/vocabularies/schemaorg/broadcastservice' # A PublicationEvent corresponds indifferently to the event of publication for a CreativeWork of any type e.g. a broadcast event, an on-demand event, a book/journal publication via a variety of delivery media. class PublicationEvent < Mida::Vocabulary itemtype %r{http://schema.org/PublicationEvent}i include_vocabulary Mida::SchemaOrg::Event include_vocabulary Mida::SchemaOrg::Thing + + # A flag to signal that the publication is accessible for free. + has_many 'free' do + extract Mida::DataType::Boolean + end + + # A broadcast service associated with the publication event. + has_many 'publishedOn' do + extract Mida::SchemaOrg::BroadcastService + extract Mida::DataType::Text + end end end end