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/terms/>
PREFIX fun: <http://w3id.org/sparql-generate/fn/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX obo: <http://purl.obolibrary.org/obo/>
 
TEMPLATE <head.rqg>( ?before, ?pathToStatic , ?isOntologyDocumentation ) { 

"""<!DOCTYPE html>
<html lang="en-GB" dir="ltr">
<head>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  <meta charset="utf-8" />
  <meta name="generator" content="SPARQL-Generate" />
  <title>{ ?before }</title>
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
  <link href="{ ?pathToStatic }/favicon.ico" rel="shortcut icon" type="image/vnd.microsoft.icon" />
  <link href="{ ?pathToStatic }/media/gantry5/assets/css/font-awesome.min.css" rel="stylesheet" />
  <link href="{ ?pathToStatic }/media/gantry5/engines/nucleus/css-compiled/nucleus.css" rel="stylesheet" />
  <link href="{ ?pathToStatic }/templates/g5_helium/custom/css-compiled/helium_19.css" rel="stylesheet" />
  <link href="{ ?pathToStatic }/media/gantry5/assets/css/bootstrap-gantry.css" rel="stylesheet" />
  <link href="{ ?pathToStatic }/media/gantry5/engines/nucleus/css-compiled/joomla.css" rel="stylesheet" />
  <link href="{ ?pathToStatic }/media/jui/css/icomoon.css" rel="stylesheet" />
  <link href="{ ?pathToStatic }/templates/g5_helium/custom/css-compiled/helium-joomla_19.css" rel="stylesheet" />
  <link href="{ ?pathToStatic }/templates/g5_helium/custom/css-compiled/custom_19.css" rel="stylesheet" />
  { IF( ?isOntologyDocumentation , """<link href="{ ?pathToStatic }/lode/home.css" rel="stylesheet" />""" , "" ) }
  <link href="{ ?pathToStatic }/jqtree/jqtree.css" rel="stylesheet">
  <script src="{ ?pathToStatic }/templates/g5_helium/js/jui/jquery.min.js?06eedc97766b70aa1fa0e80231495faa"></script>
  <script src="{ ?pathToStatic }/media/jui/js/jquery-noconflict.js?06eedc97766b70aa1fa0e80231495faa"></script>
  <script src="{ ?pathToStatic }/media/jui/js/jquery-migrate.min.js?06eedc97766b70aa1fa0e80231495faa"></script>
  <script src="{ ?pathToStatic }/media/system/js/caption.js?06eedc97766b70aa1fa0e80231495faa"></script>
  <script src="{ ?pathToStatic }/media/jui/js/bootstrap.min.js?06eedc97766b70aa1fa0e80231495faa"></script>
  <script src="{ ?pathToStatic }/templates/g5_helium/js/juitabs.js"></script>

  <script>
    jQuery(window).on('load', function() \{
      new JCaption('img.caption');
    });
  </script>
  <!--[if (gte IE 8)&(lte IE 9)]>
        <script type="text/javascript" src="{ ?pathToStatic }/media/gantry5/assets/js/html5shiv-printshiv.min.js"></script>
        <link rel="stylesheet" href="{ ?pathToStatic }/media/gantry5/engines/nucleus/css/nucleus-ie9.css" type="text/css"/>
        <script type="text/javascript" src="{ ?pathToStatic }/media/gantry5/assets/js/matchmedia.polyfill.js"></script>
        <![endif]-->

</head>"""


"""<body class="gantry g-helium-style site com_content view-article no-layout no-task dir-ltr itemid-217 outline-19 g-offcanvas-left g-default g-style-preset1">
  <div id="g-offcanvas" data-g-offcanvas-swipe="1" data-g-offcanvas-css3="1">
    <div class="g-grid">
      <div class="g-block size-100">
        <div class="g-content g-particle">
          <div id="g-mobilemenu-container" data-g-menu-breakpoint="48rem"></div>
        </div>
      </div>
    </div>
  </div>
  <div id="g-page-surround">
    <div class="g-offcanvas-hide g-offcanvas-toggle" data-offcanvas-toggle aria-controls="g-offcanvas" aria-expanded="false"><i class="fa fa-fw fa-bars"></i></div>
    <section id="g-navigation">
      <div class="g-container">
        <div class="g-grid">
          <div class="g-block size-17">
            <div class="g-content g-particle">
              <a href="https://www.etsi.org/" title="" rel="home" class="g-logo g-logo-helium">
                <img src="{ ?pathToStatic }/images/logo-l.png" alt="" />
              </a>
            </div>
          </div>
          <div class="g-block size-65">
            <div class="g-content g-particle">
              <nav class="g-main-nav" role="navigation" data-g-hover-expand="true">
                <ul class="g-toplevel">


                  <li class="g-menu-item g-menu-item-type-component g-menu-item-217 active g-standard  ">
                    <a class="g-menu-item-container" href="/index.html">
                      <span class="g-menu-item-content">
                        <span class="g-menu-item-title">Home</span>
                      </span>
                    </a>
                  </li>


                  <li class="g-menu-item g-menu-item-type-component g-menu-item-242 g-standard  ">
                    <a class="g-menu-item-container" href="/core/">
                      <span class="g-menu-item-content">
                        <span class="g-menu-item-title">SAREF core</span>
                      </span>
                    </a>
                  </li>
                  <li class="g-menu-item g-menu-item-type-component g-menu-item-242 g-standard  ">
                    <a class="g-menu-item-container" href="/extensions.html">
                      <span class="g-menu-item-content">
                        <span class="g-menu-item-title">Extensions</span>
                      </span>
                    </a>
                  </li>

                  <li class="g-menu-item g-menu-item-type-component g-menu-item-242 g-standard  ">
                    <a class="g-menu-item-container" href="/sources/">
                      <span class="g-menu-item-content">
                        <span class="g-menu-item-title">Sources &amp; Issues</span>
                      </span>
                    </a>
                  </li>

                  <li class="g-menu-item g-menu-item-type-component g-menu-item-242 g-standard  ">
                    <a class="g-menu-item-container" href="https://www.etsi.org/committee/smartm2m">
                      <span class="g-menu-item-content">
                        <span class="g-menu-item-title">SmartM2M</span>
                      </span>
                    </a>
                  </li>

                  <li class="g-menu-item g-menu-item-type-component g-menu-item-242 g-standard">
                    <form method="GET" action="/search.html">
                      <input class="form-control" id="q" name="q" placeholder="&#x1F50E; ex., device"/>
                    </form>
                  </li>

                </ul>
              </nav>
            </div>
          </div>
          <div class="g-block g-social-header size-17">
            <div class="g-content g-particle">
              <div class="g-social ">
                <a target="_blank" href="https://twitter.com/ETSI_STANDARDS" title="" aria-label="">
                  <span class="fa fa-twitter fa-fw"></span> <span class="g-social-text"></span> </a>
                <a target="_blank" href="https://www.facebook.com/etsi.standards" title="" aria-label="">
                  <span class="fa fa-facebook-official"></span> <span class="g-social-text"></span> </a>
                <a target="_blank" href="https://www.linkedin.com/company/etsi?trk=biz-companies-cym" title="" aria-label="">
                  <span class="fa fa-linkedin-square"></span> <span class="g-social-text"></span> </a>
                <a target="_blank" href="https://www.youtube.com/user/ETSIstandards" title="" aria-label="">
                  <span class="fa fa-youtube-play"></span> <span class="g-social-text"></span> </a>
              </div>
            </div>
          </div>
        </div>
      </div>
    </section>"""
}
