make one sparql query for all extrefs per document instead of one query per extref
also 1 sparql query per tgroup and illustration