lib/active_rdf/lib/active_rdf/queryengine/query.rb
def execute(options={:flatten => false}, &block)
     
    options = {:flatten => true} if options == :flatten  
    if block_given?
      for result in FederationManager.query(self, options)
        yield result
      end
    else
      FederationManager.query(self, options)
    end
  end
# Executes query on data sources. Either returns result as array
# (flattened into single value unless specified otherwise)
# or executes a block (number of block variables should be
# same as number of select variables)
#
# usage:: results = query.execute
# usage:: query.execute do |s,p,o| ... end
Executes query on data sources. Either returns result as array
(flattened into single value unless specified otherwise)
or executes a block (number of block variables should be
same as number of select variables)


Executes query on data sources . Either returns result as array ( flattened into single value unless specified otherwise ) or executes a block ( number of block variables should be same as number of select variables )
def execute(options={:flatten => false}, &block)
    options = {:flatten => true} if options == :flatten  
    if block_given?
      for result in FederationManager.query(self, options)
        yield result
      end
    else
      FederationManager.query(self, options)
    end
  end
def execute ( options = { :flatten => false } , & block ) options = { :flatten => true } if options == :flatten if block_given? for result in FederationManager . query ( self , options ) yield result end else FederationManager . query ( self , options ) end end
Executes query on data sources.
Executes query on data sources .
options
block