Sha256: 2976e0ebf0b6fd11aaff4af81fe559a042070ac789153a81f4dd7d0e1c7e06b1

Contents?: true

Size: 525 Bytes

Versions: 6

Compression:

Stored size: 525 Bytes

Contents

require 'mida/vocabulary'

module Mida
  module SchemaOrg


    # The most generic type of item.
    class Thing < Mida::Vocabulary
      itemtype %r{http://schema.org/Thing}i

      # A short description of the item.
      has_many 'description'

      # URL of an image of the item.
      has_many 'image' do
        extract Mida::DataType::URL
      end

      # The name of the item.
      has_many 'name'

      # URL of the item.
      has_many 'url' do
        extract Mida::DataType::URL
      end
    end

  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
mida-0.4.0 lib/mida/vocabularies/schemaorg/thing.rb
mida-0.3.9 lib/mida/vocabularies/schemaorg/thing.rb
mida-0.3.8 lib/mida/vocabularies/schemaorg/thing.rb
mida-0.3.7 lib/mida/vocabularies/schemaorg/thing.rb
mida-0.3.6 lib/mida/vocabularies/schemaorg/thing.rb
mida-0.3.3 lib/mida/vocabularies/schemaorg/thing.rb