Sha256: 9d2313ec1405ccd2c085c90040174c1319a5fa702ec40b7f2bf3b359326378cc

Contents?: true

Size: 1.31 KB

Versions: 1

Compression:

Stored size: 1.31 KB

Contents

require 'mida_vocabulary/vocabulary'

module Mida
  module SchemaOrg

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

    # A part of a successively published publication such as a periodical or publication volume, often numbered, usually containing a grouping of works such as articles.
    class PublicationIssue < Mida::Vocabulary
      itemtype %r{http://schema.org/PublicationIssue}i
      include_vocabulary Mida::SchemaOrg::CreativeWork
      include_vocabulary Mida::SchemaOrg::Thing

      # Identifies the issue of publication; for example, "iii" or "2".
      has_many 'issueNumber' do
        extract Mida::DataType::Integer
        extract Mida::DataType::Text
      end

      # The page on which the work ends; for example "138" or "xvi".
      has_many 'pageEnd' do
        extract Mida::DataType::Integer
        extract Mida::DataType::Text
      end

      # The page on which the work starts; for example "135" or "xiii".
      has_many 'pageStart' do
        extract Mida::DataType::Integer
        extract Mida::DataType::Text
      end

      # Any description of pages that is not separated into pageStart and pageEnd; for example, "1-6, 9, 55" or "10-12, 46-49".
      has_many 'pagination'
    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/publicationissue.rb