Sha256: 0dddcf5dc26d582dadf76c72459a2b4dd86550c9986446bb140f9eab99cae023

Contents?: true

Size: 1.23 KB

Versions: 4

Compression:

Stored size: 1.23 KB

Contents

require 'mida_vocabulary/vocabulary'

module Mida
  module SchemaOrg

    autoload :Thing, 'mida_vocabulary/vocabularies/schemaorg/thing'
    autoload :CreativeWork, 'mida_vocabulary/vocabularies/schemaorg/creativework'
    autoload :Article, 'mida_vocabulary/vocabularies/schemaorg/article'

    # A news article
    class NewsArticle < Mida::Vocabulary
      itemtype %r{http://schema.org/NewsArticle}i
      include_vocabulary Mida::SchemaOrg::Thing
      include_vocabulary Mida::SchemaOrg::CreativeWork
      include_vocabulary Mida::SchemaOrg::Article

      # The location where the NewsArticle was produced.
      has_many 'dateline'

      # The number of the column in which the NewsArticle appears in the print edition.
      has_many 'printColumn'

      # The edition of the print product in which the NewsArticle appears.
      has_many 'printEdition'

      # If this NewsArticle appears in print, this field indicates the name of the page on which the article is found. Please note that this field is intended for the exact page name (e.g. A5, B18).
      has_many 'printPage'

      # If this NewsArticle appears in print, this field indicates the print section in which the article appeared.
      has_many 'printSection'
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mida_vocabulary-0.1.3 lib/mida_vocabulary/vocabularies/schemaorg/newsarticle.rb
mida_vocabulary-0.1.2 lib/mida_vocabulary/vocabularies/schemaorg/newsarticle.rb
mida_vocabulary-0.1.1 lib/mida_vocabulary/vocabularies/schemaorg/newsarticle.rb
mida_vocabulary-0.1 lib/mida_vocabulary/vocabularies/schemaorg/newsarticle.rb