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
-
#stardog(endpoint = nil, options = {}) ⇒ Object
Returns a connection.
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, = {}) connection = Connection.new connection.endpoint = endpoint if endpoint connection.reasoning = [:reasoning] if [:reasoning] connection.set_credentials([:user], [:password]) if [:user] && [:password] connection end |