lib/cultural_network/import/feature_data.rb
# ##################################################################### #
#
# Returns Vocabulary objects popuplated with Terms (non-saved)
#
Returns Vocabulary objects popuplated with Terms (non-saved)
Returns Vocabulary objects popuplated with Terms ( non - saved )
def fetch_thesauri
      doc = create_doc('gaz-thesauri/administrativeThesaurus.xml')
      vocabs=[]
      (doc/"thesaurus/root/term").each do |term|
        STDOUT << puts 
        STDOUT << term.inspect
        STDOUT << puts 
      end
      vocabs
    end
def fetch_thesauri doc = create_doc ( 'gaz-thesauri/administrativeThesaurus.xml' ) vocabs = [ ] ( doc / "thesaurus/root/term" ) . each do | term | STDOUT << puts STDOUT << term . inspect STDOUT << puts end vocabs end
Returns Vocabulary objects popuplated with Terms (non-saved)
Returns Vocabulary objects popuplated with Terms ( non - saved )
## loop through each <term> element in the thesaurus