rdf_summary.rb: improve support for resolving RDF namespaces.