rdf_summary.rb: support domain and range relationships.