PREFIX st: <http://ns.inria.fr/sparql-template/>

BASE <https://saref.etsi.org/documentation/>

FUNCTION <tagi.rqg> ( ?tag, ?attributes, ?content ){

  st:concat( "<", ?tag, IF(BOUND(?attributes)&&?attributes!="", CONCAT(" ", ?attributes), ""), ">", ?content, "</", ?tag, ">" )
}