Module: Iqvoc::RDFSync::Helper

Included in:
Concepts::VersionsController, TriplestoreSyncController
Defined in:
lib/iqvoc/rdf_sync.rb

Overview

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

Instance Method Summary collapse

Instance Method Details

#triplestore_syncerObject



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

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