{%for h in base.header %} PREFIX {{h.prefix}}: <{{h.ns}}> {%endfor%} SELECT DISTINCT ?resource WHERE { ?resource a {{base.args.arg0}} . }