Sha256: 6994d1a1f067e8f01eddc04fb6953c387dc3cd815128a23352f06b508e40f0aa

Contents?: true

Size: 1.1 KB

Versions: 1

Compression:

Stored size: 1.1 KB

Contents

require 'mida_vocabulary/vocabulary'

module Mida
  module SchemaOrg

    autoload :Action, 'mida_vocabulary/vocabularies/schemaorg/action'
    autoload :Thing, 'mida_vocabulary/vocabularies/schemaorg/thing'
    autoload :Place, 'mida_vocabulary/vocabularies/schemaorg/place'

    # The act of transferring/moving (abstract or concrete) animate or inanimate objects from one place to another.
    class TransferAction < Mida::Vocabulary
      itemtype %r{http://schema.org/TransferAction}i
      include_vocabulary Mida::SchemaOrg::Action
      include_vocabulary Mida::SchemaOrg::Thing

      # A sub property of location. The original location of the object or the agent before the action.
      has_many 'fromLocation' do
        extract Mida::DataType::Number
        extract Mida::SchemaOrg::Place
        extract Mida::DataType::Text
      end

      # A sub property of location. The final location of the object or the agent after the action.
      has_many 'toLocation' do
        extract Mida::DataType::Number
        extract Mida::SchemaOrg::Place
        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/transferaction.rb