Move HTML formatting of predicates to the GroupingConfiguration objects
The queries Jinja template was taking the grouping_property
as input and formatting it as an HTML link to Wikidata.
This was not working anymore with PredicateGroupingConfiguration.
Here we move the formatting as method to the GroupingConfiguration
objects and pass it to the Jinja template.
Bug: T312729