lib/active_rdf/lib/active_rdf/queryengine/query.rb
def to_s
    if ConnectionPool.read_adapters.empty?
      inspect 
    else
      if @sparql_query != nil 
        @sparql_query
      else
        ConnectionPool.read_adapters.first.translate(self)
      end
      
    end
  end
# Returns query string depending on adapter (e.g. SPARQL, N3QL, etc.)
Returns query string depending on adapter
Returns query string depending on adapter
def to_s
    if ConnectionPool.read_adapters.empty?
      inspect 
    else
      if @sparql_query != nil 
        @sparql_query
      else
        ConnectionPool.read_adapters.first.translate(self)
      end
    end
  end
def to_s if ConnectionPool . read_adapters . empty? inspect else if @sparql_query != nil @sparql_query else ConnectionPool . read_adapters . first . translate ( self ) end end end
Returns query string depending on adapter (e.g.
Returns query string depending on adapter ( e . g .