Sha256: c29df9338842edad3aa1c4d8a33fc719fbd442bb8932355770cfd71adb5a7fb6

Contents?: true

Size: 536 Bytes

Versions: 4

Compression:

Stored size: 536 Bytes

Contents

require 'mida_vocabulary/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

4 entries across 4 versions & 1 rubygems

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