Sha256: 65f35a681c1703b0af1e9557c1b88c69a2c5269bb62e3ea807441975d98cb6ae

Contents?: true

Size: 1.5 KB

Versions: 4

Compression:

Stored size: 1.5 KB

Contents

require 'mida_vocabulary/vocabulary'

module Mida
  module SchemaOrg

    autoload :Thing, 'mida_vocabulary/vocabularies/schemaorg/thing'
    autoload :Event, 'mida_vocabulary/vocabularies/schemaorg/event'
    autoload :Organization, 'mida_vocabulary/vocabularies/schemaorg/organization'
    autoload :Person, 'mida_vocabulary/vocabularies/schemaorg/person'
    autoload :CreativeWork, 'mida_vocabulary/vocabularies/schemaorg/creativework'

    # User interaction: A comment about an item.
    class UserComments < Mida::Vocabulary
      itemtype %r{http://schema.org/UserComments}i
      include_vocabulary Mida::SchemaOrg::Thing
      include_vocabulary Mida::SchemaOrg::Event

      # The text of the UserComment.
      has_many 'commentText'

      # The time at which the UserComment was made.
      has_many 'commentTime' do
        extract Mida::DataType::ISO8601Date
      end

      # The creator/author of this CreativeWork or UserComments. This is the same as the Author property for CreativeWork.
      has_many 'creator' do
        extract Mida::SchemaOrg::Organization
        extract Mida::SchemaOrg::Person
        extract Mida::DataType::Text
      end

      # Specifies the CreativeWork associated with the UserComment.
      has_many 'discusses' do
        extract Mida::SchemaOrg::CreativeWork
        extract Mida::DataType::Text
      end

      # The URL at which a reply may be posted to the specified UserComment.
      has_many 'replyToUrl' 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/usercomments.rb
mida_vocabulary-0.1.2 lib/mida_vocabulary/vocabularies/schemaorg/usercomments.rb
mida_vocabulary-0.1.1 lib/mida_vocabulary/vocabularies/schemaorg/usercomments.rb
mida_vocabulary-0.1 lib/mida_vocabulary/vocabularies/schemaorg/usercomments.rb