<commit_before><!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title> CHRONOS - Low-Cost Space Exploration</title>
    <link rel="stylesheet" href="https://storage.googleapis.com/code.getmdl.io/1.0.2/material.indigo-pink.min.css">
    <script src="https://storage.googleapis.com/code.getmdl.io/1.0.2/material.min.js"></script>
    <link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
    <link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Roboto:300,400,500,700" type="text/css">
</head>
<body>
<a href="https://github.com/SpaceAppsXploration/rdfendpoints"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://camo.githubusercontent.com/38ef81f8aca64bb9a64448d0d70f1308ef5341ab/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f6461726b626c75655f3132313632312e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png"></a>

    <!-- Top Bar -->
    <div class="mdl-grid">
         <div class="mdl-cell mdl-cell--12-col">
             <h1 class="header">Space: What do you want to Explore?</h1>
             <h3 class="header">This a query engine for space-related knowledge</h3>
         </div>
    </div>
    <!-- Body area -->
    <div class="mdl-grid">
      <div class="mdl-cell mdl-cell--2-col">
           <h4>Use raw SPARQL queries&nbsp;&nbsp;<i class="material-icons md-48">forward</i></h4>
      </div>
      <div class="mdl-cell mdl-cell--5-col">
          <form action="/" method="post">
              <div class="mdl-textfield mdl-js-textfield mdl-textfield--expandable
                 mdl-textfield--floating-label">
                  <label class="mdl-button mdl-js-button mdl-button--icon" for="search-exp">
                    <i class="material-icons">search</i>
                  </label>
                  <div class="mdl-textfield__expandable-holder">
                    <input class="mdl-textfield__input" type="text" id="search-exp" name="query" />
                    <label class="mdl-textfield__label" for="search-exp">
                        {% if query %}
                        {{ query }}
                        {% else %}
                        Write a SPARQL query...
                        {% endif %}
                    </label>
                  </div>
              </div>
        </form>
      </div>
      <div class="mdl-cell mdl-cell--4-col">
          <div class="mdl-tabs mdl-js-tabs mdl-js-ripple-effect" style="min-height: 250px;">
              <div class="mdl-tabs__tab-bar">
                <a href="#example-1" class="mdl-tabs__tab is-active">Example 1</a>
                <a href="#example-2" class="mdl-tabs__tab">Example 2</a>
                <a href="#example-3" class="mdl-tabs__tab">Example 3</a>
                <a href="#example-4" class="mdl-tabs__tab">More...</a>
              </div>
              <div class="mdl-tabs__panel is-active" id="example-1">
                <p><b>Find all the satellites of Saturn:</b></p>
                  <p class="pre">
                  SELECT * WHERE { ?satellites
                  &lt;http://ontology.projectchronos.eu/astronomy/orbitsPlanet&gt;
                  &lt;http://ontology.projectchronos.eu/solarsystem/Saturn&gt;.
                  }
                  </p>
                 <p class="note">Copy and paste the query above in the search box for a try</p>
              </div>
              <div class="mdl-tabs__panel" id="example-2">
                <p><b>Find all the satellites in Solar System:</b></p>
                  <p class="pre">SELECT * WHERE { ?satellites
                  &lt;http://ontology.projectchronos.eu/astronomy/orbitsPlanet&gt;
                  ?planets.
                  }</p>
                <p class="note">Copy and paste the query above in the search box for a try</p>
              </div>
              <div class="mdl-tabs__panel" id="example-3">
                <p><b>Find all the Eart-like planets:</b></p>
                  <p class="pre">
                      SELECT * WHERE { ?planets
                      &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#type&gt;
                      &lt;http://ontology.projectchronos.eu/astronomy/TerrestrialPlanet&gt; .
                      }
                  </p>
                <p class="note">Copy and paste the query above in the search box for a try</p>
              </div>
              <div class="mdl-tabs__panel" id="example-4">
                <p><b>More to come:</b></p>
                <p class="note">Navigation of data will be soon improved by a point-and-click graphical interface.</p>
              </div>
          </div>
      </div>
      <div class="mdl-cell mdl-cell--1-col"></div>
    </div>

    {% if status == 200 %}
        <div class="demo-grid-2 mdl-grid">
             <div class="mdl-cell mdl-cell--12-col">
                 <h3 class="header">Results</h3>
                 <h6 class="header">for query: {{query}}</h6>
             </div>
        </div>
        <div class="mdl-grid">
          <div class="mdl-cell mdl-cell--3-col">
          </div>
          <div class="mdl-cell mdl-cell--6-col">
             {{ result|safe }}<commit_msg>improved homepage<commit_after><!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title> CHRONOS - Low-Cost Space Exploration</title>
    <link rel="stylesheet" href="https://storage.googleapis.com/code.getmdl.io/1.0.2/material.indigo-pink.min.css">
    <script src="https://storage.googleapis.com/code.getmdl.io/1.0.2/material.min.js"></script>
    <link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
    <link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Roboto:300,400,500,700" type="text/css">
