PREFIX doc: <https://saref.etsi.org/documentation/>
PREFIX st:   <http://ns.inria.fr/sparql-template/>
PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX dc: <http://purl.org/dc/elements/1.1/>

TEMPLATE doc:structure(?ontology) {
  "<title>" ?before "</title>"
}
SOURCE doc:language AS ?lang
where {
  VALUES ?p { dcterms:title dc:title }
  ?ontology ?p ?title .
  FILTER( LANG(?title) = str(?lang) || LANG(?title) = "")
  BIND(REPLACE(?title, "[\n|\r|\r\n].*", "") AS ?before )
} ORDER BY DESC ( LANG(?title))
LIMIT 1



PREFIX st:   <http://ns.inria.fr/sparql-template/>
PREFIX doc: <https://w3id.org/seas/documentation/html/loweringRule#>
PREFIX seas: <https://w3id.org/seas/>
PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX vann: <http://purl.org/vocab/vann/>



    owl:versionInfo ?version ;
    dcterms:title ?title ;
    dcterms:description ?description ;
    dcterms:issued ?issued ;
    dcterms:license ?license ;
    vann:preferredNamespacePrefix "saref" ;
    vann:preferredNamespaceUri "https://saref.etsi.org/" .



                    <xsl:call-template name="get.version" />
                <xsl:call-template name="get.author" />
                <xsl:call-template name="get.publisher" />
                <xsl:call-template name="get.imports" />-->
                <dl>
                    <dt><xsl:value-of select="f:getDescriptionLabel('visualisation')" />:</dt>
                    <dd>
                        <a href="{$source}?url={$ontology-url}"><xsl:value-of select="f:getDescriptionLabel('ontologysource')" /></a>
                    </dd>
                </dl>
                <xsl:apply-templates select="dc:rights|dcterms:rights" />
            </div>
            <hr />
            <xsl:apply-templates select="rdfs:comment" mode="ontology" />
            <xsl:call-template name="get.toc" />
            <xsl:apply-templates select="dc:description[normalize-space() != ''] , dc:description[@*:resource]" mode="ontology" />
            <xsl:call-template name="get.classes" />
            <xsl:call-template name="get.objectproperties" />
            <xsl:call-template name="get.dataproperties" />
            <xsl:call-template name="get.namedindividuals" />
            <xsl:call-template name="get.annotationproperties" />
            <xsl:call-template name="get.generalaxioms" />
            <xsl:call-template name="get.swrlrules" />            
            <xsl:call-template name="get.namespacedeclarations" />
            
            <p class="endnote"><xsl:value-of select="f:getDescriptionLabel('endnote')" /><xsl:text> </xsl:text><a href="http://www.essepuntato.it/lode">LODE</a><xsl:text>, </xsl:text><em>Live OWL Documentation Environment</em><xsl:text>, </xsl:text><xsl:value-of select="f:getDescriptionLabel('developedby')" /><xsl:text> </xsl:text><a href="http://www.essepuntato.it">Silvio Peroni</a>.</p>
        </body>
