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>( ?entity ) {
  before = "\n<ul class='hlist'>" ;
  BOX { "\n<li>"
    <function/hrefTitle.rqg>(fun:prefixedIRI(?entity), TEMPLATE <term/label.rqg>( ?entity ) . )
  "</li>" }
  ; after = "\n</ul>"
}