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.3.1 lib/tasks/importer.rake
iqvoc-3.3.0 lib/tasks/importer.rake
iqvoc-3.2.6 lib/tasks/importer.rake
iqvoc-3.2.5 lib/tasks/importer.rake
iqvoc-3.2.4 lib/tasks/importer.rake
iqvoc-3.2.3 lib/tasks/importer.rake