Module: Iqvoc::RDFSync::Helper

Overview

TODO: rename – XXX: does not belong here!?

Instance Method Summary collapse

Instance Method Details

#triplestore_syncerObject



109
110
111
112
113
114
115
116
# File 'lib/iqvoc/rdf_sync.rb', line 109

def triplestore_syncer
  base_url = root_url(lang: nil) # XXX: brittle in the face of future changes?

  return Iqvoc::RDFSync.new(base_url, Iqvoc.config['triplestore.url'],
      username: Iqvoc.config['triplestore.username'].presence,
      password: Iqvoc.config['triplestore.password'].presence,
      view_context: view_context) # fugly, but necessary; cf. RDFSync#serialize
end