Sha256: 9427febfd77f5473ebd81847c50c3937011b373cfd1e093c3ffb442f23151940

Contents?: true

Size: 506 Bytes

Versions: 4

Compression:

Stored size: 506 Bytes

Contents

require 'mida_vocabulary/vocabulary'
require 'mida_vocabulary/vocabularies/data_vocabulary/item'

module Mida
  module DataVocabulary
    class Geo < Mida::Vocabulary
      itemtype %r{http://data-vocabulary.org/Geo}i
      include_vocabulary Mida::DataVocabulary::Item

      for field in %w{latitude longitude}
        has_many field do
          extract Mida::DataType::Float
        end
      end

      has_many 'itemreviewed' do
        extract Mida::DataVocabulary::Item
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mida_vocabulary-0.2.2 lib/mida_vocabulary/vocabularies/data_vocabulary/geo.rb
mida_vocabulary-0.2 lib/mida_vocabulary/vocabularies/data_vocabulary/geo.rb
mida_vocabulary-0.1.3 lib/mida_vocabulary/vocabularies/data_vocabulary/geo.rb
mida_vocabulary-0.1.2 lib/mida_vocabulary/vocabularies/data_vocabulary/geo.rb