db_and_tools/render.rb
# we avoid building an intermediate data structure, and instead just expose an
# interface for the template to directly query the rdf view
we avoid building an intermediate data structure, and instead just expose an
interface for the template to directly query the rdf view
we avoid building an intermediate data structure and instead just expose an interface for the template to directly query the rdf view
def query_sql_subject( query, args )
    map_query( @conn, query, args) do |row|
      row['subject'].encode(:xml => :text)
    end
  end
def query_sql_subject ( query , args ) map_query ( @conn , query , args ) do | row | row [ 'subject' ] . encode ( :xml => :text ) end end
we avoid building an intermediate data structure, and instead just expose an
interface for the template to directly query the rdf view
we avoid building an intermediate data structure and instead just expose an interface for the template to directly query the rdf view
# supports composing general sql queries and returns the subject row # row['target'].encode(:xml => :text)
query
args