Sha256: 05c1d56d6f1e6fcadffedb445643d8defad75961567ee1e5fc6438742d31ce25

Contents?: true

Size: 842 Bytes

Versions: 1

Compression:

Stored size: 842 Bytes

Contents

require 'mida_vocabulary/vocabulary'

module Mida
  module SchemaOrg

    autoload :Action, 'mida_vocabulary/vocabularies/schemaorg/action'
    autoload :Thing, 'mida_vocabulary/vocabularies/schemaorg/thing'
    autoload :MedicalDevicePurpose, 'mida_vocabulary/vocabularies/schemaorg/medicaldevicepurpose'

    # The act of organizing tasks/objects/events by associating resources to it.
    class AllocateAction < Mida::Vocabulary
      itemtype %r{http://schema.org/AllocateAction}i
      include_vocabulary Mida::SchemaOrg::Action
      include_vocabulary Mida::SchemaOrg::Thing

      # A goal towards an action is taken. Can be concrete or abstract.
      has_many 'purpose' do
        extract Mida::SchemaOrg::MedicalDevicePurpose
        extract Mida::SchemaOrg::Thing
        extract Mida::DataType::Text
      end
    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/allocateaction.rb