Method: RoadForest::SourceRigor::GraphStore#query_execute

Defined in:
lib/roadforest/source-rigor/graph-store.rb

#query_execute(query, &block) ⇒ Object



181
182
183
184
185
186
187
188
# File 'lib/roadforest/source-rigor/graph-store.rb', line 181

def query_execute(query, &block)
  #XXX Weird edge case of GM getting queried with a vanilla RDF::Query...
  #needs tests, thought
  query = RoadForest::SourceRigor::ResourceQuery.from(query)
  query.execute(self).filter do |solution|
    solution.respond_to?(:context) and not solution.context.nil?
  end.each(&block)
end