Sha256: f5caee8223486057d4ea7758330d789b7f3f3ca46fccac533dbeb8ac3e496a43

Contents?: true

Size: 722 Bytes

Versions: 4

Compression:

Stored size: 722 Bytes

Contents

require 'mida_vocabulary/vocabulary'

module Mida
  module SchemaOrg

    autoload :Thing, 'mida_vocabulary/vocabularies/schemaorg/thing'
    autoload :Organization, 'mida_vocabulary/vocabularies/schemaorg/organization'
    autoload :Person, 'mida_vocabulary/vocabularies/schemaorg/person'

    # An educational organization.
    class EducationalOrganization < Mida::Vocabulary
      itemtype %r{http://schema.org/EducationalOrganization}i
      include_vocabulary Mida::SchemaOrg::Thing
      include_vocabulary Mida::SchemaOrg::Organization

      # Alumni of educational organization.
      has_many 'alumni' do
        extract Mida::SchemaOrg::Person
        extract Mida::DataType::Text
      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/educationalorganization.rb
mida_vocabulary-0.1.2 lib/mida_vocabulary/vocabularies/schemaorg/educationalorganization.rb
mida_vocabulary-0.1.1 lib/mida_vocabulary/vocabularies/schemaorg/educationalorganization.rb
mida_vocabulary-0.1 lib/mida_vocabulary/vocabularies/schemaorg/educationalorganization.rb