Sha256: b1266d0121be41d4a916c0d4dc40914873672922fe3785c0b48bba228388621a
Contents?: true
Size: 1.04 KB
Versions: 1
Compression:
Stored size: 1.04 KB
Contents
require 'mida_vocabulary/vocabulary' 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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mida_vocabulary-0.2.2 | lib/mida_vocabulary/vocabularies/schemaorg/publicationevent.rb |