Processing SPARQL query results is DRYer.