db_and_tools/render.rb
def query_rdf_subjects( predicate, object )
    map_query( @conn, %{
      select subject from _rdf_m where predicate = $1 and object = $2
      }, [predicate, object]) 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
we avoid building an intermediate data structure and instead just expose an interface for the template to directly query the rdf view
def query_rdf_subjects( predicate, object )
    map_query( @conn, %{
      select subject from _rdf_m where predicate = $1 and object = $2
      }, [predicate, object]) do |row|
      row['subject'].encode(:xml => :text)
    end
  end
def query_rdf_subjects ( predicate , object ) map_query ( @conn , %{
      select subject from _rdf_m where predicate = $1 and object = $2
      } , [ predicate , object ] ) 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
predicate
object