Sha256: 831b484a77951e76531db09e20d5d2eefae22f5906496e22c827e9bb3c0d157b

Contents?: true

Size: 656 Bytes

Versions: 26

Compression:

Stored size: 656 Bytes

Contents

namespace :iqvoc do

  namespace :import do

    desc 'Imports some ntriples data from a given url (URL=...). Use the parameter NAMESPACE=... to define the default namespace used in your data.'
    task :url => :environment do
      require 'iqvoc/skos_importer'

      raise "You have to specify an url to be import data. Example: rake iqvoc:import:url URL=... NAMESPACE=" unless ENV['URL']
      raise "You have to specify a default namespace to be import data. Example: rake iqvoc:import:url URL=... NAMESPACE=" unless ENV['NAMESPACE']
      Iqvoc::SkosImporter.new(open(URI.parse(ENV['URL']).to_s), URI.parse(ENV['NAMESPACE']).to_s)
    end

  end

end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
iqvoc-3.2.11 lib/tasks/importer.rake
iqvoc-3.2.10 lib/tasks/importer.rake
iqvoc-3.2.9 lib/tasks/importer.rake
iqvoc-4.0.2 lib/tasks/importer.rake
iqvoc-3.2.8 lib/tasks/importer.rake
iqvoc-4.0.1 lib/tasks/importer.rake
iqvoc-4.0.0 lib/tasks/importer.rake
iqvoc-3.5.7 lib/tasks/importer.rake
iqvoc-3.5.6 lib/tasks/importer.rake
iqvoc-3.5.5 lib/tasks/importer.rake
iqvoc-3.5.4 lib/tasks/importer.rake
iqvoc-3.2.7 lib/tasks/importer.rake
iqvoc-3.5.3 lib/tasks/importer.rake
iqvoc-3.5.2 lib/tasks/importer.rake
iqvoc-3.5.1 lib/tasks/importer.rake
iqvoc-3.5.0 lib/tasks/importer.rake
iqvoc-3.4.0 lib/tasks/importer.rake
iqvoc-3.3.4 lib/tasks/importer.rake
iqvoc-3.3.3 lib/tasks/importer.rake
iqvoc-3.3.2 lib/tasks/importer.rake