Sha256: 32dea0f967f0e290231ba8797c1b20e26bb4048bb7284126c6248eabaa2261d7
Contents?: true
Size: 958 Bytes
Versions: 4
Compression:
Stored size: 958 Bytes
Contents
require 'mida_vocabulary/vocabulary' module Mida module SchemaOrg autoload :Thing, 'mida_vocabulary/vocabularies/schemaorg/thing' autoload :CreativeWork, 'mida_vocabulary/vocabularies/schemaorg/creativework' # An article, such as a news article or piece of investigative report. Newspapers and magazines have articles of many different types and this is intended to cover them all. class Article < Mida::Vocabulary itemtype %r{http://schema.org/Article}i include_vocabulary Mida::SchemaOrg::Thing include_vocabulary Mida::SchemaOrg::CreativeWork # The actual body of the article. has_many 'articleBody' # Articles may belong to one or more 'sections' in a magazine or newspaper, such as Sports, Lifestyle, etc. has_many 'articleSection' # The number of words in the text of the Article. has_many 'wordCount' do extract Mida::DataType::Integer end end end end
Version data entries
4 entries across 4 versions & 1 rubygems