Closed mdorf closed 4 years ago
Implemented the backend configurable parameters:
config.goo_path_query = "/repositories/bioportal"
config.goo_path_data = "/repositories/bioportal/statements/query"
config.goo_path_update = "/repositories/bioportal/statements"
conf.add_sparql_backend(:main, query: "http://#{host}:#{port}#{path_query}",
data: "http://#{host}:#{port}#{path_data}",
update: "http://#{host}:#{port}#{path_update}",
options: { rules: :NONE })
Added a new parameter "backend_name":
conf.add_sparql_backend(:main, backend_name: backend_name, ...
def self.add_sparql_backend(name, *opts)
opts = opts[0]
@@sparql_backends = @@sparql_backends.dup
@@sparql_backends[name] = opts
@@sparql_backends[name][:query]=Goo::SPARQL::Client.new(opts[:query],
{protocol: "1.1", "Content-Type" => "application/x-www-form-urlencoded",
read_timeout: 10000,
We should be able to swap 4store with AllegroGraph (and vice-versa) via a simple configuration parameter.