# File lib/activerdf_sparql/sparql.rb, line 19
19:         def initialize(params = {})    
20:                 @reads = true
21:                 @writes = false
22: 
23:                 @url = params[:url] || ''
24:                 @result_format = params[:results] || :json
25:     @engine = params[:engine]
26: 
27:     supported_engines = [:yars2, :sesame2, :joseki, :virtuoso]
28:                 raise ActiveRdfError, "SPARQL engine unsupported" unless supported_engines.include?(@engine)
29:                 
30:                 known_formats = [:xml, :json, :sparql_xml]
31:                 raise ActiveRdfError, "Result format unsupported" unless known_formats.include?(@result_format)
32:                 
33:                 $activerdflog.info "SPARQL adapter initialised #{inspect}"
34:         end