Module: Stardog

Defined in:
lib/stardog.rb

Defined Under Namespace

Classes: Connection, ICVException, LinkedJSON, StardogResponse

Constant Summary collapse

VERSION =

Current version of the library.

"0.0.1"
DEBUG =
ENV["STARDOG_RB_DEBUG"] || false

Instance Method Summary collapse

Instance Method Details

#stardog(endpoint = nil, options = {}) ⇒ Object

Returns a connection



583
584
585
586
587
588
589
590
# File 'lib/stardog.rb', line 583

def stardog(endpoint = nil, options = {})
  connection = Connection.new
  connection.endpoint = endpoint if endpoint
  connection.reasoning = options[:reasoning] if options[:reasoning]
  connection.set_credentials(options[:user], options[:password]) if options[:user] && options[:password]

  connection
end