</head>
<body>
<a href="https://github.com/SpaceAppsXploration/rdfendpoints"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://camo.githubusercontent.com/38ef81f8aca64bb9a64448d0d70f1308ef5341ab/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f6461726b626c75655f3132313632312e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png"></a>

    <!-- Top Bar -->
    <div class="mdl-grid">
         <div class="mdl-cell mdl-cell--12-col">
             <h1 class="header">Space: What do you want to Explore?</h1>
             <h3 class="header">This a query engine for space-related knowledge</h3>
         </div>
    </div>
    <!-- Body area -->
    <div class="mdl-grid">
      <div class="mdl-cell mdl-cell--2-col">
           <h4>Use raw SPARQL queries&nbsp;&nbsp;<i class="material-icons md-48">forward</i></h4>
      </div>
      <div class="mdl-cell mdl-cell--5-col">
          <form action="/" method="post">
              <div class="mdl-textfield mdl-js-textfield mdl-textfield--expandable
                 mdl-textfield--floating-label">
                  <label class="mdl-button mdl-js-button mdl-button--icon" for="search-exp">
                    <i class="material-icons">search</i>
                  </label>
                  <div class="mdl-textfield__expandable-holder">
                    <input class="mdl-textfield__input" type="text" id="search-exp" name="query" />
                    <label class="mdl-textfield__label" for="search-exp">
                        {% if query %}
                        {{ query }}
                        {% else %}
                        Write a SPARQL query...
                        {% endif %}
                    </label>
                  </div>
              </div>
        </form>
      </div>
      <div class="mdl-cell mdl-cell--4-col">
          <div class="mdl-tabs mdl-js-tabs mdl-js-ripple-effect" style="min-height: 250px;">
              <div class="mdl-tabs__tab-bar">
                <a href="#example-1" class="mdl-tabs__tab is-active">Example 1</a>
                <a href="#example-2" class="mdl-tabs__tab">Example 2</a>
                <a href="#example-3" class="mdl-tabs__tab">Example 3</a>
                <a href="#example-4" class="mdl-tabs__tab">More...</a>
              </div>
              <div class="mdl-tabs__panel is-active" id="example-1">
                <p><b>Find all the satellites of Saturn:</b></p>
                  <p class="pre">
                  SELECT * WHERE { ?satellites
                  &lt;http://ontology.projectchronos.eu/astronomy/orbitsPlanet&gt;
                  &lt;http://ontology.projectchronos.eu/solarsystem/Saturn&gt;.
                  }
                  </p>
                 <p class="note">Copy and paste the query above in the search box for a try</p>
              </div>
              <div class="mdl-tabs__panel" id="example-2">
                <p><b>Find all the satellites in Solar System:</b></p>
                  <p class="pre">SELECT * WHERE { ?satellites
                  &lt;http://ontology.projectchronos.eu/astronomy/orbitsPlanet&gt;
                  ?planets.
                  }</p>
                <p class="note">Copy and paste the query above in the search box for a try</p>
              </div>
              <div class="mdl-tabs__panel" id="example-3">
                <p><b>Find all the Eart-like planets:</b></p>
                  <p class="pre">
                      SELECT * WHERE { ?planets
                      &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#type&gt;
                      &lt;http://ontology.projectchronos.eu/astronomy/TerrestrialPlanet&gt; .
                      }
                  </p>
                <p class="note">Copy and paste the query above in the search box for a try</p>
              </div>
              <div class="mdl-tabs__panel" id="example-4">
                <p><b>More to come:</b></p>
                <p class="note">Navigation of data will be soon improved by a point-and-click graphical interface.</p>
                  <p>You can take a look to the APIs:</p>
                  <ul>
                      <li><a target="_blank" href="http://rdfendpoints.appspot.com/hypermedia/spacecraft/">JSON-LD hypermedia API</a> for spacecraft subsystems</li>
                      <li><a target="_blank" href="http://http://chronosapi-chronoslod.rhcloud.com/">a taxonomy API</a> for engineering and scientific terms</li>
                  </ul>
                  <p>The Wiki: <a href="https://github.com/SpaceAppsXploration/rdfendpoints/wiki">on Github</a></p>
              </div>
          </div>
      </div>
      <div class="mdl-cell mdl-cell--1-col"></div>
    </div>

    {% if status == 200 %}
        <div class="demo-grid-2 mdl-grid">
             <div class="mdl-cell mdl-cell--12-col">
                 <h3 class="header">Results</h3>
                 <h6 class="header">for query: {{query}}</h6>
             </div>
        </div>
        <div class="mdl-grid">
          <div class="mdl-cell mdl-cell--3-col">
          </div>
          <div class="mdl-cell mdl-cell--6-col">
             {{ result|safe }}
{'fraction_non_alphanumeric': 0.15695268933261378, 'fraction_numerical': 0.03957546321280806, 'mean_word_length': 1.837203368206175, 'pattern_counts': {'":': 0, '<': 249, '<?xml version=': 0, '>': 249, 'https://': 13, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2057409', 'n_tokens_mistral': 3850, 'n_tokens_neox': 3466, 'n_words': 636}