PREFIX fun: <http://w3id.org/sparql-generate/fn/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>

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

TEMPLATE <ontology/toc.rqg>( ?onto,  ?entity ) {
  before = "\n<ul class='hlist'>" ;
  BOX { "\n<li>"
    <function/hrefTitle.rqg>(fun:prefixedIRI(?entity), TEMPLATE <ontology/label.rqg>( ?onto,  ?entity ) . )
  "</li>" }
  ; after = "\n</ul>"
}