PREFIX st: http://ns.inria.fr/sparql-template/ PREFIX rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns# PREFIX owl: http://www.w3.org/2002/07/owl# PREFIX dcterms: http://purl.org/dc/terms/ PREFIX dc: http://purl.org/dc/elements/1.1/ BASE https://saref.etsi.org/documentation/ PREFIX fun: http://w3id.org/sparql-generate/fn/

TEMPLATE () { FORMAT { """ %s """ BOX {"\n" BOX { "\n" st:call-template(, ?ontology) "\n" st:call-template(, ?ontology) } "\n" '\n

' BOX { "\n" st:call-template(, ?ontology) "\n" st:call-template(, ?ontology) "\n"

        TEMPLATE {
          before = "<dt>Authors:</dt><dd>" ; "<a href='{?object}'>{?object}</a>" ; separator= "<br/>" ; after = "</dd>\n"
        }
        WHERE {
          ?ontology (dc:creator|dcterms:creator) ?object
        }
        ORDER BY ?object

        st:call-template(<body/head/metadata.rqg>, ?ontology, "Contributors", dc:contributor)
        st:call-template(<body/head/metadata.rqg>, ?ontology, "Contributors", dcterms:contributor)
        st:call-template(<body/head/metadata.rqg>, ?ontology, "Publisher", dc:publisher)
        st:call-template(<body/head/metadata.rqg>, ?ontology, "Publisher", dcterms:publisher)
        st:call-template(<body/head/metadata.rqg>, ?ontology, "Imports", owl:imports)
        st:call-template(<body/head/copyright.rqg>, ?ontology)
        "<hr/>"
        st:call-template(<body/head/comment.rqg>, ?ontology) "\n"
        st:call-template(<body/toc.rqg>, ?ontology)
        st:call-template(<body/description.rqg>, ?ontology)
        st:call-template(<body/classes/classes.rqg>, ?ontology)
      }
      """
      <p class="endnote">{ fun:property(<language.properties>, 'endnote') } <a href="http://w3id.org/sparql-generate/"><em>SPARQL-Generate</em></a>, { fun:property(<language.properties>, 'developedby') } <a href="http://maxime-lefrancois.info/">Maxime Lefrançois</a>.</p>
      </body>"""
    }

} } WHERE { ?ontology rdf:type owl:Ontology .

}